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.
Revision 1:822b4281ebbb, committed 2014-03-01
- Comitter:
- krzysiekf
- Date:
- Sat Mar 01 20:03:11 2014 +0000
- Parent:
- 0:763f2afa5e8b
- Commit message:
- this one has improved "Charging" work. Steady when controlling current, blinking with low frequency when topping off.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 763f2afa5e8b -r 822b4281ebbb main.cpp --- 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); } }