Identify a sound source and turn a laser pointer towards the sound source

I am completely new to this Arduino platform. And I have a subject in my university regarding this. And because of this pandemic situation they are not providing enough teaching and resources and the subject is also an unrelated subject for my main degree program. For that subject I have a project to create a device with a laser pointer attached to a servo motor. And when a sound source inside the 5m range making the sound the laser pointer that attached to the servo motor should rotate and point it to the sound source's direction. (i am planning to use Arduino Uno) Anyone here knows how to do that or any tutorials? or any existing project that has that function? i have to make that device within 5 days so I don't have much time to study from the beginning and that's completely waste of a time because this is not related to my degree program I just have to submit this project. ( I am studying Network Engineering and I don't know why they included this kind of subject to the program). Thank you for your help.

The first thing to say is that 5 days is utterly unrealistic unless the uni expects you to work on it 24 hours per day. Until recently I worked as a lecturer at University of Derby, and we never dumped surprises like this on students. It would be totally unfair.

So I suspect that you were given this task weeks ago, and have only now decided to make a start on it. Am I right?

There's another thing you need to know: forums like this aren't intended for someone to come along with a problem and dump it on the community and expect them to do the work for you. The idea is that you do most of the work yourself, coming to the forum for advice on bits you are stuck on. Right now it seems like you haven't even attempted to start the project.

I repeat: forums aren't here to bail you out of some bad time management on your part.

But let me just say this. With your knowledge of physics, how do you think it is possible to determine the direction of a sound source? How do humans do it?

The simplest way is to measure the arrival time of the sound at two or more microphones. If you want to cover an entire 360 degrees in the horizontal plane, then probably four microphones. I would use omnidirectional microphones, pointing upwards. By measuring the difference in arrival times at the microphones, and knowing the speed of sound in air, it is possible with simple trigonometry to make a reasonable guess at the direction of the source.

I would make life easier for yourself by requiring a loud, short sound with a fast rising edge to be the trigger for the system. A handclap, for example. If it's just someone speaking, it's much more complicated to extract that from the general background noise.

Read up about servo motors, and how you can specify the amount of rotation you want from them. After that it's just a matter of mapping your calculated source direction to the angle parameter for the servomotor.

Honestly, I wouldn't feel confident doing this in five days, though. Maybe others in this forum, with more experience than me, would manage it, and maybe they will join in and offer more advice.

Until you've actually done some groundwork yourself, I don't think you'll get much more help than I've already given you.

1 Like

No chance at all. Think of something else.

Sound source localization has been discussed many times on the Arduino forum. I have not seen anyone report any progress, let alone success.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.