I have a very crappy video of my sound sensor in action. All I have is a crappy web cam so the image is very poor, but at least you will see it respond. The sevo moves twice because when the program moves the servo it is not reading the adc. This will not be a problem if a servo controller is used.
I must confess a little. I did have two weeks electronics training along time ago when I went to UTI (automotive tech school) and I also had a book from forrest mims “Getting started in electronics” when I was in my early teens. I also programmed a few basic windows applications back in '97 so I had some electronics, and some programming experiance. Most of what I did was through research on the internet and a heck of alot of questions from several people.
Nice work! It was a bit dark, and dificult to see which way the servos output was pointing. I think it was just going to a full left or full right position. The next step is to attach the board with mic’s to the servo horn. Then measure the sound level on each side, convert to percentage so the servo can be pointed proportionally. The result would be the servo would point to the actual source instead of just the side that heard the sound. Disregard if this was the plan from the beginning.
I have not thought about converting to percentages, but I did think about experimenting with time delays similar to range finders, where each mic is checked for sound and then compared to each other to see which mic “heard” the sound first. The reason for this is: sound is amdient in the air, and can bounce off of other objects causing the servo to move the wrong way.
I like the percentage idea. I think this would be easier to try first.
As for the servo movement in the video, you are right, it is moving full left or full right. If you look closely in the video, stare at on tip of the servo horn and watch what direction it goes in the first microsecond of movement. After the first microsecond, it is to blurry to see what is going on.
The servo horn’s tip on the top right side of the screen (North, East) will move to the mic that hears the sound.