davidd314152wind4
Automotive
- Mar 2, 2008
- 10
Hi,
I am using three outputs to control two DC motors. The motors do not run simultaneously. I'd like to use the remote-sensing of a power supply to control the voltage close to the motor terminals.
There are five possible states, controlled by three digital output lines:
000 - M1 off, M2 off
100 - M1 fwd, M2 off
011 - M1 rev, M2 off
001 - M1 off, M2 fwd
110 - M1 off, M2 rev
The middle bit switches a connection common to both motors between 12V and ground. The first bit switches the remaining connection on motor 1 between 12V and ground, while the last bit does so for the motor 2.
This is accomplished with an H-bridge consisting of four relays.
Is there a common method of remotely controlling power supply voltages in a situation like this? I find it simple to control the voltage across a single motor using a second H-bridge but I'm not clear on to do so for both of them.
I was thinking of using logic gates to switch between two different H bridges when in one of the four active states and the power supply terminals when both motors are off.
Any thoughts?
I am using three outputs to control two DC motors. The motors do not run simultaneously. I'd like to use the remote-sensing of a power supply to control the voltage close to the motor terminals.
There are five possible states, controlled by three digital output lines:
000 - M1 off, M2 off
100 - M1 fwd, M2 off
011 - M1 rev, M2 off
001 - M1 off, M2 fwd
110 - M1 off, M2 rev
The middle bit switches a connection common to both motors between 12V and ground. The first bit switches the remaining connection on motor 1 between 12V and ground, while the last bit does so for the motor 2.
This is accomplished with an H-bridge consisting of four relays.
Is there a common method of remotely controlling power supply voltages in a situation like this? I find it simple to control the voltage across a single motor using a second H-bridge but I'm not clear on to do so for both of them.
I was thinking of using logic gates to switch between two different H bridges when in one of the four active states and the power supply terminals when both motors are off.
Any thoughts?