Hi,
I like to share my experience connecting Raspberry Pi , Big & Small Sound Sensor using Python.
Note :
You can use the same circuit , python program for both big and small sound sensors. The process is same for both the sensors
Note :
You can use the same circuit , python program for both big and small sound sensors. The process is same for both the sensors
I.Things Needed :
1. Raspberry Pi 3 Model B+
2. a) Big Sound Sensor
3. 3 Female to Female Jumper wires.
II. Circuit Completion
a) Complete the circuit has shown below .
c) Take a screw driver and adjust the screw so that only one light burns and when you knock near the sensor, second light should blink ( it means sound is detected ).
II.Python Program
a) Open a Text Editor and give the following program and save it as sound.py :
Python File :
https://gist.github.com/johnsylvester1/ddf2bd28324e77d6ec0366fb52a012cb
a) Open the Terminal using VNC Viewer or Putty / MobaXterm and give the command
python sound.py
Big Sound Sensor :
Now knock near the big sensor
Small Sound Sensor :
Now blow air near small sound sensor
Now , you have successfully detected sound using sound sensor ( big and sound ) & Python.
Kindly share your comments to improve my posting.
No comments:
Post a Comment