LEAD ACID BATTERY CAPACITY MONITOR
Posted: Sat May 26, 2018 5:40 pm
Hello to all!
I would like to use ADC inputs of PIC16F1937/39 to make some measurements of battery voltage (lead acid 12V) , and display that as percentage (%), to monitor the capacity of the battery, on a LCD 4x20. I have 2 voltage limits of the battery , high=14.4V and low=11.2V. I would like to set the parameters of ADC..(0-4) macro , so that, at the low limit(11.2V) to have at LCD 0%, and at high limit(14.4V) to have 100%...I think to use an op amp before ADC input, but there is no space on PCB, so I'ii try to use ADC inputs of PIC...my problem is the resolution ...I need resolution at low-high limit window, at 1% step...how can I set parameters of ADC..(0-4) component macro , for above PIC , to have that resolution?...how can I enable the 10bit ADC module , because the ADC component macro parameters , I'm not sure , but I thinnk use 8bit byte..with that small voltage window is not possible to have 100 steps..with 10bit byte maybe is possible...Is there a code that I can add at FC7 code with c input , that enable the 10bit ADC for PIC16F1937/9 ? Thanks!
I would like to use ADC inputs of PIC16F1937/39 to make some measurements of battery voltage (lead acid 12V) , and display that as percentage (%), to monitor the capacity of the battery, on a LCD 4x20. I have 2 voltage limits of the battery , high=14.4V and low=11.2V. I would like to set the parameters of ADC..(0-4) macro , so that, at the low limit(11.2V) to have at LCD 0%, and at high limit(14.4V) to have 100%...I think to use an op amp before ADC input, but there is no space on PCB, so I'ii try to use ADC inputs of PIC...my problem is the resolution ...I need resolution at low-high limit window, at 1% step...how can I set parameters of ADC..(0-4) component macro , for above PIC , to have that resolution?...how can I enable the 10bit ADC module , because the ADC component macro parameters , I'm not sure , but I thinnk use 8bit byte..with that small voltage window is not possible to have 100 steps..with 10bit byte maybe is possible...Is there a code that I can add at FC7 code with c input , that enable the 10bit ADC for PIC16F1937/9 ? Thanks!