I need a circuit that uses logic gates to run my H-bridge. it was suggested that i use logic gates in conjunction with some sensors to control the motor. the motor is to open a set of flaps when a fan is activated. i don't have the truth table for what i want yet, but i will post it as soon as i can. in the mean time, here is the main circuit diagram.