avr inteligent charger
"The value to compare with multimeter is read? "
No.That is the 10bit value ADC reads (0-1023 max).You calibrated the wrong way.You should use
V=xxxxmV variable instead (not
read variable from RealTerm.( I guess you also changed the POT or the 2k2 resistor connected to it )
The ADC is 10bit precision but it it feed thru an voltage divider aprox 2:1 (2k5 Pot and 2k2 resistor. The resistor needs to be a little lower value then the POT )
* For 27k using 22k (OK values 22K-56K )
* For 0.8R using 2.2R (important for discharge current , not critical but direct proportional with charge resistor , in order to correctly use the "reflex charging technique"
* For 1.25R using 4.7R see above , not critical
* For pot 2k5 using 2k2 not critical
* For IRF 530 using IRF540 not critical
This are the voltage thresholds used by charger :
V_batt read
0.877V -----
90(units) <-you need to adjust the pot to read this value 90 +- 5
1V ----- 100 (units)
2V ----- 200 (units)
3V ----- 300
4V ----- 410
8V ----- 850 ....................(1023 units max)
V=7791 <- the voltage ADC sense (or 742 x ADC_resolution )
So 7791/742 ~10mV resolution.
How exactly did you calibrate ? Where did you connect DV? I
f DV reads 0.773 volts then you should adjust the POT until Realterm reads 0.77-0.8V or "read=77" .Then if you put a batt in the DV and Realterm readings should match.
It is impossible to get 7.791V reading with no batt atached .Check the LM317 , the BC173 and the resistor connected to its base (decrease 1K5 resistor).
Also , if you power up the charger with no batt attached , the display should read
E
Check protection diode orientation.
"Met1:
Power up the charger with 12V dc , no batt in it.
Use the RS232 connection to watch the voltage readings of ADC .I used "RealTem" software to do this.
http://realterm.sourceforge.net/.
Also connect an Digital Voltmeter on charger Output (Cathode of 1N5401 diode)
Adjust the 2k5 POT till readings from DV and RealTerm match .An error of adjustment of less then 90mV is quite OK.
This is the most accurate adjustment. "