Meshal
Saudi Arabia
Asked
— Edited
I'm looking for a way (shield) to track sounds at any spot around, like when I try to talk then it will identify the source (direction) of my sound. in other word, robot's head/eyes can follow people while they're talking to each other.
There is a stereo sound option that makes the robot look in the direction of a loud noise. If you want more precise sound direction detection you need modules made for that and use a few ports to determine general direction of a speaking person. Here is a module I bought. But you will need at least three to really do what you want and some programming ofcourse which is a new frontier for me.
These will each use one adc port on your ezb and you need three. One pointing slightly to the right one slightly to the left of robots view and one front and center. Your going to need to insert code that compares the three values of the sensors and if right or left is significantly louder (which will take adjustments of the values that indicate that im sure) the head servo will turn to the pre designated position for that side.
http://www.ebay.com/itm/Sound-Sensor-Module-for-Arduino-Sensor-Shield-PIC-MCU-/150917251621?pt=LH_DefaultDomain_0&hash=item23235e8225
Yes ! .. this is what I'm looking for.
ARC has some straight commands like :
but once the servo will have relative angles (depends on the value of each sensor) then I need to do some mathmatical comparison between these values to get the most effective (non fixed) angle which is "I think" not practical in ARC unless someone has tried it before, ummm something like long cascaded IF statements :
it will work in EZ-SDK for sure, so I'm going to figure this out after getting these modules.
Thanks for the help
Your welcome. Try to keep it simple at first. Simple is better. Like make servo right or left movement a designated amount say 30 degrees. I would love to borrow your code if you make it work.