Need help for Imax B6 80w with atmega32

748 views
Skip to first unread message

David Castor

unread,
Jan 31, 2022, 7:52:27 AM1/31/22
to cheali-charger
Hi everyone!
Sorry for my questions but i'm confused with so many verion for this charger.
I found mine on banggood, it come's with an atmega but i don't know more.
Can anyone help me with my charger? i need a piout for my board and witch hex file sould i take?

Here,s some pics : IMG_20220131_132037.jpgIMG_20220131_132046.jpgIMG_20220131_132055.jpgIMG_20220131_132106.jpg

Balze

unread,
Jan 31, 2022, 12:57:57 PM1/31/22
to cheali-charger

In the documentation of the cheali charger project there are two pictures of Imax B6 chargers frontview.
These chargers are equiped wit "trough hole" and not SMD parts.
You should assume the used Microcontroller pins are the same. Otherwise you are doomed! :D

The unsoldered pins on the PCB edge next to the display should be the ISP pins.
Two versions are documented in the cheali charger project.
Try these two.

If both fail, try to find the +5V and the GND pin.
Don't measure the voltage, but make sure there is an electrical connection to GND and +5V.
Find the voltage regulator. On the picture with the atmel is a SMD part visible. If I see it right then it's labeled wit 7805. If so, this is the voltage regulator.
Two of the three pins are GND and +5V. the third is the positive Input-Voltage.

If you found both, 2 from 6 pins are identified.
Next find the reset pin on the 6 pin connector. To do so, connect the left pins one after the other for a short period of time to GND.
If you connected the Reset pin to GND, the controller restarts (visible on the displays startmessage).

If you identified the reset pin, 3 signals are left. SCK, MOSI and MISO.
You have to test 6 possible variations to find the one the controller "speaks" to the programmer.
When all signals are identified and a connection is established try to read the flash and the eeprom and write it to your drive before you flash a new hex file.

Good luck

Balze

David Castor

unread,
Feb 1, 2022, 3:06:06 AM2/1/22
to cheali-charger
After killing my lcd screen, here is the isp layout for this board:


pinout.jpg

diggit

unread,
Feb 1, 2022, 12:46:53 PM2/1/22
to cheali-charger
> After killing my lcd screen, here is the isp layout for this board...
How did you manage to do that? :D

Try: Dual-Power-B6AC-80W-RC build. It has fully differential balancer circuit as yours (indicated by presence of that top right IC).
I doubt that manufacturer bothered with pinout altering and thus firmware modification.

Be careful when you download hex file to not download github webpage with hex file view ;)

diggit

David Castor

unread,
Feb 2, 2022, 11:31:05 AM2/2/22
to cheali-charger

> After killing my lcd screen, here is the isp layout for this board...
How did you manage to do that? :D
 
Using a screwdriver as lever and cut some path on the pcb. But it's fine i changed it already.
 

Try: Dual-Power-B6AC-80W-RC build. It has fully differential balancer circuit as yours (indicated by presence of that top right IC).
I doubt that manufacturer bothered with pinout altering and thus firmware modification.

Be careful when you download hex file to not download github webpage with hex file view ;)

diggit

Well,now i'm lost with avrdude an my duino as isp.
here's what a get with avrdude:

 

C:\avrdude>avrdude.exe -p atmega32 -c stk500v1 -P com5 -b 19200 -U flash:w:cheali-charger-imaxB6-clone_2.00-e10.3.12-20160613_atmega32.hex:a

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude.exe: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.03s

avrdude.exe: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.03s

avrdude.exe: Device signature = 0x000000
avrdude.exe: Yikes!  Invalid device signature.
             Double check connections and try again, or use -F to override
             this check.


avrdude.exe done.  Thank you.


 

Balze

unread,
Feb 2, 2022, 11:39:59 AM2/2/22
to cheali-charger
device signature = 0x000000 IMHO means, that you have no connection to your controller.
Keep in mind you don't have to connect MISO and MOSI like you have to with a serial. (Connext TX and RX)
MSIO connects to MISO and MOSI connects to MOSI!

David Castor

unread,
Feb 3, 2022, 3:54:36 AM2/3/22
to cheali-charger
My bad!

I'm a looser! i inverted the isp pinout on my drawing....
I'm happy because a didin't kill my board and she's upgraded with the unstable branch hex.
Thank you @ll for the help! Now i can charge my LiHv ( with the L435 program)

Here is the good isp layout on the board:
pinout.jpg

Balze

unread,
Feb 3, 2022, 4:37:40 AM2/3/22
to cheali-charger
And this is exactly the "original IMAX B6" pinout like I mentioned in my first reply. ;-)
Great to hear you got it working!

Francesco T.

unread,
Apr 17, 2022, 5:14:12 PM4/17/22
to cheali-charger
Hi, I have the same charger bought from Banggood with the exact same board. I saw your last image and copied the pinout. As for the firmware file what version did you use? The specific version for Imax b6 from 80w?
Thank you

Reply all
Reply to author
Forward
0 new messages