I did as instructed and put together a (bad) schematic of how I imagine the direction control for the motor. However, in doing so I encountered a couple of issues that I didn't see coming beforehand, which might make the H bridge the best solution STILL. Just for the sake of it I pushed on with the relay method on paper anyway. Please bare with me, as I KNOW this is the wrong way of doing it, but Longbow was right: no way to spot issues in your design until you sit down and draw.
Let me walk you through, since I know it's clear as mud: R1 in the middle is in charge of setting the direction: when it's off, sending power to the COM terminals runs the motor up. When the relay switches over, the motor goes up since polarity is now reversed....seems simple and effective for now.
S1 on the right is the internal diagram of the rocker switch inside the car: it's basically 2 SPDT switches, A and B, in one package, operating in opposite directions. In the middle position, both the out terminals are grounded in the middle (marked 0). When rocked to one side, the switch on that side goes to VCC (marked 1), while the other remains grounded and vice versa. By design, it's impossible to have both sides onto 1 at the same time.
Since the relay has no OFF position (where the H-bridge has the first advantage), I initially thought of using a FET as a switch in series with the power going to the COM terminals of the relay to cut the power when the motor is not in use. This is the second issue I didn't see coming and quickly became apparent as I was drawing: the FET would need to come on for BOTH the up and down positions of the relay (since the motor needs power for both directions), which I thought I'd achieve by connecting the gate of the FET to the outputs of the switch - HUGE error: because the outputs automatically revert back to GND, the moment I rock the switch in any direction, I'd have a dead-short between OUTa and OUTb, since one is VCC while the other is still GND....NOT gonna work, so don't even mind those resistors I put on the gates, since that's the least of our worries right now.
I thought I'd work around it by adding another FET so I'd have 1 for each position of the switch and wired the gates separately - this isn't any better either, because the gates would always be grounded when the switch is in its neutral position, so driving the gates with any other signal becomes impossible, since anything I'd apply to them would be directly sunk to GND through the switch. To push this failed idea even further, I'd need yet another FET to allow power to go to the motor when the circuit receives the lock signal, so by this point I already have 3 power FETs AND a relay, so hell: might as well add a fourth relay, get rid of the bulky and possibly expensive relay and build a H-bridge...looks like it's back to the drawing board, but I thought I'd share my thoughts anyway

Leave a comment: