hi, i have this schematic but i need it to work. the LDR only goes on when there is little to no light and its only function is to turn an IR LED on/off. if it is not connected to main source (12v) the 9v battery kick in like how a battery backup work. once it is connected back to the 12v the battery can begin charging again and the main load can power off of it. please refer to this diagram below as i think the final schematic will look something similar. hopefully i am using the gate right and is what i am looking for. i am really new at this but i know enough to follow a schematic. **broken link removed**