I am trying to control multiple stepper motors sequentially (only one at a time) with one controller, one driver a multiplexer and a dedicated "relay" circuit (shown in red). The idea is instead of having each motor have a dedicated driver, one driver is connected in parallel to all motors but with a "relay" circuit which lets the controller decide (via a mux) which relay to switch on and therefore which motor will rotate. For simplicity, the following diagram consists of only 2 motors:
I need inputs on the "relay" circuit (in red) since I built one and it is producing inconsistent results. Sometimes it works well sometimes it's constantly "on" with no way to influence through the "relay" circuit.
Any suggestions on tagging this question better are also appreciated!