Hey, I bought a 7.4V 2 cells lipo on ebay with a proper charger, however the charger I got is defected and I'm reluctant to wait another week or two just to play with my RC chopper. So I thought maybe I build a charger until I get a replacement. I couldn't find any charging circuit, so I came up with my own, (see attached picture)
I want to build it with LM317 as a constant current source and an arduino to monitor the charging process.
Is it going to work? do you have any suggestions?
the code is going to be something like
loop{
OUTPUT1 < HIGH
OUTPUT2 < HIGH
OUTPUT3 < LOW //CC OFF
if ( ADC1 - ADC2 > 3.7 ) OUTPUT2 < LOW
if( ADC2 > 3.7 ) OUTPUT1 < LOW
if( ADC1 - ADC2 > 3.7 && ADC2 > 3.7 ) break LOOP
OUTPUT3 < HIGH //CC ON
delay 10 sec
}