IMAX B6 charger (original and clone) - open source firmware

Projects that are not for RC, but are cool and worthy of development.
Post Reply
User avatar
HC1969
Posts: 421
Joined: Wed Dec 28, 2011 8:47 am
Country: Hungary
Location: Istvan Magi
Contact:

IMAX B6 charger (original and clone) - open source firmware

Post by HC1969 »

I found a very interesting development! :)
A well-known open-source battery charger tuning!
Origin forum:
http://www.rcgroups.com/forums/showthre ... st26420111

Open source (origin):
https://github.com/stawel/cheali-charger

Modifications improved:
https://github.com/njozsef/cheali-charger-test1

flash tutorial for imax charger:
[BBvideo 425,350]http://www.youtube.com/watch?v=RZIxq7Pb53A[/BBvideo]

Schematic diagram:
http://elektrotanya.com/rc-power_bc6_im ... nload.html
http://rc.emiter.hu/ (MegaSound 9X, GCL-2, FrSky-RSSI-DAC, etc.) Keress fel!

User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmw

Post by rperkins »

neat
looks like they added my accucell 6 a couple weeks ago.

Now to decide
+ internal resistance of batteries measurement
+ nice graphics
- My charger is meeting my needs right now
- Dont want to mess it up and have to buy another one
- probably ought to finish a couple other things before starting another one :)

thanks for posting about this
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: IMAX B6 charger (original and clone) - open source firmw

Post by jhsa »

hey, I have one of those.. will read the links carefully.. :)
I have also the imaxb6 without the power supply and it seems not to be very accurate..

Thanks for posting it..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
njozsef
Posts: 29
Joined: Tue Jan 24, 2012 2:00 pm
Country: -
Location: Hungary

Re: IMAX B6 charger (original and clone) - open source firmw

Post by njozsef »

update:
- reduced hexfiles (50W, 200W, 400W, 200Wx2-commondisplay)
- protect uncalibrated charger.
- other minor fix. (overflow check, protect charger smps circuit)
- calibration error check

future:
-eeprom editor (need ISP connector)
-manual :)

Hi Guys.

