PDA

View Full Version : Charger battery with pic12f675



Leonardo
- 23rd July 2009, 17:58
Hello friends,
I want to make a 4 battery charger for NiMH 2700mA using a pic12f675, the idea is that the LED stays on when the batteries are loaded and off when they have reached their full charge, which is not how to manage the entry for input analog the load is stopped upon reaching eg 6 V.

When you connect the battery starts charging, then pin 5 Mv monitors voltage divider, where the input analog detects that the load has reached 6 V pin 7 is at logic 0 and the load is short. I plan to put a temperature sensor (thermistor), so that if it reaches 32 ° C, the battery is charged to court.

Can you give me some idea about how to make the project.

Thanks

mackrackit
- 24th July 2009, 02:11
Sounds like you pretty much have the project mapped out.
What exactly do you need help with ?

Leonardo
- 24th July 2009, 15:49
I need to know how can I implement the code of the forum and if someone can help me.



Sounds like you pretty much have the project mapped out.
What exactly do you need help with ?

fratello
- 24th July 2009, 18:55
Something like this ?
Main :
......
goto check
......
goto main


CHECK : ; verify for voltage
ADCIN 2, ADVAL
VT = ADVAL * 5000 ; 5V with 3 decimals
VT = DIV32 1023 ; / maximum A/D reading

IF VT > 6000 THEN
GPIO.0 = 0
ENDIF
RETURN

Leonardo
- 24th July 2009, 19:15
Hello Fratello,

Exactly what is needed for the battery charger when the voltage divider delivers eg 60mV to the GP2 pin 7 is low and cut the load to the battery.

greetings



Something like this ?
Main :
......
goto check
......
goto main


CHECK : ; verify for voltage
ADCIN 2, ADVAL
VT = ADVAL * 5000 ; 5V with 3 decimals
VT = DIV32 1023 ; / maximum A/D reading

IF VT > 6000 THEN
GPIO.0 = 0
ENDIF
RETURN