Well the real gnd is the negative on the battery, the atmega and opamps are essentially the load for the mosfet. The schematic may be a little confusing with how I have the gnd net. When power is applied to the enable pin, the optocoupler switches the npn to start sinking current to the battery...