Chicken coop door controller

Hi,

This is the chicken coop door controller. When it gets dark at night, then hens go in by themselves, then the door shuts when the light reaches a certain level. In the morning it gets brighter and the door opens again. There is some hysteresis to stop it from going up and down. The electronics are simpler (ish..) and there is software running on a PIC16 to do the slightly clever stuff. I might write about it some time later, but for now I’m trying out this album plugin for wordpress.

IMGP3140.JPG
IMGP3140.JPG
The controller. Drill motor + geabox to the left, battery above. Blue and white cable is to the light sensor (light dependent resistor). Cables off the RHS go down to limit switches.
IMGP3142.JPG
IMGP3142.JPG
The controller on the door. Ignore the orange string - that's the manual override when the power dies.
IMGP3143.JPG
IMGP3143.JPG
Zoomed in view of the main circuitboard.