Thanks! ..........
Saludos o Regards
Felixls.
void incduty(int value)
{
pwmduty += value;
if (pwmduty > 255)
pwmduty = 255;
}
void decduty(int value)
{
if (pwmduty < value)
pwmduty = 0;
else
pwmduty -= value;
}
.....
.....
case 1:
if (actualvoltage > normalchargevoltagecontrol)
decduty(1);
else if (actualvoltage < normalchargevoltagecontrol)
incduty(1);
if (actualcurrent < finalcurrentcontrol)
{
print("#END:CC\n");
stopCharge();
return;
}
break;
Well is the reading on the LCD or the actual current reading on your multi-reader giving fasle readings?
Are you reading the current correctly ?
does your other routines have stable current reading and charging current ?
Have you treid a short delay in between reading and inc OCR1A or decOCR1A
The list is endless .....
if (type==CV_LA)
{
if ((Vbat>14.4) && ((OCR1A & 0x1FF) != 0) ) { OCR1A--;}
if ((Vbat<14.4) && ((OCR1A & 0x1FF )!= 0x1ff)&&(Ibat<Imax_LA)) { OCR1A++;}
if ((Ibat<IfinishLA)&&(Vbat>=14.4)) { flag=charged; OCR1A=0;}
}
if(Vbat > 14.4)
{
if(((OCR1A & 0x1FF) != 0))) { OCR1A--; }
}
else if (Vbat<14.4)
{
if(((OCR1A & 0x1FF )!= 0x1ff))
{
if ((Ibat<Imax_LA))
OCR1A++;
}
}
As promised here is my very own version of the digitally controlled power supply. The code has been written in C, and compiled using HiTech-C compiler (lite mode enabled due to evaluation expiration). I have included all the details on my website which is located **broken link removed**
Yes, I know I'm working on putting the file up as a PDF. I still have a long way to go to install the PDF writer, and see how to convert the word art document into a PDF that is useable. The schematics are similar to the one in ElektorYou may be better off starting a new thread, I've looked on your web site, The shcematics are not showing yet.
Have you carried out a short circuit test ?
By this I mean set the voltae to 100mv current to max and short circuit the ouput terminals and see what happens, you will find it will give max output curent or dooms day and the transistors go pop (bang),but if left for longer everything will start and overheat, This test will prove how good the current protection is, I'm not saying this is what you would do under normal conditions. But it was a test I was asked to carry out when I re-deisnged a PSU (attached).
You may have this all ready covered in you software side and shut of the output voltage. It may be worth considering some thing like that.
Thank you for the nice comment, but you need wait a little longer, before I can provide some video's about the tests. To be really honest with you guys I don't know how to upload or post videos on my website. I'll have to contact someone on the M$ live to figure out how to do the same. Till then, WISHING YOU ALL A VERY HAPPY AND PROSPEROUS NEW YEAR 2011.Like I said don't get me wrong and I'm not knocking your project or your hard work it was just some of the things pointed out to me and When I did I was supprised how the PSU reacted to the various tests I carried out.
If you need help converting the word doc or any other format to PDF just PM me and I can do it for you.
Has for the videos why not jsut use youtube or ask Felixis has he has done it on his web site with links to youtube wizpic
Hi guys,
this is a very intersting project.
I have a question about the way the control.
Does the charger support different battery packs, without any modification?
I mean, can it charge nimh battery packs with 3 - 5 - 7 cells and so on, without any change to the circuit parameters?
thank a lot
B.
Yes I have, It does kind of work but only the setting up part of it, Proteus can't keep up with it, You may have to set the crystal for the pic to 8MHZ insted of 20MHZ.Hello,
anyone has tried the simulation with proteus?
thx
Ciao
Yes I have, It does kind of work but only the setting up part of it, Proteus can't keep up with it, You may have to set the crystal for the pic to 8MHZ insted of 20MHZ.
Has for your pevious question, Yes it does use a buck converter but the control for this is done by the software, If you hooked it up ona demo board or even made the PCB to test it on you will see when you first power it up you have to enter the capacity then the number of cells and so on.
If you go back to the first start of the topic and and look at Felixls link to his wonderful site you some videos on there and he shows you how it is done, It's not indepth but it is more than enough to show the basics of it.
Remember to say thanks to Felixls for sharing this great project all the credit goes to him.
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?