The GND is connected to the extra GND port on the Arduino (next to pin 53 on my Mega). The microphone module has 3 wires: SIGNAL, GND, and VCC. Changing the strength of the signal will require the data be massaged otherwise the graph spikes won't appear at all (too low) or the whole screen will be filled with the graph (too high). #Arduino analog code#However, if you use different voltage or a different resistor, you may need to adjust the code so that the graph displays properly. A potentiometer or a higher ohm resistor might work better. I used a 220 ohm resistor because I just happened to have one on my breadboard. So, instead I used digital output 53 as a power source and connected a 220 ohm resistor between the power source and the microphone module. However, the touch screen covered both 3v and 5v ports. The microphone module required 3v -5v and recommended using the less noisy 3v channel on the Arduino. The UNO R3 2.8 TFT Touch Screen covered most of the ports on the Arduino UNO so I used a Mega for this project. Note: there is an extra resistor above the photo resistor that is not being used. You can view the picture above to see how the connections are made between the Mega and the sensors. An Adafruit Electret Microphone Amplifier with Adjustable Gain module is used for the second analog signal. For this project a photo resistor is used for one analog signal.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |