The microphone generates a signal from rail-to-rail, 0V to 3.3V in this case, so 3.3V must also be used as the ADC reference voltage via the AREF pin on the Arduino. The microphone was wired to the 3.3V supply with the signal output going to ADC pin 0. The schematic above and image below illustrate the test setup wiring. The initial circuit demonstrates the ability to read inputs and activate LEDs directly from the Arduino’s digital pins. The project would use the built-in Arduino library methods for reading analog to digital converter (ADC) levels and writing to the digital pins. The first order of business was to prove that I could measure peak-to-peak amplitudes and trigger digital outputs based on the peak-to-peak amplitude. Since I was eager to start development before my hardware had arrived, I used as an initial development environment to simulate the basic concepts. Learning to Crawl – Controlling LEDs Via Wave Form Peak-to-Peak AmplitudeĮncouraged by evidence of successful signal processing projects on the web, such as this Adafruit tutorial, I figured this project would be an easy slam dunk with minimal understanding of signal processing required. You’ll need to add the ArduinoCrashMonitor and ArduinoFFT libraries to the Arduino IDE to build the source. The complete source code for the project is available at GitHub under the ASL 2.0 license.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |