The postman did not bring me any goodies yesterday to build the H bridge so I have continued the job with parts I already had.
I promised you no witchcraft - this simply switches and relays.
This circuit is designed to take signals from the up, down and stop press buttons in combination with the upper and lower limit switches and produce un ambiguous up and down signals and be as 100% fail safe as possible.
Under no circumstances must the up and down signals be on at the same time . If you follow the red path below, this is what happens when the UP push button is pressed momentarily (provided the upper limit switch is still closed).
The uprelay coil is energised, the UP output signal changes from 0v to 12v and vitally, the supply to the Down button is removed and so there is no way the once UP has been selected can a Down command be issued.
The up relay continues to be energised until either the up limit switch opens or the stop button is pressed**
From the symmetry of the circuit, you can see that if the Down button was pressed first, the Up button would be disabled too.
**The only reason that there is a stop relay used in the design is because I did not have any matching normally closed press buttons but I do have lots of relays so I used on the convert a NO switch into a NC one.
The circuit is also designed so that any failure of the switches, relays or damage to the limit switch wiring will result in no operation rather that engage an operating mode that could cause damage.
Just before you ask about the diodes across the Up and Down relay coils, when a coil is switched off, the collapsing magnetic field generates a negative voltage pulse that could damage the drive inputs to the H Bridge, these diode will safely conduct away the voltage spikes by shorting them out. This is known as back EMF.
So if you want to make sure that only one of two events can occur at one time but either can come first, this is sort of circuit to do the job. It also has uses for a panel game situation when you need to know who pressed first and to lockout out all subsequent presses.
Here endeth todays lesson :lol:
Bob