I would like to use an Arduino Mega to have 13 digital outputs (LED), 13 inputs (arcade-style buttons), and 1 analog input (potentiometer).
When a button is pressed, I would like to have a pattern of LEDs flash, then stop. Another button is pressed, another LED pattern is run and then stop.
The potentiometer be able to change the delay time between each LED in sequence.
Once this project is successful, I would like to add into the outputs of each of the LEDs, another wire which would push a higher voltage (24v) to a solenoid switch. In essence, the LEDs would become a status light for the solenoids.
OFF until pressed
RUN then STOP
Each button press will finish, even if other button is pressed
Delay of “n” ms in between button presses
One Button will be KILL SWITCH (interruptor), to stop everything, no delay.
Plus 1 Potentiometer
Global ms spread (effects all patterns)
Between 30ms and 1500ms
13 total LEDs (later LED/higher voltage output)
Can the arduino (connected to a 9v battery), power all of the LEDs if they are tuned on at once(I’m almost perfectly sure it can)?
Is this possible?
ps. How can I add the solenoid switching (it could be at the regular 5v output) within the LED line?
Image is a (very starting) schematic of wiring (not inclusive of the total # of buttons, and not including the kill button).
Many thanks in advance!