![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Is there a simple way/circuit to detect that the battery powering a PIC is running low and needs to be changed before its too late? | |
| |
| | (permalink) |
| Use a PIC with LV detect, (built into some modern PICs) | |
| |
| | (permalink) |
| Use a PIC with A/D converter, (built into most of the PICs) | |
| |
| | (permalink) |
| Excuse my ignorance but doesn't the A/D converter need a reference which in this case would be the supply voltage, which would be dropping at the same rate as the analogue signal of the battery supply. I'm using a 16F876a | |
| |
| | (permalink) |
| If you use a constant voltage source and measure that with the ADC, as the battery voltage falls, the ADC reference falls but the voltage you are measuring doesn't. Therefore the value you read back from the ADC will increase as the battery voltage drops and you can work out what the battery voltage is. | |
| |
| | (permalink) | |
| Quote:
Lefty
__________________ Measurement changes behavior | ||
| |
| | (permalink) |
| The PLVD module requires no I/O. It can be set for different voltage levels and will generate an interrupt. The PIC16F917 has one. 7 programmable trip points from 1.9V to 4.5V page 125 of the datasheet. | |
| |
| | (permalink) | |
| Quote:
You power the PIC from the battery and use a micro power voltage reference IC, for example an LM385 to present a constant voltage at the AD input of the PIC. | ||
| |
| | (permalink) | |
| Quote:
Have a look at the +Vref options in the datasheet, the setting I have in mind is +2.5V. Buy a 2V5 reference ic.[ or a 2.7V zener]
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | (permalink) |
| Wow, thanks for all the replies these are all some really good ideas. I'm going to try leftys voltage divider on the battery to start with because thats simple and I've already got the components Thank Rik | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Thanks for the help on this. I tried it last night and it worked a treat! I put a pot inseries with the battery to simulate it running down and fine tune my alarm. Came out supprised how little voltage a PIC can run on, don't know how reliably though. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| 12V battery indicator | George L. | Electronic Projects Design/Ideas/Reviews | 7 | 15th March 2006 01:28 AM |
| Low battery indicator | DarkImpy04 | General Electronics Chat | 1 | 27th July 2005 05:16 AM |
| Battery indicator consuming batteries | 2camjohn | General Electronics Chat | 3 | 18th February 2005 07:00 PM |
| Dc battery level indicator | Ryan Harding | General Electronics Chat | 1 | 13th July 2004 07:00 PM |
| Making battery pack, need help with LED battery indicator | kloan | Electronic Projects Design/Ideas/Reviews | 7 | 7th April 2004 12:19 AM |