On the other hand when calibrating discharging current (I discarge), will a Power Source connected to the charger connector sufficient?
I personally use only a 3-cell battery to calibrate my charger,
Paweł
I am a little confused. When I try to calibrate with less than 6 cells, the charger claims a small residual voltage on all the remaining terminals (usually a fraction of a volt each).
Is this affecting the results? Have I missed something?
Connecting up just now I have the following (the first figure is shown on the charger display; the second is measured with a multimeter):
Vin 17.704V 16.779V
Vb1 4.040V 4.032V
Vb2 4.014V 4.011V
Vb3 4.038V 4.035V
Vb4 0.088V
Vb5 0.062V
Vb6 0.043V
V1-6 12.092V 12.084V
Vout 12.075V
What is Vin? I assume it is the voltage across the power supply at the power jack. I have measured from the black battery socket to the positive terminal on the power jack, as
the negative terminal is not readily available - as far as I can tell it is the same thing.
What is V1-6? I assume it is the voltage across the -ve to +ve terminals of all the batteries connected, however many they may be. This is obviously also the voltage across the
red and black battery terminals on the charger (provided these are connected, which I understand they have to be anyway).
Then what is Vout???
Most of the time - with rare exceptions - I have always had V1-6 and Vout giving the same value, but the above results show different values.
Note that I calibrated the charger a few days ago with a rather accurate multimeter (both expert and normal voltages, but currents not yet calibrated), yet the readings above are
already in discrepancy with the measured values - especially Vin which is almost a whole volt different!
The charger is visually almost identical to the posted photos of the "original" B6, although it is most definitely a clone. I first uploaded the "clone" version firmware but that did not really
work properly. Then I uploaded the "original" version firmware and that works (largely - as yet still with some problems).
Before calibration I replaced the "upgrade" resistors for more accurate operation - the 499k and 249k only 1% as that is the best I could get so far, but the other ones with the 0.1%.
(I have ordered the 0.1% 499k and 249k, but it is not yet completely clear whether they will be available or not).
I'll post full details of my hardware shortly in a new thread. I have a full copy of the original firmware (sorry, haven't yet tried comparing it with other versions on the net).
Best regards
Hans
Hello Pawel,
I am still having problems with the calibration. The voltage calibration seems to have worked OK, but with current I am getting wildly inconsistent results. Could it be that it is failing to save the results in EEPROM??? I attach the contents of EEPROM after calibrating voltage and charge current. With 50mA charge current I was getting a "Value" of about 511. With 1000mA about 10538. However after pressing save, if I try and enter the calibration again (to check it) it has gone back to 0. Also the mA value shown on the Cheali LCD is not right, especially on 1000mA.
In your instructions, what is meant by "Press Save for a few seconds"? If you press Save it instantly exits the calibration setting mode, and it does not seem to be interpreting a long press as different from a short press.
Also a word about your user interface - on the whole you have done a really commendable job - well done! However the inc/dec interface needs some adjustments. If you hold down the inc or dec it first changes singly, then slowly, then a little bit faster (so far spot on ...) however when you continue to press, after a short while the rate of change increases astronomically!!! Eg when setting charge current, if the value on the multimeter is about 200mA, and you continue pressing, when it gets to the fast change the amps will get to about 1.5A within a fraction of a second. Or when changing the voltage, if the current value is 17.7V and you want 16.7V, it first changes slowly, then when the rate increases it is at 15.7 within about 1/10th to 1/5th of a second - then you have exactly the same distance to go back in the opposite direction. My conclusion is that the fastest change rate is (a) massively too fast, and (b) reached too early. Please spend double the time on the intermediate change rate, and reduce the highest change rate by a factor of at least 5.
Can you please explain what are the values "Value"? Are these values stored as such in EEPROM, or are they used to modify another variable? Once set, if you enter the current calibration menu again should it start with the previously set value of "Value"? Mine is starting every time with 0, and nonsense values for bot LCD mA and multimeter mA.
Discharge calibration is 100% disfunctional for me. This might be a hardware issue, as I could not get discharge to work with the B6 firmware. When I enter the discharge calibration on 50mA I am getting a negative value for discharge on the multimeter of around -220mA. This is with Value=0, and LCD mA (if I remember correctly, not guaranteed) 2mA. If I increase Value to about 500, the measured mA went to about -230mA. Obviously it is hard to make sense of what is going on when I am not so clear about what it should be - and even more so when I have doubts about the integrety of the hardware.
I've made another attempt at the current calibration, the results are attached. The EEPROM contents has changed, so it is being written to, but it still gives a zero starting point when entering the calibration.
This calibration is quite dangerous! I charged one cell to 4.5 volts, and discharged another to 1.95 volts. When I tried to re-charge the latter, the charger went click click click while the voltage steadily dropped to 1.92 volts!
A crystal clear description of what to do when calibrating charge/discharge current (including a description of what the information shown on the LCD mean), plus the changes I suggested above to the inc/dec buttons would be highly valuable to prevent such excessive charges/discharges which can occur very quickly if things are not clear.
Am I correct in believing that if the charge and discharge currents are not correctly calibrated, the device will wrongly report how much juice has been put into the cell or drawn out from it?
Reset the charger to its default settings ("options"->"reset default") and try to calibrate it again.If this does not help, we will try something else.
On Wednesday, December 18, 2013 7:08:06 PM UTC, cheali-charger wrote:Reset the charger to its default settings ("options"->"reset default") and try to calibrate it again.If this does not help, we will try something else.
I have reset and recalibrated, this time it ran smoothly. I suspect I may have misinterpreted the instructions for Expert Calibration, which are highly ambiguous.
I have reworded the Expert Calibration instructions as follows - please check if it is correct (note: maybe you might consider renaming your Vb0pin, Vb1pin and
Vb2pin to Vb1pin, Vb2pin and Vb3pin - this makes the terminology easier and saves confusion, and is easier for no-programmers! However my text below is for
the software as it is now):
"
If you want to improve the accuracy of the balancing on the first two cells you can try to calibrate the voltage on the first three pins of the balance port.
BE AWARE THAT ON SOME CHARGERS THIS CAN BE DANGEROUS!!!
First check if you can safely proceed by using the following test:
* disconnect everything from the charger
* measure the resistance between the BLACK battery terminal and Pin 1 on the balance port (this is the furthest pin from the battery terminals and is
common to all the balance port connectors - it is also the most negative terminal of the battery).
* if the resistance is very low (less than 1k Ohm) STOP THIS PROCEDURE!!!
If the measured resistance is much more than 1k Ohm you can proceed as follows:
* Connect the power supply to the ImaxB6 and go to "options" -> "calibrate" -> "expert DANGER!"
* Connect a 1.5V battery and a resistor (1k Ohm to 10kOhm) in the following manner:
BLACK battery terminal of ImaxB6 to one end of the resistor, the other end of the resistor to the negative pole of the battery, and the positive pole
of the battery to Pin 1 (as above) on the balance port.
* With a multimeter measure the voltage between the BLACK battery terminal of ImaxB6 and Pin 1 on the balance port.
Adjust "Vb0pin" to this value using the inc/dec buttons.
* Disconnect the 1.5V battery
* Connect a 2-cell (or more) LiPo or LiIon battery to the charger (connecting both the main battery terminals and the balance port connections)
* Measure the voltage between the BLACK battery terminal and Pin 2 on the balance port, and set the appropriate values on "Vb1pin"
* Measure the voltage between the BLACK battery terminal and Pin 3 on the balance port, and set the appropriate values on "Vb2pin"
* The Expert Calibration is now completed - now proceed with the normal calibration.
"
I was always puzzled about your labels LiPo and Lilo (the latter has a lower case "el" in the middle) - I thought you meant LiIon (here an upper
case i). However after my calibration I tried charging 3 LiIon cells, and the charge said charge completed at cell voltages 3.98, 4.05 and 4.05.
Maybe you meant something else by Lilo?
In any case as far as charging is concerned LiPo and LiIon should be the same thing as far as I understand, the only difference being that LiIon
have a hard case and usually tend to be round, while LiPo have no hard case and are often flat; internally the the LiIon have a liquid electrolyte
while LiPo have a gel electrolyte, but the cell chemistry and charging parameters are as far as I understand the same. So what is Lilo then?
Immediately below the Expert Calibration on the ReadMe is a reference to Atmega fuses. This text is also not clear.
As the text reads, many people are likely to understand: "lfuse should be 0xde and hfuse should be 0xd7" - and if
they have different values maybe they will immediately change them to 0xde and 0xd7 - which they should not do unless
these fuse values apply to them.
The original fuses on my device were lfuse 0x3F and hfuse 0xC9, and I have not changes these. I checked the Atmega fuse calculator and as far as I understand
these two sets of fuse values must correspond to completely different hardware - i.e. different charger hardware versions. (Nevertheless some of the differences
didn't seem to make so much sense to me!!)
I have the Atmega32L8MU version of the CPU.
Am I correct in believing that the fuse values you give only apply to particular hardware? What is strange is that the fuse values I have and the values you quote are close to inverted!!
--
You received this message because you are subscribed to the Google Groups "cheali-charger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cheali-charge...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
WARNING - I really don't know! Any opinions expressed are only opinions, and are in all probability wrong!
If I say "I believe ..." that means I do not know!
Your quotation is presumably from page 26 of the datasheet, assuming you are using the same edition that I have which covers Atmega32 and Atmega32L.
However on page 1 it says that for the Atmega32 the speed is available up to 16MHz and voltage must be 4.5V to 5.5V, whereas with the Atmega32L speed
is limited to a maximum of 8MHz, and voltage can be 2.7V to 5.5V. There is a table on page 12 of the summary datasheet, but I could not find it in the full
datasheet. I have the 32L so it should have a maximum of 8MHz - on the other hand it has the 16MHz crystal. However the operating frequency could be
half that of the crystal I think, depending on how it is set up.
How much memory are you using for boot?
hm.. I did not notice the 8Mhz in the documentation before,it's really weird, You definitely have a 16MHz crystal,so the CPU is running with 16MHz.
Pawel, I have just looked at your new ReadMe. I would suggest changing the name of the first pin from Pin "-" to Pin 0, it is clearer.
But leave the "Pin 1 (next to Pin 0)" as it helps to avoid mistaking Pin 1.
I've checked the manual you posted; it is almost the same as the paper manual I got with my charger (which I did not trust), so that is interesting.
The handbook does contain references to LiLo, and also something which could either be a capital i or a lower case L, but on the Imax LCD a lower case L is
clearly visible as an L, which I argue does not make sense. LiIon (or LiIo) with capital i is an accepted symbol for lithium ion, and a capital i is not the same as a lower case L.
As for voltage and chemistry - see here:
http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries
also
http://www.powerstream.com/li.htm
and elsewhere
Normal Lithium-Ion or LiIon cells are identical chemistry to LiPo and want exactly the same charge cycle as LiPo - the only difference is in the packaging.
There is another cell type in the Lithium family which does use an endpoint of 4.1 V but I can't remember the exact name and couldn't find it on a quick search. We'll have to find it later.
Once we find the relevant information I suggest putting it in the ReadMe.
The chip manufacturers like TI, Microchip etc are good sources of high quality information about battery chemistry and charging regimes.
This one has very good information on charging regimes:
AN1012 - attached
and this one is also quite good:
http://www.ti.com/lit/an/snva557/snva557.pdf
Some of the useful documents on manufacturers websites are Application Notes, some are articles, and some are datasheets for particular chips that have good information in them.
In the above documents there is also some useful information on pre-charging with a very low current lithium cells that are deeply discharged.
On Thursday, December 19, 2013 12:01:29 PM UTC, cheali-charger wrote:The Vb0pin - Vb2pin naming convention is based on a common balance port connector:so I won't change it.
It is probably easier to replace the CPU,but It wouldn't surprise me if the atmega32 and atmega32Lwere in fact the same.If it works, just leave it as is.
Problem is, it doesn't work! At least, there are a lot of problems, and I can't make much sense of them at the moment.
That's partly because I haven't had time to take a rigorous look at it at the moment. LiPos are not charging fully - at
about 4V they refuse to charge further. Other LiPos have refused to charge at between 3 and 4V. The charger goes beep beep beep and the voltage
blinks in the screen, and with each blink the voltage goes steadily DOWN - i.e. it is slowly discharging. A NiMH that I tried today also acted strangely.
It was 0.8V, and the charger was undecided whether to charge it or not, then it charged just a few seconds, and in that time the voltage went up to 1.12V,
then it said it was full. It was not, it was empty still. On the other hand I have just just successfully charged two LiPos to 4.15V each just now, so I don't
know what it is doing.
Thanks Pawel. I have a 5V serial to usb adaptor for a temperature data logger, do you think that might work? It uses 3 connectors, Rx and Tx 0 - 5V and
ground (see P2 of the attached spec). On the Imax I have only the Tx (from Imax) and ground I think. Of course, there is the usual ambiguity of whether Rx
in the spec means Rx of the converter, or "connect-to-Rx" of the datalogger.
From the manual:
"The jack "OUTPUT" is the serial RS-232 interface in 3,5 mm stereo jack format. The
assignment can be defined as follows (connector plan):
At the back of the connector there is the ground = GND = reference mass (= reference
potential)
In the centre of the connector there is the contact RX = 5 V high input (= data input)
At the front at the point there is the contact TX = 5 V high output (= data output)"
Hope you've had a good Xmas!
Any UART->USB dongle should do the job.I recently bought 4 of them from china (similar to those):They arrived after two months ;)but still, they are very cheap.on the charger you have a 3 pin connector:1 pin: GND2 pin: RXD3 pin: not connected
on the charger you have a 3 pin connector:1 pin: GND2 pin: RXD3 pin: not connected
Pin 3 is connected to Vcc
I've tried an RS232 to TTL converter (MAX232), connected via a Prolific USB to Serial converter. I connected pin 1 on Cheali to GND on MAX232/TTL,
and pin 2 on Cheali to Rx on MAX232/TTL. I set UART in Cheali settings to normal, 57600. I don't get any data on the computer, although Logview
claims it is connected.
However there is something funny. At the bottom of the Logview window it says Testformat Lader, although I have Cheali set
as the device. If I click Edit Device Ini it loads the device ini for Testformat Lader.
Today I tried charging a single LiIon cell that had 3.25V - it said "3.25V, FULL" and refused to charge it. Then I put in two cells at about 3.95B each,
and it charged them for a short while, then said they were full at about 4V.
I have got my CP2102 now, and the LogView connection works. What is clear is that charging 4 cells works, but with many limitations, while charging 1 cell does not work at all. Discharging is also wholly inoperable.
If I put in 1 cell (LiIon or NiMH) it immediately claims the cell is full. The problem seems to be that the Vin is too high and cannot step down low enough. I can charge 2, 3 or 4 LiIon (I haven't tried more), but anything under 4 NiMH does not work.
For example with 1 LiIon it says something like this:
Lipo 3.70V/1C Ch
FUL 3.38V 5.49V2
The voltage is mostly around 5.5 to 6.5 V, not always the same.
The next problem is that it does not charge the batteries fully. This is my assumption on the basis of the LogView graphs and the final voltages. It looks like it is fast charging first with a moderate current, usually just over 1A (eg 1.16A), then as soon as the first cell reaches 4.2V it (appears to!! I could be wrong) stops charging it, and from this point on the current to all the other cells is also only trickle. Then all the other cells trickle charge until they reach 4.2 and then immediately stop, which is why I can never get a fully charged cell.
My understanding is that for LiIon there should first be a conditioning charge at low current to bring it up to the minimum voltage (if it was not already), then constant current until it reaches 4.2V, then constant voltage at 4.2V until current goes down to 0, when it is fully charged. Is that roughly what Cheali is doing?
What do you think Pawel, could this be caused by my CPU being overclocked? Or that the MosFets are the wrong type and/or damaged? It seems the buck mode isn't working correctly. Most of the time the CPU seems to be working OK (eg menus, calibration, etc), but maybe it is only when timing is critical that it causes problems.
I have photos of the final LCD state, Logview graph as JPG and as Excel data. Which should I upload?
I would like to change the CPU, and have already ordered a replacement, but am rather sceptical about my ability to desolder the
existing chip without the proper tools. I saw a youtube video showing a similar chip being desoldered with a soldering iron and a piece of copper wire bent into a rectangle - it looked very easy but reality is probably otherwise. I once replaced a CPU on an STM8 Discovery after accidentally shorting it to 12V; the soldering part was OK (it still doesn't work, but most likely because another part was also damaged, and I don't know which); but to remove the broken chip I just ground it off - that took a LONG time, and this one would be much harder.
The first 2hrs 25mins of the charge on 19th January was lost - Logview seems to have closed, not sure why.
--
What is the current capability on the balance circuitry of the ImaxB6?
2014-01-29 Hans Schmitd <hanssch...@gmail.com>:
I have got my CP2102 now, and the LogView connection works. What is clear is that charging 4 cells works, but with many limitations, while charging 1 cell does not work at all. Discharging is also wholly inoperable.
If I put in 1 cell (LiIon or NiMH) it immediately claims the cell is full. The problem seems to be that the Vin is too high and cannot step down low enough. I can charge 2, 3 or 4 LiIon (I haven't tried more), but anything under 4 NiMH does not work.
For example with 1 LiIon it says something like this:
Lipo 3.70V/1C Ch
FUL 3.38V 5.49V2
The voltage is mostly around 5.5 to 6.5 V, not always the same.The chargers thinks that you connected something to the balance port."3.38V" - is the voltage seen on the main leads"5.49V2" - is the voltage seen on the balance port (V2 - means two cells connected)
In a normal case the voltages should be equal (or the second voltage should be 0V when balance port disconnected)can you measure the voltage on the balance port during this?
The next problem is that it does not charge the batteries fully. This is my assumption on the basis of the LogView graphs and the final voltages. It looks like it is fast charging first with a moderate current, usually just over 1A (eg 1.16A), then as soon as the first cell reaches 4.2V it (appears to!! I could be wrong) stops charging it, and from this point on the current to all the other cells is also only trickle. Then all the other cells trickle charge until they reach 4.2 and then immediately stop, which is why I can never get a fully charged cell.
hm.. I see lots of impulses in output current, that actually not so good.It shouldn't be like this, I still have to work on it.The reason for that is the "balance+charge" mode, in which the battery gets charged and discharged at the same time.when Your battery cell voltages differ strongly you probably should use:first: charge, then: balance
My understanding is that for LiIon there should first be a conditioning charge at low current to bring it up to the minimum voltage (if it was not already), then constant current until it reaches 4.2V, then constant voltage at 4.2V until current goes down to 0, when it is fully charged. Is that roughly what Cheali is doing?
(there is no conditioning charge in cheali-charger)1. battery gets charged with constant current until one of the cells reaches 4.2V2. battery gets charged with constant voltage at 4.2V until the current drops to 0.1C3. (only when balancing) some of the cells are also discharged (*)(*) - a cell gets connected to a 21 Ohm resistor - drop on the cell voltage in picture - battery can still be charged depending on the charge current.
What do you think Pawel, could this be caused by my CPU being overclocked? Or that the MosFets are the wrong type and/or damaged? It seems the buck mode isn't working correctly. Most of the time the CPU seems to be working OK (eg menus, calibration, etc), but maybe it is only when timing is critical that it causes problems.
I think there are no problems that cannot be solved ;)I have photos of the final LCD state, Logview graph as JPG and as Excel data. Which should I upload?Logview graph as JPG are fine, and you could also send the original LogView files.
Thanks for the reply Pawel, see below:
With a LiIon cell I am now getting a different result - with the balance lead connected I get "FULL" and about 3.9V/5.5V (didn't check too exactly), either selecting charge or charge+balance.
However with the balance lead disconnected, and selecting charge, it is charging the cell! It is currently saying 233mAh, 622mA, C 16'33", 4.199V.
Now (somewhat later) it is still showing 4.199, but I measured 4.13V across the main leads with a multimeter. Across balance port pins 0 and 1, it is 0V. A couple of minutes later 4.10V.
I started Logview belatedly, see attached image. It is funny that the Z1 graph is not visible at all!!!
The 5.49V is NOT the voltage across the balance port, that is about the 3.38. No idea where it is getting the 5.49V figure from. I assumed it was input voltage or something. It may think that 2 cells are connected, but only one is connected.
I HAVE connected to the balance port. I understood that you were recommending using both the main leads and the balance port, even with only 1 cell, and this was what I was doing.
So I tried it again just now, both with and without the balance port.
With one NiMH (pretty much discharged), it does not say FULL and it does try to charge it (yes, I am always getting inconsistencies), but only for 3 seconds, then it says program complete, reason V limit.
It then showed cell voltage 1.321V (with a voltmeter several minutes later and offline 1.26V). I think the initial values for the two voltages were something like 1.1V and 2.2V, but I'm afraid I didn't check it too closely.
It did not make any discernable difference whether the balance lead was connected or not, nor (I think this is correct, at least) whether I selected charge or charge + balance.
With a LiIon cell I am now getting a different result - with the balance lead connected I get "FULL" and about 3.9V/5.5V (didn't check too exactly), either selecting charge or charge+balance.
However with the balance lead disconnected, and selecting charge, it is charging the cell! It is currently saying 233mAh, 622mA, C 16'33", 4.199V.
Now (somewhat later) it is still showing 4.199, but I measured 4.13V across the main leads with a multimeter. Across balance port pins 0 and 1, it is 0V. A couple of minutes later 4.10V.
I started Logview belatedly, see attached image. It is funny that the Z1 graph is not visible at all!!!
I can't quite remember now if I tried this cell with the balance lead disconnected and selecting charge+balance or not - but if I did, it said FULL and refused to charge.
(*) - a cell gets connected to a 21 Ohm resistor - drop on the cell voltage in picture - battery can still be charged depending on the charge current.
Hmm. So many cycles of charging and discharging can't be too good for the cell, surely? Is this the standard way of doing it? I had the idea that the highest battery would just have its current diverted through a shunt, while the rest of the cells continue to charge. Maybe that isn't possible with the IMAXB6?
2014-02-03 Hans Schmitd <hanssch...@gmail.com>The 5.49V is NOT the voltage across the balance port, that is about the 3.38. No idea where it is getting the 5.49V figure from. I assumed it was input voltage or something. It may think that 2 cells are connected, but only one is connected.
Hans,Let's solve only one problem at a time,perhaps we should concentrate on charging one NiMH batteryconnected to the main leads (without the balance port) first.(This is the simplest case).
The message: "program complete, reason V limit."means that during charge the output voltage went beyond the safety limit,for NiMH it is 1.8V.The reason for that might be:1. You have a very bad battery connection.2. You are using very long and thin connection leads.3. You are using a battery case with high resistance cables (connectors)(for example the Turnigy 9x Transmitter battery case - I had so)4. The NiMH battery is dead.5. there is a bug in the firmware.what should be checked:1-3. a) please measure the cables resistance, form the charger to the batterythe entire path (to the place where the battery connects to a metal plate)(charger disconnected form power supply, battery disconnected)The resistance should be very small.b) try to connect the battery with another leads.if you accidentally disconnect the battery during charging,(even for a very short time period)you also get this message: "program complete, reason V limit."
4. ??
5. please send me the full LogView log from the 3 second of charging,(original LogView file)
Best Regards,Paweł
On The IMAX b6 you can only connect a 21 Ohm resistor.
2014-02-04 Hans Schmitd <hanssch...@gmail.com>:
I'm only looking at the NiMH (one problem at a time)and I see, a a voltage jumpfrom Vout = 1.263V at Iout = 0Ato Vout = 1.790V at Iout = 2.2AThis means that the Wires + battery internal resistance is:R = (1.790V-1.263V)/2.2A = 0.240 OhmUnfortunate this is to much.A NiMH maximum voltage during charge should be below 1.65Vand the safety limit is set to 1.8Vso if you want charge with 2.2A current then R should be:R<0.068 OhmSo we have 3 possibility:1. The battery internal resistance is to high (battery is dead) - unlikely2. the wires are too small3. we have a bad LogView readingThe simplest test would be:for 1 and 3. during charge measure the voltage on the battery (exactly on the battery)and the voltage on the chargers output.
from that we can calculate the battery internal resistance,the wires resistance, and compare it with the logView reading.
for 2. take the standard alligator leads, attach them to the battery(maybe secure them with some tape) and try again.
I wasn't sure whether you wanted the balance port connected alone, or balance plus main, so I did both.
With balance plus main I tried to measure that battery voltage with the multimeter in the last few seconds, and just at that moment the voltage on the display suddenly went up from 1.4V to 2.2V - not sure if that was caused by the multimeter or whether it was coincidence - before that the display showed just over 1.4V and the multimeter also.
Another brief charge of the same battery - it immediately stopped complaining v limit.
The "Lipo Z1" must be measured on the balance port, that is why I am getting ridiculous values when the balance port is not connected?
What do you mean by "voltage on the chargers output?"
2014-02-05 23:24 GMT+01:00 Hans Schmitd <hanssch...@gmail.com>:
I wasn't sure whether you wanted the balance port connected alone, or balance plus main, so I did both.Balance port and main leads connected at the same time.With balance plus main I tried to measure that battery voltage with the multimeter in the last few seconds, and just at that moment the voltage on the display suddenly went up from 1.4V to 2.2V - not sure if that was caused by the multimeter or whether it was coincidence - before that the display showed just over 1.4V and the multimeter also.
Another brief charge of the same battery - it immediately stopped complaining v limit.I looked on the logs and:1. I don't see "channel 2" logs (Here are the debug data).It looks like LogView saves channels separately so next time save both.
2. I am pretty sure that your problems come from bad wiring.You must know that the charger is just a "current source".If You do have any loose cables and the connection gets broken (even for a very short time period)
the voltage seen by the charger jumps up and the charger turns off the charging.Please check your wiring twice and try to charge the NiMH again.and save both channels in LogView.The "Lipo Z1" must be measured on the balance port, that is why I am getting ridiculous values when the balance port is not connected?Yes, individual cells are measured on the balance port.What do you mean by "voltage on the chargers output?"I mean the the voltage on the banana output connectors (the voltage at the beginning of your main leads).You should have a voltage difference of 0.5V when measuring at this point - relative to the voltage measured on the battery.(due to the 0.24 Ohm wires resistance and 2.2A current)
I've just measured the voltages again: 1.352V on the battery terminals and 1.353V on the charger output. (I forgot to change the range of the voltmeter last time, so 1 extra digit this time). That is with about 746-753mA. That suggests the wires are around 0.00133 ohms.
I've saved both. I can't see any graphs on channel 2 though - in fact I've never been able to see anything on channel 2. I saved a JPG of what I get on channel 1 and 2 - do you get any more than that?
I checked the settings - it says UART debug.
I think the problem there will be that the voltages arechanging fairly fast and the current is never as high as 2.2A and is gradually falling (when charging is really taking place, eg for 4x batteries), and then with only one battery the cycle usually only lasts a few seconds.
Just started charging one of the two above - both were so heavily discharged they were both at 0.88V and cheali refused to charge them I put them on constant current for a few seconds, now they will charge. The first one said 14% 1.08V 0.75Ah, then 1mAh 744mA, C 000:09 1.292V. After around 10 seconds I measured the voltages: 1.34V on battery terminals and 1.34V pn charger output. It is still charging, I'll post the results later.
So I don't see that the wires have any significant resistance. All of these batteries are from China though, so their internal resistance might not be too good.
Anyway my question is this: is all of the calibration data stored in the first 256 bytes, or is some of it stored later? Is there anything important in the later part of the eeprom, apart from user battery settings? I know the UART state setting is later because that was reset to default. Could there be any conflict between the data in the first 256 bytes and something stored elsewhere?
But if your ISP doesn't work you may have more problems.
On Wednesday, February 12, 2014 12:52:40 PM UTC, cheali-charger wrote:But if your ISP doesn't work you may have more problems.I've finally made some progress, and the last several days have been doing some testing.
The problem with the ArduinoISP is that the program provided by/with Arduino is long outdated (even with the latest software versions) and is only DESIGNED to read the first 256 bytes of the EEPROM. The flash memory is not affected.
The original author of the software has since 2010 provided un update to the software that reads the full EEPROM - it is a simple matter of using that software instead.
The correct Arduino software to use is here:
Latest version:
https://github.com/rsbohn/arduinoisp
(works with Arduino 1.0 and several versions of avrdude from 5.10 to 6.1, this or the one below should also work with earlier or later versions of Arduino)
(note that there are some differences in baud rate between different versions, sometimes 19200 sometimes 9600 - the latest version uses 9600 which seems to work better at least with avrdude 6.1)
See also:
http://savannah.nongnu.org/projects/avrdude
http://code.google.com/p/mega-isp/downloads/list
http://code.google.com/p/mega-isp/downloads/detail?name=ArduinoISP.04.zip&can=2&q=
Flash writing seems to have been OK all along.
My feeling is that it is working better with the new processor, but I can't yet eliminate the possibility that the main difference is simply that I am now shorting the Vb1 and Vb2 pins. So far I have only tested a single LiIon cell, charging and discharging.
There are a number of issues that I have still. I am not convinced of the validity of some of the measurements - especially Rbatt, Rwires, charge capacity, discharge capacity, charge endpoint and discharge endpoint.
The cell I have tested is a LiIon UltraFire 18650 cell from China, nominally 3800mAh (but probably actually significantly less), which I bought 2 years ago but was still shrink-wrapped until 20th January. It is cell number 19, which was cell 3 in the charge on 31st January (old CPU).
First I tried a discharge - it complained "cell full" and refused to discharge, but I noticed it was claiming "LiPo 3.70V/1C Di FUL 4.05V 6.55V2" so I connected Vb1 to Vb2 and then it discharged - first time ever! (never could discharge with Imax firmware). It was set for the default discharge current of 1.190A (set as 2200mAh). However, although it should have been virtually full (claimed 87%) it registered only 489mAh discharge. It stopped at 3.0V (stated only "program complete") and immediately sprung back to 3.6V - i.e. I think it was not fully discharged.
Depending on what our aim is in discharging, we should consider whether a constant discharge to 3V and then an abrupt end is really what we want - if we use a different discharge current it will stop at a different endpoint, because it will always bounce back when we remove the load. According to the cell capacity we set and the number of cells, Cheali will automatically set different values for discharge current.
I then recharged the same cell (in two stages, because I had to break in the middle and restart next day). Notice that it charged at a constant current of about 215 to 220 mA from beginning to end, even though it was set at 2200 mAh and Ic 2200mA. It charged a claimed 142mAh plus 2641mAh in 40 mins plus 725 mins 48 secs, 4.138V, and ended with the message "program complete reason: cap COFF".
I then set discharge current to 250mA and discharged again. This time it said 90% 4.08V and discharged 617mAh in 149 minutes to 3.184V. 2 minutes later I tried a "top-up" discharge, 24% 3.297V, it managed only 5mAh in 1 1/2 mins to 3.15V endpoint.
Then I charged again (still set to 2200mA), 18% 3.22V. Program complete reason: cap COFF after 725 mins 36 secs, 4.060V, again exactly 2641mAh. Again it charged from beginning to end at constant current of only 220mA.
I have a number of issues with these results, though many things are not yet clear.
The claimed discharge capacity is completely implausible in my opinion. The cells are almost certainly not as good as the 3800mAh claimed, and could easily be very much less, but that they are SO bad is out of the question in my opinion.
The claimed charge capacity is less implausible, but in view of the claimed discharge, the starting voltage and end voltage, I think it is also substantially inflated.
Cheali was quoting high values for the wire resistance, which varied from moment to moment and from beginning to end of charge/discharge cycles - which is obviously impossible.
Cheali was quoting even higher values for cell resistance of over 200 ohms, which also varied, but they varied less than wire resistance.
I have no idea what normal values for cell resistance are (even for sub-standard cells), but I am sure they cannot be nearly so high. Is cell resistance an ohmic value, and does it change on a moment to moment basis according to charge/discharge conditions or not?
Why is Cheali claiming such high values for the wire/cell resistances? Presumably this is going to make many other calculations wildly inaccurate - maybe both in the calibration calculations as well as the charge/discharge calculations.
That Cheali can think 2 cells are connected to the balance port is also worrying.
I have a very sensitive 4-channel thermocouple circuit which uses an MCP3424 ADC, which is affected by spurious signals in unused thermocouple channels unless these are shorted out. I suspect what is happening is that when the ADC internally switches between channels it can carry over some charge from one channel to the next, if the unused thermocouple connectors are not shorted together. Maybe we have something similar here on the balance connector.
Is there any way of shorting the unconnected balance lead connectors from the software?
The spurious voltages shown by LogView as connected to all the higher balance connectors, and similarly the values shown during calibration, are also relevant here.
I'll post some results, but we'll have to see how many Google will allow me to upload.
Hmm - couldn't upload any log files at all, so I've uploaded the graphs instead. The log files are all 6 to 12MB each.
I tried sending another file, but it did not work. I got an error message "An error (#618) occurred while communicating with the server." I was getting the same message last time I tried.
--
You received this message because you are subscribed to the Google Groups "cheali-charger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cheali-charge...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello Pawel,
I'll try sending you the other three files (if it will let me - FAILED!). Is there any way of reducing the sample frequency in Logview so that the data files are not so big?
Where I am able to charge at all, the current is so slow it takes about 18 hours, and then the log files are huge.
At present I am having even less success - I can't charge anything at all except with the calibration setting (hmm, pretty hazardous!).
Gmail has a file size limit of 25MB, please split them into smaller files,
In a message you wrote above (which I cannot access at present) you asked why I am charging at 220mA - that is what I would like to know! I can't get any more than that. A lot of the details were in the message that was mysteriously deleted as soon as I posted it. In battery settings all the log files I sent you by email were set at 2200mA charge current - I don't get that though.
--
I'm currently looking into your logs and:1. 20140218-2-1xLiIon-charge-start-channel2.lov2. 20140219-1-1xLiIon-charge-finish-channel2.lova) you are charging the battery with 220mA - why such a small current?b) the charging process stops at V1=4.142V - that's very strange it should stop at 4.2V- did you stopped it manually?
c) for some reason the graph splits after 40 minutes - hm.. I'm currently testing this.
3. 20140218-1-1xLiIon-discharge-channel2.lov- I'm not sure what kind of battery this is but I can clearly see a big voltage drop at the begging (16s):from V0 = 4.05V, I0 = 0A (discharge current)to V1 = 3.75V, I1 = 1AThat means that the internal resistance is R = (V1-V0)/(I1-I0) = (4.05V-3.75V)/1A = 0.300 Ohm = 300mOhmIf this is a battery used for power tools (toys) it's definitely dead.
ps.- It's easer for me to read channel1, so if you have two channels send me both.- please restart LogView after each record, for some reason you logs contain many activities.
Best Regards,Paweł
On Saturday, March 15, 2014 10:59:04 PM UTC, cheali-charger wrote:I'm currently looking into your logs and:1. 20140218-2-1xLiIon-charge-start-channel2.lov2. 20140219-1-1xLiIon-charge-finish-channel2.lova) you are charging the battery with 220mA - why such a small current?b) the charging process stops at V1=4.142V - that's very strange it should stop at 4.2V- did you stopped it manually?
No, it stopped itself. I think I have never had a charge reach 4.2V. Many times a charge has done constant current until 4.x and then immediately stopped. Many other times it has started from constant voltage (although the voltage is way below 4.2) and never does any constant current. The charge modes are not working correctly at all on my charger. Also the discharge finishes early, with a massive amount of charge left in the battery. There is a very hefty voltage rebound - if you partially discharge a full cell at high current the voltage will drop very deeply and very quickly, but then it will recover within very few seconds. The voltage could briefly go below 3 volts, even though it is still 90% full (my opinion, not measured data!).
c) for some reason the graph splits after 40 minutes - hm.. I'm currently testing this.
What do you mean the graph splits? I can't see that. Maybe it is something I am not displaying.3. 20140218-1-1xLiIon-discharge-channel2.lov- I'm not sure what kind of battery this is but I can clearly see a big voltage drop at the begging (16s):from V0 = 4.05V, I0 = 0A (discharge current)to V1 = 3.75V, I1 = 1AThat means that the internal resistance is R = (V1-V0)/(I1-I0) = (4.05V-3.75V)/1A = 0.300 Ohm = 300mOhmIf this is a battery used for power tools (toys) it's definitely dead.
Pawel, if you look above: STARTQUOTE "
There are a number of issues that I have still. I am not convinced of the validity of some of the measurements - especially Rbatt, Rwires, charge capacity, discharge capacity, charge endpoint and discharge endpoint.
The cell I have tested is a LiIon UltraFire 18650 cell from China, nominally 3800mAh (but probably actually significantly less), which I bought 2 years ago but was still shrink-wrapped until 20th January. It is cell number 19, which was cell 3 in the charge on 31st January (old CPU).
First I tried a discharge - it complained "cell full" and refused to discharge, but I noticed it was claiming "LiPo 3.70V/1C Di FUL 4.05V 6.55V2" so I connected Vb1 to Vb2 and then it discharged - first time ever! (never could discharge with Imax firmware). It was set for the default discharge current of 1.190A (set as 2200mAh). However, although it should have been virtually full (claimed 87%) it registered only 489mAh discharge. It stopped at 3.0V (stated only "program complete") and immediately sprung back to 3.6V - i.e. I think it was not fully discharged.
Depending on what our aim is in discharging, we should consider whether a constant discharge to 3V and then an abrupt end is really what we want - if we use a different discharge current it will stop at a different endpoint, because it will always bounce back when we remove the load. According to the cell capacity we set and the number of cells, Cheali will automatically set different values for discharge current.
I then recharged the same cell (in two stages, because I had to break in the middle and restart next day). Notice that it charged at a constant current of about 215 to 220 mA from beginning to end, even though it was set at 2200 mAh and Ic 2200mA. It charged a claimed 142mAh plus 2641mAh in 40 mins plus 725 mins 48 secs, 4.138V, and ended with the message "program complete reason: cap COFF".
I then set discharge current to 250mA and discharged again. This time it said 90% 4.08V and discharged 617mAh in 149 minutes to 3.184V. 2 minutes later I tried a "top-up" discharge, 24% 3.297V, it managed only 5mAh in 1 1/2 mins to 3.15V endpoint.
Then I charged again (still set to 2200mA), 18% 3.22V. Program complete reason: cap COFF after 725 mins 36 secs, 4.060V, again exactly 2641mAh. Again it charged from beginning to end at constant current of only 220mA.
" ENDQUOTE
All these 6 records (the three you have plus the other three) were using the same battery, cell number 19. This cell is not at all dead, it has a lot of capacity, and can produce good current.
I am absolutely 100% certain that all your resistance calculations are WILDLY wrong for my charger and for the way it is set up and for the batteries I have used. Maybe it is a very small error in other chargers that is massive in my charger, or maybe this error does not exist in other chargers, I don't know. But what I can say for certain is that in my charger as I have used it your resistance calculations are massively wrong. They are far too inconsistent with each other and with fixed constants such as wire resistance and battery performance. Whether I have a defect component, or a wrong component, or a wrong design I don't know. This must lie at or near the root of the problem. Can it be that some of your core assumptions are not quite correct?
"The cell I have tested is a LiIon UltraFire 18650 cell from China, nominally 3800mAh (but probably actually significantly less), which I bought 2 years ago but was still shrink-wrapped until 20th January. It is cell number 19, which was cell 3 in the charge on 31st January (old CPU)."
"The cell I have tested is a LiIon UltraFire 18650 cell from China, nominally 3800mAh (but probably actually significantly less), which I bought 2 years ago but was still shrink-wrapped until 20th January. It is cell number 19, which was cell 3 in the charge on 31st January (old CPU)."I'm not Pawel, but I do have a working Cheali-Charger... Number 1: http://budgetlightforum.com/node/27603 Are you sure your ultrafires are what they say they are? Check out the link then, reconsider. The evidence from your LogView suggest that there is a serious problem with your battery.
Well, what I can say with certainty is that my batteries are at least 10 times better quality than my charger! I assumed from the start that the real capacity is less than the claimed 3800mAh - as long as it is more than half that it is OK for me - but performance wise they are much better than that, as long as they are charged fully, which this charger cannot do (as to reliability of the batteries I cannot say yet).
The serious problem is with the charger, not the batteries.
Hello,
I had a similar behaviour (low charging current and other "strange" problem with a 18650 Trustfire "protected" battery.
Hans, are you sure that your battery does not have an internal protection circuit?
Simone
Another point of reference ( I still think the battery could cause at least some of these errors). My charger slowly ramps up the current when charging. I just setup a test charge and it starts a 100ma for ~2seconds, then moves to 200ma for ~2 seconds, then 300ma..... 400ma.... then jumps up to 2.2amps (my chosen charge rate). I'm still new to the code, but am guessing that it is checking the battery during this ramp up and if it fails, which most ultrafires will, may stop charging.