This charger will charge battery or super-cap to either pre-programmed voltage or to the voltage of the cell that we want to match (<3.3V). The charged cell/super-cap can be charged up to 4V. Charge current can be chosen to be either 8mA or 25mA. These are max charging current for Tadiran HLC batteries of 2 sizes (hybrid rechargeable cell and super-cap). This was just a project to learn; no use in production settings, maybe usefull for R&D.
Diff: main.cpp
- Revision:
- 1:822b4281ebbb
- Parent:
- 0:763f2afa5e8b
--- a/main.cpp Sat Mar 01 19:44:44 2014 +0000 +++ b/main.cpp Sat Mar 01 20:03:11 2014 +0000 @@ -157,13 +157,13 @@ if(!s2State)Rs1En=1; if(Vrsdrop<Vrs) { hlcEn=1; + chrgInd=1; chrgIncr=0.001; wait_ms(10); chrg=chrg+chrgIncr; - chrgInd=1; } } while(VrsOut<Vmax); - chrgInd=1; + chrgInd=0; wait(0.5); } }