I am building a humane rodent trap, and require assistance. The trap works using an LED (not shown) and LDR (photoresistor). When the rodent walks over the LED, The LDR increases in resistance and more current flows into the transistor. Then a buzzer, An LED and two motors turn on to alert the consumer. The motor cuts off entries and exits for the rodents. They stop spinning when the door activates a microswitch. The voltage out of the transistor is 3.6V
However, I do not how I would wire it up. I know how to use a DPDT to reverse a motor, but I just made a mess when I tried.
I need the motors to go in reverse using the 4.5V wire when the circuit receives an input.
Switch off: Motors forward If dark using 3.6V supply
Switch on: Motors backwards regardless of light using 4.5V