is it possible to configure the sensor to take decibel readings every second? in other words does it detect a range of decibels or is it limited or sound on/off reading?
Yeah it's binary, so it's probably not suited for your application. I googled and found this sensor wiki.seeedstudio.com/Grove-Loudness_Sensor/ might be something you want to look into further.
Nice vid. Straightforward and to the point. Would like to see a vid using a sensor with sound levels. Also, just a personal thing - I hate hearing backing music on vids. I think it's unnecessary and very distracting. I'd *much* prefer to just hear your explanations. Please consider leaving music out in the future. It's not at all essential to a video. Particularly as a musician, it really fights for my attention all the time I'm trying to listen :-)
Please help me with 4 pin Big sound sensor , similar to this but with A0 ,+,GND and D0 pin. Please help me with i have put GND in Pin 6 and + in pin 2 and D0 in 11 and dont know about A0.
D0 is the digital pin. You dont need it when you just want to record sounds. A0 is the analog pin. this is where the sound data are transfered to the raspi/arduino
#!/usr/bin/python import RPi.GPIO as GPIO import time #GPIO SETUP channel = 17 GPIO.setmode(GPIO.BCM) GPIO.setup(channel, GPIO.IN) def callback(channel): if GPIO.input(channel): print "Sound Detected!" else: print "Sound Detected!" GPIO.add_event_detect(channel, GPIO.BOTH, bouncetime=300) # let us know when the pin goes HIGH or LOW GPIO.add_event_callback(channel, callback) # assign function to GPIO PIN, Run function on change # infinite loop while True: time.sleep(1)
How to find the maximum sampling rate for sound sensor and frequency range?
Can i use an analog sound sensor with the pi
What is the add-on that is on the rpi ?
Can I use it to built alexa pi?
What is the board he is actually connecting the wires to
Can this sensor use to record sound ?
I followed everything but I get that it ran successfully but then the program exits and doesn't stay running?
Thanks so much! That helps a lot! Is there any way I can print the value of the sound?
Check out ua-cam.com/video/PYkzJQhFNlA/v-deo.html , In the last part the guy has demonstrated how to interpret binary to values.
Hey what’s the name of the app for the code (I want to install it)
is it possible to configure the sensor to take decibel readings every second? in other words does it detect a range of decibels or is it limited or sound on/off reading?
Yeah it's binary, so it's probably not suited for your application. I googled and found this sensor wiki.seeedstudio.com/Grove-Loudness_Sensor/ might be something you want to look into further.
Should you set Pi pin to Input first before connecting the sound sensor?
Is it possible to customise this so that I can get the decibel? For example by creating thresholds value and saying that within 200-400 print "noisy".
you are a life savior
Nice vid. Straightforward and to the point. Would like to see a vid using a sensor with sound levels. Also, just a personal thing - I hate hearing backing music on vids. I think it's unnecessary and very distracting. I'd *much* prefer to just hear your explanations. Please consider leaving music out in the future. It's not at all essential to a video. Particularly as a musician, it really fights for my attention all the time I'm trying to listen :-)
Can we use th same connections and program for rpi ?
Hi, it is possible using this Sound Sensors to detect every sec db noise level or must purchase a Grove - Loudness Sensor?
Please help me with 4 pin Big sound sensor , similar to this but with A0 ,+,GND and D0 pin. Please help me with i have put GND in Pin 6 and + in pin 2 and D0 in 11 and dont know about A0.
D0 is the digital pin. You dont need it when you just want to record sounds. A0 is the analog pin. this is where the sound data are transfered to the raspi/arduino
Hello! Can you help me with the code to turn on and off a led by clapping?
I can help you if you want
@@padmavathynarasareddygari1213 It's ok, I solved! I just have to activate in low. Thanks!
and if i want to print no sound detected if it didn,t detect anything ?
nice video, much appreciated, helped me set things up in < 5 min
Great video.
nice presentation!
what is the else for?
When I was testing the sensor it would only print half the time when triggered. Looking at it now, I think that entire if/else block is unnecessary.
Agreed. You've already tested for the pin going high so you can just make the callback echo "Sound detected" directly?
not working: "No module named 'RPi'
sudo apt-get install python3-pip
pip3 install RPi.GPIO
thx for the help :)
use of else ??????????
Yeah... I think the sensor I was using was damaged, that logic needs revision.
Can I detect cry of baby with same sound sensor?
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
#GPIO SETUP
channel = 17
GPIO.setmode(GPIO.BCM)
GPIO.setup(channel, GPIO.IN)
def callback(channel):
if GPIO.input(channel):
print "Sound Detected!"
else:
print "Sound Detected!"
GPIO.add_event_detect(channel, GPIO.BOTH, bouncetime=300) # let us know when the pin goes HIGH or LOW
GPIO.add_event_callback(channel, callback) # assign function to GPIO PIN, Run function on change
# infinite loop
while True:
time.sleep(1)
What's the addon that's on the rpi?
Can I detect cry of baby with same sound sensor?