Dude it's not the case I don't want to share the code and I only wanted Felixls to share code becuase it is a real cool project and would of gained loads from itSee you don't want to share a simple menu and you expected Felixls to share all his hard work
The main code is part of the menu system has with out the menu system you would not be able to select what you want to charge. Like you stated the menu is the icing on the cake beacuse you can't do the icing if you have not got a cake.:lol::-DWhere is the main code and what is it all about? My understanding is that the charging is the main code. The menu is just icing on the cake.
Dude if you read it correctly I said WITHOUT BEEN FUNNYMay be be you donot understand our british lingo and humor:-D Yes I can understand it's all your hard work and it's your hobby. Buying a charger just takes all the fun out of it.:-DDude, don't make such comments. Look back in the posts even Felixls had the same opinion about your writing. I had given you my website address, where I have shared most of my code under GPL. Its all my hard work written in C. I don't know what you do for a living, but I have a job to do and a family of 4 to feed. Given the bad state of our economy in the US, this battery charger project is not my Top priority. I don't care if it is not done, I'll pay $50 and get something from Radioshack that just does the job of charging batteries. I do these projects in my free time. I hope you got it.
The ADC is the easy part and already have the ADC covered so I don't need to convert to PDS. It's just when you read through the AVR450 code so much is happening and it's kind of hard to get your head wraped around it. After all I woudl like this to be spot and and not burn any batteries out.By the way here is some ADC code Freeware (useful to read battery voltage and current), if you want to integrate it into the "Main Code". It is all in C and easy to digest.
//dTdt - La temperatura por minuto excede 1 grado por minuto.
//dVdt - Detección de pico de voltaje. Espera inicial 10 minutes
//High voltage - 1.68 volts por celda
//Timeout - 65 minutes a 1C, 130 minutes a 0.5C, etc.
void chargeNiXX()
{
//Condiciones de fin
//Timeout
If (minutes > timeout)
{
Print("#END:TO\n");
stopCharge();
Return;
}
// Voltaje máximo
If (actualvoltage >= voltagecontrol)
{
test_voltage++;
If (test_voltage>=4)
{
Print("#END:VM\n");
stopCharge();
Return;
}
}
Else
test_voltage = 0;
If (minutes != last_min)
{
last_min = minutes;
// -dV/dt
If (minutes >= NDVwait && last_min_volt>0)
{
If (adc_voltage <= last_min_volt - 1)
{
Print("#END:DVDT\n");
stopCharge();
Return;
}
}
last_min_volt = adc_voltage;
// dTdt
If (last_min_temp > 0 && adc_temperature >= last_min_temp + 3)
{
Print("#END:DTDT\n");
stopCharge();
Return;
}
last_min_temp = adc_temperature;
}
If (actualcurrent < chargecurrentcontrol)
incduty(1);
Else If (actualcurrent > chargecurrentcontrol)
decduty(1);
}
Ah I understand now there is away that you can do it, I will have to look trhough my paper work/data sheetsI know that. I measuring current and adjusting it by PWM it's working fine.
I want to measure the amount of power I put into battery in mAH. How to do it?
I found the full version of the article including code
**broken link removed**
Publicación de código fuente
...........
La licencia es Creative Commons Creative Commons — Attribution-ShareAlike 3.0 Unported
......
Citar
You are free:
to Share — to copy, distribute and transmit the work
to Remix — to adapt the work
..........
saludos o Regards
Felixls.
Hi Felixls,
(a) The code only checks for current limiting, and does not check for voltage limiting.
(b) There is no kind of short circuit protection detection. The only way the power supply is protected is by the 0.51ohms which will turn on @ 1.3A, which will possibly happen after the connected equipment is destroyed
(c) There is no provision to store the current settings in memory :sad:
(d) The code can be optimized even more and the size can be reduced
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?