I am building a project using an Arduino Mega, I am using 50 digital pins as I/O. 25 Inputs and 25 outputs,
Each input is reading from a transistor switch which is controlled by an Opto reflective sensor, each input will need to be read at the same time or very close in time to each other.
Each output is sending a pulse message to control a stepper driver.
Basicially controlling a Split Flap display
I have gotten it to work with 5 inputs and 5 outputs to control 5 letters, but once I add another 5. So a total of 10 inputs and 10 outputs, Once the Sensor is triggered the arduino flashes and possibling loosing power?
I am connected to a external power supply to the Vin of arduino, 12V 8A, so i do not think the power supply is the issue. (Pulling 500ma when running)
Is there some reason why I cannot have this many inputs reading at the same time?
The outputs work fine, but once the inputs are all triggered together it fails.
Here is a video of 5 split flap letters working.
Any help greatly appreciated