Hi! I'm building a solar tracker which uses 2 LDRs, placed on the sides of the box the circuit is in, which sense where the sun is. Then an Atmega168 is driving the trackermotor until both LDRs get the same amount of light. There is also a fan motor, which gets turned on and of if the temperature is getting too high. Anyways, when I gave the circuit 12VDC from a power supply it drew over 1A without any of the motors connected. Just the on-board circuit. The 7812 got really hot. Luckily the power supply stops when the current gets to high, so I think the circuit survived. I've attached the schematics. Does anyone see what the problem can be? I'll be grateful for any replies! Thanks in advance.