Hi guys, I am currently doing a solar panel tracking system. I am using PIC18F452 and don't know how to program sleep mode into PIC which is then waked up by certain value of input voltage. So I make my system flowing as below:
1. When evening comes, my system to return to initial position and stay into position as long as no intense sunlight appears.
2. To check when morning time comes ( intense sunlight comes out), my system will check for input voltage value every 1 minute or longer to determine when only to move the system towards to intense sunlight.
The question now is:
without using sleep mode, this 2 steps (repetitive delay and checking for input voltage ) for about more than 12 hours will draw a lot of power from battery or not? Or anyone can recommend me an easier sleep mode programming code.
Thanks a lot^^