New features:
- new Li-ion 4.35V Charge voltage supported. Battery codename: Li43
- cyclecharging with waste-time (working). This is long-long test :(
- cyclehistory screen working.

tested hexfiles on:
https://github.com/njozsef/cheali-charg ... master/hex
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: IMAX B6 charger (original and clone) - open source firmw

Post by jhsa »

Hi I didn't want to mess with my chargers as they are working well, but now I got one from a friend that did set one of his packs on fire and nearly burnt his house down. I could make tests with this one and maybe fix it. I think a bad calibration could have caused the charger to overchatge his battery?
Anyway, I could use this one to try the open source firmware. Need to find another way to calibrate the individual balance outputs as I don't have a 6 cell lipo pack.
Can't they be calibrated individually? If not is there a circuit we can build with resistors/pots to connect a power supply and calibrate the 6 balance outputs?

Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
OctavioS
Posts: 657
Joined: Sun Aug 17, 2014 11:54 pm
Country: Portugal
Location: Madeira

Re: IMAX B6 charger (original and clone) - open source firmw

Post by OctavioS »

They have 2 "secret" menu that you can calibre the voltage, wether if it's overcharging or not charging completely, but it's limited. One of the menus can be accessed only once. Search in youtube.

Enviado do meu Galaxy S6 edge através de Tapatalk.
Last edited by OctavioS on Sun Nov 08, 2015 5:24 pm, edited 1 time in total.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: IMAX B6 charger (original and clone) - open source firmw

Post by jhsa »

yeah, I know.. I was referring to the new open source firmware.. I guess I'd better try posting on the main development thread, on RCG I think..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
OctavioS
Posts: 657
Joined: Sun Aug 17, 2014 11:54 pm
Country: Portugal
Location: Madeira

Re: IMAX B6 charger (original and clone) - open source firmw

Post by OctavioS »

Definitely.

Enviado do meu Galaxy S6 edge através de Tapatalk.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmw

Post by Koarl »

It would be nice when the firmware would enable the charger to be used as foamcutter. Is that possible?
User avatar
OctavioS
Posts: 657
Joined: Sun Aug 17, 2014 11:54 pm
Country: Portugal
Location: Madeira

Re: IMAX B6 charger (original and clone) - open source firmw

Post by OctavioS »

No man, but I read somewhere that there is firmware that turns in to a baking machine.

Enviado do meu Nexus 7 através de Tapatalk
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
User avatar
Kilrah
Posts: 11107
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: IMAX B6 charger (original and clone) - open source firmw

Post by Kilrah »

Some of these chargers actually do have a foam cutter drive mode, which basically makes it into a CC/CV "lab" power supply.
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmw

Post by Koarl »

Yeah, there are some. But my b6 hasn't that function.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: IMAX B6 charger (original and clone) - open source firmw

Post by jhsa »

I don't think the B6 could do it. it's only 5A maximum current.. or would that be enough?

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
OctavioS
Posts: 657
Joined: Sun Aug 17, 2014 11:54 pm
Country: Portugal
Location: Madeira

Re: IMAX B6 charger (original and clone) - open source firmw

Post by OctavioS »

Kilrah wrote:Some of these chargers actually do have a foam cutter drive mode, which basically makes it into a CC/CV "lab" power supply.
Oops, I thought he was joking with that foam cutter issue.
My apologies.

Enviado do meu Galaxy S6 edge através de Tapatalk.
2x - Turnigy 9X with 9xtreme board;
2x - Turnigy 9XRpro ;
Frsky Taranis & Taranis +;
Horus x10s;
Horus x12s;
Radiomaster TX16S Max mark II.
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmw

Post by Koarl »

And it wasn't funny.

@jhsa:
Never measured the current on my diy foamcutter. I only now the voltage, it's around 20Volts
User avatar
KAL
Posts: 552
Joined: Thu Oct 10, 2013 4:36 pm
Country: Germany
Location: somewhere near Rothenburg ob der Tauber

Re: IMAX B6 charger (original and clone) - open source firmw

Post by KAL »

The required voltage depends on the length of the resistance wire.
Current is what counts (in fact it's the wattage).

Edit: 5A should be more than sufficient. up to 3,5A should be enough most of the time ...

Klaus
( TH9X / 9XTreme / FrSky DHT / Spektrum / Multi / RotEnc )
( 9XR PRO / erSKY9x  / FrSky DHT / Spektrum / Multi / RotEnc / P3 as Slider )
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmw

Post by Koarl »

Exactly! But as I said I never measured the current. I have a poti to regulate the heat.
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »

Would you think that it's possible to flash the charger with companion or is it necessary to fiddle around with this avrdude interfaces.
User avatar
Kilrah
Posts: 11107
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: IMAX B6 charger (original and clone) - open source firmware

Post by Kilrah »

You need the command line, companion does not have a preset for the processor types used there as they aren't the same as on any of the 9x variants.

Not that hard to do a copy/paste though...
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »

Ok, thanks! Maybe I'll give it a try...


Gesendet von meinem iPad mit Tapatalk
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: IMAX B6 charger (original and clone) - open source firmware

Post by MikeB »

If you have multiple -p options on the command line, I believe Avrdude only uses the last one. So, if you put an extra argument of "-p m32" in the companion communication menu you should be able to run Avrdude from companion.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »

I just opened the programmer to see how things look. I just slid the charger open like in the video and damaged all the buttons. I highly recommend to push the buttons out with a small srewdriver before sliding the charger open!

Then I read through the calibration manual there a question occured:
How is the power supply voltage input calibrated when the charger is an AC/DC device? Powering it with a car battery and measure the battery's voltage?
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »

Now I have tried to flash my Imax B6 AC genuineusing avrtools, but now it just shows squares. I tried to flash it back to the original firmware I read from the charger, but the problem stays the same.

avrtools gives me this output:

avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x33ad
0xd6 != 0x00
avrdude: verification error; content mismatch

I hope someone can help me please!

Thanks!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: IMAX B6 charger (original and clone) - open source firmware

Post by jhsa »

Can ypu post the complete output from avrdude?
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »

Thanks for your answer!

Here we go!


[ Task runtime: 35.385 seconds ]
-c usbasp -p m32 -P /dev/cu.Bluetooth-Serial-1 -B 8.68 -U flash:w:/Users/carloskammerlander/Desktop/imax dump/avrFlashFile.hex -U eeprom:w:/Users/carloskammerlander/Desktop/imax dump/avrEepromFile.hex


avrdude: set SCK frequency to 93750 Hz
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9502
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: set SCK frequency to 93750 Hz
avrdude: reading input file "/Users/carloskammerlander/Desktop/imax dump/avrFlashFile.hex"
avrdude: input file /Users/carloskammerlander/Desktop/imax dump/avrFlashFile.hex auto detected as Intel Hex
avrdude: writing flash (32766 bytes):

Writing | ################################################## | 100% 24.13s

avrdude: 32766 bytes of flash written
avrdude: verifying flash memory against /Users/carloskammerlander/Desktop/imax dump/avrFlashFile.hex:
avrdude: load data flash data from input file /Users/carloskammerlander/Desktop/imax dump/avrFlashFile.hex:
avrdude: input file /Users/carloskammerlander/Desktop/imax dump/avrFlashFile.hex auto detected as Intel Hex
avrdude: input file /Users/carloskammerlander/Desktop/imax dump/avrFlashFile.hex contains 32766 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 16.43s

avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x33ad
0xd6 != 0x00
avrdude: verification error; content mismatch

avrdude done. Thank you.

[ Task runtime: 35.390 seconds ]
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »

It works again, I used the file in the attachment.

Edit:
Now I can enter the calibration menu but how do I run the CORRECT(!) firmware for my charger that enables all these cool extra functions? I have already surfed to the github site, but I don´t know which fw I should coose and how get a flashable hex file from these funny "matrix codes".

Any advice is appreciated!

Thanks
Attachments
ImaxMod.zip
(28.04 KiB) Downloaded 952 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: IMAX B6 charger (original and clone) - open source firmware

Post by jhsa »

Try the RCG forum linked on the first post.. I still didn't look into this. I'm busy with something else. I got a charger from a friend that normally would end in the rubbish and that will allow me to mess with it without experimenting with my working ones..
I'm looking into a way of calibrating all the cell outputs. maybe with a power supply and some voltage dividers made with resistors and pots..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »

Thanks, I will do so!

jhsa wrote: I got a charger from a friend that normally would end in the rubbish and that will allow me to mess with it without experimenting with my working ones..
That is very wise, should have done the same!
jhsa wrote: I'm looking into a way of calibrating all the cell outputs. maybe with a power supply and some voltage dividers made with resistors and pots..

João
Sounds nice! Keep us tuned please!
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: IMAX B6 charger (original and clone) - open source firmware

Post by Koarl »


Post Reply

Return to “Other Electronic Projects”