Hi guys, I'd really appreciate some advice about something I am trying to achieve. I have got an Arduino Mega and an ESP32. What I am looking to do is connect both of them to two ULN2003 stepper driver boards however only one microcontroller board would be powered and driving the stepper boards at any one time. The idea is that I can drive the steppers from either microcontroller board. I have attached a diagram to try and explain what I am looking to achieve.... the boards are just for representation. Wires are not connected to the pins shown) hopefully it makes sense.
So my question is, do I need to protect the outputs pins on each Arduino board to prevent any damage / strange effects by having it connected (albeit powered down) while the other board is operating? Or is this just a bad idea from the start and I need to approach the problem in a different way?
I have very basic understanding of electronics and that's why I wanted to check with people who'd be able to advise me.
Many thanks in advance
M

