lm317 chargercircuit
"I asked that som time bacj and many posts after you say that, I've already seen that article, I use Proton and was wondering what Dexter wrtoe his in, Has I want to build a bigger vesrion of it of it, And I asked dexter if he would not mind sharing code but he never answered the question, like I said I would understadn if he did not want to, a yes or no woudl be fined instead of been ignored Very Happy"
Sorry about that .I thought that by not giving an answer you will understand that the answer is NO. Or at least not at this time . I did not meant to ignore anyone .
"I just wnated to know how to control the HPWM in realation to the charging voltage by using the A/D routine and then sending it out to control the LM317 and the mosfet."
There is no need for a HPWM.I just used an plain-simple ON-OFF to obtain the desired PWM signal .The frequency of PWM is approx 1HZ , with duty cycle changing from 6% (trickle charge ) 50%(slow charge ) and 99%(Fast Charge) .After this time a discharge pulse (aprox 2.5X Icharge) of 5ms is applied ,pause for 20msec and then measure voltage .
**broken link removed**
"1- If battery is near 1 volt the charger not start, display show E A (no bat inserted), in this case I need to charge a little bit in another charger and then put back to start the charger. "
RE:Battery discharged to much(not by this charger I believe) . Some Intelligent commercial chargers do that too.Try to adjust the the POT accordingly
"2- The charger only charge for about one and half hour and then the display show P (peack failed). "
Re: Battery needs reformatting or battery is dying (old age) .A couple of charge -discharge cycles might fix that . If your battery feels warm (> 37C ) that means battery is old and charger safe timer mechanism (10min with no voltage increase) prevented further heating of cell(s) ; otherwise reformatting will help .Either way I found discharging (prior of charging )beneficial for capacity retention , or at least not causing damage to the battery.If you use battery packs discharging and trickle charging helps balancing the cells .
I already used Excell to verify and plot data (thats why I choose REALTERM) .Charger is performing fine.As all of you noticed , the prices on NIMH batteries are quite affordable so why spend a lot of money for a fancy charger .I am using 5 year old NiCd/NiMh batteries and they are performing fine (only 10-20% capacity loss )
I wanted a simple charger without rings and bells , but still with good performance and plotting data capability . I prefer no switches ( idiot free design) .
The ideas behind this charger are : cheap , simple , robust , efficient , NICD/NIMH compatible.