speedEC
Full Member level 6

Dear All,
I previously used LM358 IC to monitor battery voltage of my 6v, 4.2Ah sealed lead acid battery. It consumes more current even device is in idle status, since it has connected directly to battery. So, I have decided to use on chip analog comparators provided on PIC16F628A to extend the battery life double. If so, I can monitor the battery at the desired interval, say for example everyday morning. I have designed the circuit as follows and it works well. But, I need to design hysteresis circuit for this comparator. Because, LED is lit lightly in small variations. I have to stop the LED and ON the LED only when the comparator output reaches exact value. Can anyone help me to design hysteresis circuit?
View attachment COMPARATOR_PIC16F628A.bmp
Thanks
pmk
I previously used LM358 IC to monitor battery voltage of my 6v, 4.2Ah sealed lead acid battery. It consumes more current even device is in idle status, since it has connected directly to battery. So, I have decided to use on chip analog comparators provided on PIC16F628A to extend the battery life double. If so, I can monitor the battery at the desired interval, say for example everyday morning. I have designed the circuit as follows and it works well. But, I need to design hysteresis circuit for this comparator. Because, LED is lit lightly in small variations. I have to stop the LED and ON the LED only when the comparator output reaches exact value. Can anyone help me to design hysteresis circuit?
View attachment COMPARATOR_PIC16F628A.bmp
Thanks
pmk