i am trying to build a light operated chicken door. i have a programmable ATTiny85 connected to an H-bridge to operate the motor. there are two cut off switches to stop the motor (placed between the tiny85 outpu and H-bridge input) when the door gets to open and closed position. i was hoping to stop power running through the H-bridge and motor when the switched are activated. there is a 5v voltage regulator from a 9v battery to run the components. i have written a program but it is not...
light sensor chicken door
light sensor chicken door