stawel / cheali-charger

cheap lipo charger
815 stars 271 forks source link

Welcome to cheali-charger!

This project is an alternative firmware to a variety of lipo chargers,
see hardware.

Don't use it if You don't need to
(not everything is implemented yet).

Any feedback is very welcome!
http://groups.google.com/group/cheali-charger

Features

WARNING

Please CALIBRATE charger before use!
Use an external temperature probe
(if You like your house ;) )

ALWAYS connect the power supply first, then the battery!

ALWAYS disconnect the battery before disconnecting the power supply!

Hardware

WARNING: You can get two chargers with the same name but different CPUs even if you buy from the same seller.
Only chargers with a atmega32 or M0517LBN CPU are supported.

Atmega32 CPU:

Nuvoton NuMicro M0517LBN CPU:

Unsupported due to old or uncommon CPU See #106

Usage:

After flashing your charger the first thing you should do is to reset the charger to its default settings ("options"->"reset default") and then calibrate it, now your charger is ready to use.

programming you charger:

charing/discharging...:

  1. informations about settings
  2. charging NiMH and NiCd batteries

Flashing

Calibration

Connect a NOT fully charged LiPo battery to the main leads
and the balance port, if you don't own a battery with a
balance connector, just connect a regular one (~4V)
to the main leads and the balance port first two pins
(pin "0" <--> Bat-, pin "1" <--> Bat+).

go to: "options"->"calibrate":

Done.
If you have any problems with calibration, go to "options"->"reset default" and try again.

Calibration - Expert (IMAX B6) - optional

Building from Source

Troubleshooting

  1. After flashing I see "options" and some strange characters in the second line (for example: squares), what should I do?
    • reset the charger to default settings (go to: "options"->"reset default" and press the "start" button)
  2. I get "calib. error": see this.
  3. Occasionally when the power is turned on, the error "eeprom error: 2 yes" pops up (or any other number): see #291
  4. After flashing charger doesn't work (display shows squares):
    • download the *.hex again, use the "RAW" button in github
    • check the sha1 sum of the file, compare it with *.sha1:
  5. [Atmega32 CPU] Sha1 sum is correct and the charger still doesn't work (display shows squares):
    • reset atmega32 fuses using avrdude:
      • windows: avrdude.exe -patmega32 -cusbasp -Uhfuse:w:0xc5:m -Ulfuse:w:0x3f:m
      • linux: avrdude -patmega32 -cusbasp -Uhfuse:w:0xc5:m -Ulfuse:w:0x3f:m

Useful materials

Mailing list

If you have any questions or suggestions please write to us at: cheali-chargerATgooglegroups.com
or visit: http://groups.google.com/group/cheali-charger
The mailing list is open for all.

Have fun!