Components and supplies
Jumper wires (generic)
Solderless Breadboard Full Size
USB-A to B Cable
42BYGHM809 Bi-polar stepper motor
Arduino UNO
Angled DIP IC Sockets
Stepper motor driver board A4988
5mm Flange Shaft
DAOKI High Sensitivity Sound Microphone Sensor Detection Module For Arduino AVR PIC
Tools and machines
Variable Power Supply
Extraction Tool, 6 Piece Screw Extractor & Screwdriver Set
Computer
Apps and platforms
Arduino IDE
Project description
Code
SoundLocator
arduino
This code/sketch makes finding the general direction of sound easy. This code/sketch is for a sound location finder using two microphone sensors in conjunction with an Arduino Uno. The code/sketch polls two microphone sensors in a sound location finder circuit. If sound is detected in one microphone sensor and not the other, the Arduino request a stepper motor in the circuit to turn the sound detection board in the direction of the sound. If the sound is detected in both microphones or no sound is detected, the circuit does nothing and continues to poll the microphone sensors.
Downloadable files
Fritzing Diagram
Fritzing Diagram
Fritzing Diagram
Fritzing Diagram
Comments
Only logged in users can leave comments
Anonymous user
2 years ago
Just a thought about the first part, just use headphones or earbuds
Anonymous user
2 years ago
Cool, I just have one question: "If sound is detected in one microphone sensor and not the other" Can it distinguish relative intensity as well, i.e. leftVal==800 && rightVal==650?
jeepknifer
3 years ago
Love it.. I'm interested in paying you to make a complete working version in a small project box... Contact me and we can discuss pricing.. thanks! craigjgaspard@gmail.com
tim5151
3 years ago
Please, in future, try to normalize sound levels between your music levels and your speaking levels. I woke everyone in the house because I'd turned the volume up enough to understand what you were saying, and then blaring music came on. By the time I got the volume turned down, my roommates were awake. Thanks for an interesting project, but could this code be modified to drive a servo instead of a stepper motor, and have it position the unit more precisely (centered on the sound source), instead of the default 45 degree turn? THAT would be a much more interesting project. How hard would it be to compare relative sound intensity between the two mics? Make a position determination based on that.
Anonymous user
2 years ago
Just a thought about the first part, just use headphones or earbuds
YSKnobel
5 years ago
Cool, I just have one question: "If sound is detected in one microphone sensor and not the other" Can it distinguish relative intensity as well, i.e. leftVal==800 && rightVal==650?
Anonymous user
2 years ago
Please, in future, try to normalize sound levels between your music levels and your speaking levels. I woke everyone in the house because I'd turned the volume up enough to understand what you were saying, and then blaring music came on. By the time I got the volume turned down, my roommates were awake. Thanks for an interesting project, but could this code be modified to drive a servo instead of a stepper motor, and have it position the unit more precisely (centered on the sound source), instead of the default 45 degree turn? THAT would be a much more interesting project. How hard would it be to compare relative sound intensity between the two mics? Make a position determination based on that.