I am using an Arduino Mega 2560 to make a system (with four microphones, eight RGB LEDs, and 4 servo motors) that if one specific microphone picks up a loud enough sound, it will trigger a certain color combination of LEDs and turn only just two of the servo motors 90 degrees.
There will be four different combinations of possible LED and servo outcomes for the four different microphones inputting a loud enough sound.
I have attached the code I have so far (One problem with the code is that once a specific microphone is triggered, the serial monitor output stops. I would like to have a continuously running output of the read microphone inputs).
I have been having difficulty with the code and are looking for general guidance on how I should approach and improve this project.
Please let me know if you need anything else to help me.
Code 2020.pdf (71.6 KB)