Dexter Dude
Member level 3
battery charger atmel
Something is very wrong with your charger . I Removed the PIC from charger and took some voltage measurements :
yours
Pin 2 - 4.34 to 4.40v. and 4.39 to 4.45v.
Pin 17 - 2.51 to 2.52 and 2.51 to 2.52v.
Mine:
Vcc=12.00V
Pin 2(RA3) - 395mV
Pin 17 (RA0) - 405mV
Charger output : - 856mV
**broken link removed**
If you don't obtain similar voltages (and all the components are good) I think you mounted one ore more components the wrong way . My guess from this measurements and your measurements : check the orientation of 1n4148 diode (diode 1n4148 from Vdd to 100nF capacitor ) .
Vdd=5V Vdiode=0.65V -> 5-0.65~ 4.4V on Pin2
"I'm using 2.56k pot. and and 2.17k resistor measured on my DV, can I choose another value for resistor to make a test? "
Re: Values from 1K to 10K for POT and resistor will be fine. Try to use lower values in order not to disturb the ADC accuracy .
If you want to learn more about this type of charger check this page :
http://www.angelfire.com/electronic/hayles/charge1.html
Something is very wrong with your charger . I Removed the PIC from charger and took some voltage measurements :
yours
Pin 2 - 4.34 to 4.40v. and 4.39 to 4.45v.
Pin 17 - 2.51 to 2.52 and 2.51 to 2.52v.
Mine:
Vcc=12.00V
Pin 2(RA3) - 395mV
Pin 17 (RA0) - 405mV
Charger output : - 856mV
**broken link removed**
If you don't obtain similar voltages (and all the components are good) I think you mounted one ore more components the wrong way . My guess from this measurements and your measurements : check the orientation of 1n4148 diode (diode 1n4148 from Vdd to 100nF capacitor ) .
Vdd=5V Vdiode=0.65V -> 5-0.65~ 4.4V on Pin2
"I'm using 2.56k pot. and and 2.17k resistor measured on my DV, can I choose another value for resistor to make a test? "
Re: Values from 1K to 10K for POT and resistor will be fine. Try to use lower values in order not to disturb the ADC accuracy .
If you want to learn more about this type of charger check this page :
http://www.angelfire.com/electronic/hayles/charge1.html