I have a little system to time races, and I added a small feature to start the timer whenever a gun is fired. I have a rode wireless go mic (sends audio signal out) connected to my Arduino. The audio cable is connected to ground through a 10 kiloohm resistor and the other wire from the audio cable is connected to analog pin 5 on the Arduino.
During my testing, the system worked fine. Whenever a loud noise was detected (clap, tapping the mic, etc.) the system started a race as it should. However, the moment I disconnect the rode mic from the audio cable, it starts going haywire.
I have the system set up to whenever it sees an analog value of greater than seven it starts a race.
Whenever I disconnect the rode mic, the analog levels jump to greater than 300 and then dip to zero. They repeat this wave pattern continuously until the rode mic is plugged back in.
I'm very unfamiliar with audio measuring, but my guess is something to do with the fact that the audio comes out in AC current. Is there a way to make it so when the audio cable is not connected to the rode mic, the analog value would just read zero? Sorry if this is a stupid question, I'm not very good with electronics.
Please post a link to the "rode mic".
A disconnected analog or digital input is floating, and will read randomly changing values.
For proper connections, use your favorite search engine to find tutorials: try search phrases like "arduino audio input".
Link to rode mic:
Rode Mic
Please post a wiring diagram showing how are you connecting that wireless, encrypted microphone to the Arduino.
Schematic:
It's super simple, the microphone has a line out that is connected to an audio cable with bare end leads.
The analog input accepts only positive voltages, and audio is AC (positive and negative). Your connection should prevent damage, but when it is disconnected the input will float and rarely, if ever read zero.
To fix that, bias the input using a couple of extra components, and connect mic ground to Arduino ground. See Audio Input to Arduino -
The input will read about 512 (on a 10 bit ADC) when no mic signal is present, and swing above and below that. Your program should look for significant excursions from 512.
Schematic

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