I am going to design a device that will use four microphones which will be input to arduino mega 2560 and these microphones will be in the south.north,east,west direction.Whenever sound comes from north microphone my stepper motor should rotate towards north microphone and after sometime comes back to initial position. In the same way for other three microphones. how can i programme my arduino mega2560 to achieve this target.. it will be great honour if anybody can help me. plz put some code
Define "sound"
plz put some code
What??
What sort of sound?
You know, music, birdsong, ultrasound, infrasound, gunshot, speech, white noise . . .
Which?
Have you even tried to read from the microphone(s)? Create a sketch that reads from the analog pin that the microphone is connected to, and print the value to the serial port. Open the Serial Monitor application, and sing, talk, tap dance, whatever. As you make noise, you should see changes in the values being shown in the Serial Monitor application.
Perhaps a light will go on...
"The lights are all on, but nobody's home"
Whenever sound comes from north microphone
You noticed....
i want to detect a hand clap through four microphones... so that whenever this sound is detected by any of four microphones stepper motor has to turn to that microphone
Maybe try to think about time-of-arrival, and space the microphones as wide as possible.
I have done all this but i can,t find any code that rotate motor to 4 microphones ..... can u provide me the code..
What motor?
How is connected?
How is its position sensed?
(I'm thinking of retraining as a dentist)
@Saaod_148, have you any intention of writing code, or are you looking for pre-written code to do this? Or to pay someone to write it?
Saood_148:
i want to detect a hand clap through four microphones... so that whenever this sound is detected by any of four microphones stepper motor has to turn to that microphone
If you clap in a room with 4 microphones, they will all hear it. Sound doesn't just die in mid-air.