I have a project using a Mega 2560 and several Uno modules to control motors.
The Mega reads a file on an SD card and then sends serial data to all the Unos.
Each Uno reads the data and then moves a motor.
Pin 7, output pin, on each Uno (Pin_Move) is switched between states when the motor moves and when the move is complete.
I want the Mega to wait for all of the motors to finish moving before the next line of the file is read. Pin 6 is the input pin and tied to all of the pin 7s of the UNO modules.
If I tie all of the Uno pin 7s together and set the state to low when moving and high when done moving, will this work? Will any pin bein low keep the tied pins low?
Is there a way to make this work with resistors to protect the Uno modules?