Thursday, July 12, 2018

Detecting Big & Small Sound using Sound Sensor , Raspberry Pi, Python



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 


I.Things Needed :

 1. Raspberry Pi 3 Model B+


 2.  a) Big Sound Sensor


      b) Small Sound Sensor  - KES200

                                   

 3. 3 Female to Female Jumper wires.



II.  Circuit Completion

a) Complete  the circuit has shown below .  




b) When you connect for the first time, you will see two red lights burning


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


IV. Executing Python program 

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

Mastering IoT Development

Hi, Before reading this post, I would recommend to read the post : https://johnsylvester-johnsylvester.blogspot.com/2018/09/iot-key-co...