United Kingdom
Asked — Edited

Sound Sensor Recomendation

Hey everyone.

Can somebody recommend a good quality sound sensor to work with the v4, preferably analog. I had a pair of cheepo's laying around that I tried (pictured below), didn't work on analog, and digital wasn't much better although a slight improvement. I'm wanting to get the whole "robot hears something on the left, head turns left" thing going, so any recommendations would be appreciated.

Thanks.

User-inserted image


ARC Pro

Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!

United Kingdom
#9  

@mtiberia.

Thanks for getting back to me and for explaining. So basically, the higher I set the multipucation values, the more sound the sensors pick up on, and setting these values at say 300 would start picking up more background noise. Gotcha.;)

Just courious, have you ever tried these sensors at 5v? I just wonder what the difference would be. I'm waiting on a delivery for some 5v regulators so I've been unable to test it.

#10  

Your not really increasing the sensitivity of the sound sensor. Your using software to accentuate the difference. Just easier to visualize and write conditional statements.

Righty: Lefty:

1 x50=50 1.750=80 # first time through the loop 1.150=55 1.250=60 # second time through the loop

The difference between Righty 1+1.1=2.2 and Righty 50+55=105

The difference between Lefty 1.7+1.2=2.9 and Lefty 50+55=140

United Kingdom
#11  

I have it now. Thanks again. I'm greatfull for your help.

#12  

@mtiberia Is right... You can just use the straight analog values for simplicity (1 - 255)... The higher the value is the side that heard the loudest noise....

United Kingdom
#13  

@Richard.

Okay, that's cool and a little easier. Thanks for confirming.:)

Germany
#14  

@Steve G

I saw your newest video on youtube! your sound sensor is working fine! can you help me with the script ?

I have only one sound sensor from the Robonova Humanoid (picture) my projects: the robot responds to clapping

I use ADC 0

regards Smarty

User-inserted image

United Kingdom
#15  

No problem Smarty.

I think this might be the one you're referring too...

:loop
#Read's the value on EZ-B port A0
$sound=getADC(adc0) 

#Will turn LED on when sensor reading is above 5.
#Change the values if necessary.
if($sound>5)
set(d0,On)

#Will turn LED off when sensor reading is below 4.
elseif($sound<4)
set(d0,Off)
endif
goto(loop)

This was the example I used in my ADC tutorial. Click the link below and have a look. Hope it helps.:)

synthiam.com/Tutorials/UserTutorials/161/7

Germany
#16  

thanks for your help :-) I think, I have a wrong sound sensor.. I get no responce If I make sounds..

I have a similar like you first one.. now you bought new ones?!

What should I look for when I buy new ones ?

User-inserted image

regards Marty