The story of one day
How the pieces work together
Read this once and the diagram stops looking like spaghetti. Power flows from left to right. Signals flow from the brain outwards.
The battery pushes
The pushes at about 12 . The sits in the red lead. If a wire ever shorts, the fuse melts and the battery cannot start a fire.
The 12 V line feeds three things
After the fuse, the red wire is called the . It feeds the buck, the motor driver's POWER terminal, and the top of the battery sense divider.
The buck makes 5 V for the brain
The takes 12 V in and gives a steady 5 V out. The XIAO board needs 5 V. Feed it 12 V and it dies instantly.
The brain asks the clock what time it is
The is a tiny computer. It talks to the over two wires, . From the date and your latitude it works out today's sunrise and sunset.
The brain tells the driver to move
When it is time, the XIAO raises one of two pins, . The sees that and connects the battery's full 12 V to the , in one direction or the other.
The brain keeps an eye on the battery
All day, the XIAO peeks at the battery voltage through the . When the battery drops below 11.9 V, the code parks the boxes open and stops moving. A flat battery therefore never locks the hens out.



