stawel / cheali-charger Goto Github PK
View Code? Open in Web Editor NEWcheap lipo charger
cheap lipo charger
I flashed my charger with hex file, it booted fine. Then I changed fuse bits like howto says. After that, I could not communicate with charger. It shows solid pixels on first row, blank on second row. I cannot flash charger or change fuse bits back. I just ordered a new charger because I think it is bricked. Please help me figure out what happened. I will spend time trying things. I checked connections, rebooted. I get the same response from the usbasp when the programmer cable is not connected to it. It is like it is not plugged in. I also posted to Google groups. Maybe we can prevent this from happening to other people? Thank you!
https://groups.google.com/d/msg/cheali-charger/Ep3LwX0_g28/PdkBEpy6gkYJ
code:
if(Balancer::isMinVout(Balancer::calculatePerCell(V_))) {
Here is what it looks like
traces near ISP port look like the same as iMAX original.
Maybe they really shipped me an revised iMAX original due to low stock?
http://imgur.com/a/ImFIZ
EDIT:
confirmed, same connection as iMAX original, looks like a "genuine" iMAX B6
Today I burned one mosfet with 200W charger and 4S lipo. There is no discharge amperage limit. It should be auto limited to 20W depends on voltage.
Hi Pawel
This is issue not one priority problem but safety notes.
if press and hold button on the current calibration menu
quickly exceeds the hardware limit.
should be off the button acceleration or keyboard repeat
Hi Pawel
I testing the 200W charger is maximal current (10A).
After up the 10A constantly 'm' character is displayed. Not B or other.
therefore not balancing.
m 1:3.900V
2:3.901V3:3.902V
If reduced the 9900mA is OK. 'm' is flashing.
please help me.
I think is good the timeout or other method.
Interest:
this situation each charging-mode
charging and charging and balance.
THX
Best regards
Jozsef
bool Balancer::isStable(const uint16_t stableCount)
{
for(uint8_t c = 0; c < cells_; c++) {
if(AnalogInputs::getStableCount(AnalogInputs::Name(AnalogInputs::Vb1+c)) < stableCount)
return false;
}
return true;
}
I noticed that in the storage or storage+balance mode if the charger needs to charge the LiPo to reach the 66% of charge it doesn't charge it not even at 1C.
For example on a 1300mah LiPo it was charging at ~350mah and this makes the process take hours to complete. Shouldn't it be charging at least at 1C?
What I do now it to charge and stop manually around 66% and then run the storage program but if I get distracted and it passes that value then again I have to wait hours because the discharge rate is even more slow.
currently: 16kHz
atmega32 version: 32kHz
At the Screen::displayScreenCycles the incremental time is shown instead of time of each proccess. 1 minute pause between discharge-charge cycles actually takes ~1:50.
Hi Pawel
I observed the voltage calibration cell4 and cell5 voltage on 200W and 400W chargers.
All chargers represents the effect.
If selected 4 or 5 cell, voltage increase +0,05V-0,1V
if deselect, voltage down 0,05V-0,1V
What is wrong
Best regards
Jozsef
or more precise 30:04.72
Hi Pawel
Etc. 31 minutes after start, main current decrease 4mA and only balancing.
end voltageafter end only 12.49V (3 cell) b123: 4.168 4.165 4.164
attacment: logview log. charger uartmode: ext deb.
charger: turnigy accucel6 fw: v031 newest (1 day). (all patch included)
logview logfile:
https://docs.google.com/file/d/0B1tSgWAfLbkBN04zV1dnUWRRSEE/edit?usp=sharing
thank you
Jozsef
Hi Pawel
my problem is own 200W and 400W chargers.
situation: setting C 8000 Ic 5000 (fully discharged battery)
after starting the charge, maximal current is 4500-4600mA
If reduce setting current 2200mA is also 1900mA charging current.
I messed up something? Or calibration problem?
I modified these charges p0 and p1 point (100mA-3A and 100mA-5A).
Thank you.
------2014.01.17.
Tested and measured Mega200x2 V2 and mega400x2 current control and current measurement.
I think that non-linearity the full scale the smps control or/and measurement.
possible solution the more calibration points (maybe 5-6 point) or Ignoring measurement (if possible)
Or displayed mA value not from Iout. (quick and dirty)
Hi Pawel
Today tested the logview the usb-serial cable with cp21xx chipset.
if serial data "debug" mode or "ext. debug".
19200baud good but samelost packet on cannel2, channel3 data.
Normal mode same lost some packets all speed.
Putty monitoring all ok all speed (dont understand)
Sorry the worst english.
one logview serial line is:
10:23:15,167 [A] $1;7;2789.9;11481;395;305;453;350;0;0;15227;3824;3944;3713;109;75;49;127;31;146;0;0;0;305;22;60
is line end normal? or crc problem?
red led is represent failed line (maybe). green led is packet ok.
http://www.youtube.com/watch?v=IPuHNE9njmA
other:
rx pin is common with fan control.
Interested implementation on arduino softwareserial library with tx only mode.
http://forum.arduino.cc/index.php?topic=112013.0
or avr sample
http://efundies.com/avr/avr_usart_init.htm
// Enable receiver and transmitter
UCSRB = (1<<RXEN)|(1<<TXEN);
Best regards
Jozsef
Hi Pawel.
Gyuri("reverse-engineer" for the 200-400W schematic) discovered the problem.
Measured data dependent for cellnumber:
sample values for calibration dependent different lipo cells.
50mA 1000mA
2S 259 3817
3S 261 3848
6s 264 3950
8s 266 4019
This problem not only for the calibration.
SMPS current is different too, but displayed current value it seems good, but ampermeter.
I dont understand: displayed value is a measured "real" value? Or simple reversecalibrationvalue from smps setvalue? (AnalogInputs::Iout)
value up to 10% different for 8 cells charger.
50W 6 cells charger error only 0.1-1%
This problem mathematically problem or other hardware design?
current measurement resistors:
50W-0.05ohm
200W-0.021ohm
400W-0.012ohm
Please help. Thank you.
Best regards
Jozsef
Is support for the Turnigy Accucel-6 also possible?
I might be a bit naive, but wasn't that also just a copy of the same basic design?
It was a clone of some common design, but it might have been a different family, I'm not sure now.
Hi Pawel
for storage mode stopping need twice press STOP button.
If this is normal operation , then please close this issue.
Thanx
Jozsef
program.cpp:150
Strategy::statusType Program::runStorage(bool balance)
Hi Pawel
Balance timer not stopped if the "program complete".
Only if "b" letter visible.
http://www.youtube.com/watch?v=QtdhZ49mARM&feature=youtu.be
Only if the "program end" and balance phase "b" is at once.
I guess it does not turn off the balance control.
After a long time the cells decreases volts 30 minutes after end at cell:4.14V. I measured current the main battery cable. zero.
Current measure on balance port i can not do it. there is no cable.sorry
may only lot of consume a cell-measuring device.
Hi,
I flashed my IMAX B6 - clone charger like the pic shows
But the only screen I got is squares in first row and nothing in second row. Seems that the program does not work well.
I tried ‘cheali-charger-imaxB6-clone-0.32.hex’, ‘cheali-charger-imaxB6-original-0.32.hex’ (sha1 sum confirmed) and several ones in ‘njozsef/cheali-charger-test1’, and got the same results.
My fuse setting is BOOTRST: 1 (unprogrammed), EESAVE: 0(programmed). The charger worked well after flashing the ‘ImaxMod.hex’ or ‘noname_flash.bin.hex’ in ‘njozsef/cheali-charger-test1 / hex / stock_fw-s / stock.zip’.
Did I do something wrong or what else should I do? Thanks :)
I have this issue
I calibrate my accucell 6 , imax b6 clone , turnigy 200w and my icharger 106b+ whith the same Multimeter
when i charge a 4s with the Icharger , the charge on the battery is 16.810v
but the others whith cheali charger firmware get 16.780
cant charge a lipo without balance port.
Hi Pavel.
I tested two charger (MEGA400 and accucel6)
Both charger produced the effect.
After charging+balancing complete and displayed "program complete".
wait etc 6 hours (overnight :-)
Morning: not sense the button press. (only power off and on again)
This is "secret keyboard lock" or ....
Thank you
Jozsef
Hi Pawel.
I using the 32Ah pack for charging (4 parallel 8Ah 5s pack).
Th pack is new, perfectly balanced (I use the fantastic cheali software :-)
The pack charging but stopping because 2A the near the end (minimal balancing time but good condition new battery).
setup Ic: 20A. set capacity: 32000mAh.
It would be a good option "Supercharge+balance" charging mode.
I think with set lower setMinI=200mA or lower.
What do you think?
Thx.
nj
Hi Pawel.
This bug is reconstruct method.
My accucel 6 good SMPS calibration point datas: 50mA=880, 1A=11000
steps: (need discharged 3s lipo)
lipo cht: 4400mA, ic:maximum_vaue
start charge:
stabilized Ic only 2927mA (should be 3968mA)
stop charge, calibration point (p2) decrease 5000. (this false value but does no matter (440mA))
start charge
iC 3927mA calculated value. Good calculation.
SMPS definition (temporary for testing)
I thinking (please teach me)
the problem is reversecalibration() method?
Thx
Jozsef
I overwrite the lines: on the Thevenin.cpp
//TODO:
// if(i > 32000) return 32000;
if(i > 65000) return 65000;
if(i < 0) return 0;
return i;
this is good idea?
I can see it works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.