cyrusthevirus
New Member
My project is an aquarium control system. A 5V power supply supplies a 5V LCD and then is reduced down to 3.3V to supply the PIC24F. The PIC uses 8 PWM channels to simulate a sunrise/sunset. In addition I am using 4 ADC channels to measure pH, temp, ORP and salinity. I output these values as well at the current date/time to the LCD.
All of the above is working very well. I am looking for something to maintain the RTCC if the power goes out. I do not need to run the LCD or any other features. I just do not want to lose the clock.
I searched online and from what I can tell is to use a CR2032 as a battery backup with a schottky diode.
Does anyone have a circuit they could share? Anyone have code they could share for putting the PIC into and out of sleep?
All of the above is working very well. I am looking for something to maintain the RTCC if the power goes out. I do not need to run the LCD or any other features. I just do not want to lose the clock.
I searched online and from what I can tell is to use a CR2032 as a battery backup with a schottky diode.
Does anyone have a circuit they could share? Anyone have code they could share for putting the PIC into and out of sleep?