Sound Location Finder

In this project, I create a sound location finder. This circuit can be used as the basic building block to a robot that reacts to sound.

Sep 8, 2019

25710 views

17 respects

Components and supplies

1

Jumper wires (generic)

2

Solderless Breadboard Full Size

1

USB-A to B Cable

1

42BYGHM809 Bi-polar stepper motor

1

Arduino UNO

2

Angled DIP IC Sockets

1

Stepper motor driver board A4988

1

5mm Flange Shaft

2

DAOKI High Sensitivity Sound Microphone Sensor Detection Module For Arduino AVR PIC

Tools and machines

1

Variable Power Supply

1

Extraction Tool, 6 Piece Screw Extractor & Screwdriver Set

1

Computer

Apps and platforms

1

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

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

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?