stawel / cheali-charger

cheap lipo charger
824 stars 275 forks source link

B6AC: Keypad is not working, charger beeps randomly after powering on #334

Open zuhair01 opened 1 year ago

zuhair01 commented 1 year ago

i have b6ac pro board v: b65A-A-V.17 charger i update the software but cannot access the keypad. 730_905555787 WhatsApp Image 2023-04-11 at 4 48 33 PM

diggit commented 1 year ago

It is probably broken!

But seriously, we need at least some info:

What is "thq"?

Cheali is not an update, it is an alternative firmware.

zuhair01 commented 1 year ago

file: cheali-charger-imaxB6-clone_2.00-e10.3.12-20160613_atmega32.hex WhatsApp Image 2023-04-12 at 9 27 17 AM (1) Microsoft Windows [Version 10.0.19045.2846]

(c) Microsoft Corporation. All rights reserved.

C:\Users\5454\Documents\rc\her>avrdude.exe -patmega32 -cstk500v1 -PCOM3 -b19200 -Uflash:w:cheali-charger-imaxB6-original_2.00-e10.3.12-20160613_atmega32.hex:a

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

Reading | ################################################## | 100% 0.05s

avrdude.exe: Device signature = 0x1e9502 (probably m32) avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude.exe: erasing chip avrdude.exe: reading input file "cheali-charger-imaxB6-original_2.00-e10.3.12-20160613_atmega32.hex" avrdude.exe: input file cheali-charger-imaxB6-original_2.00-e10.3.12-20160613_atmega32.hex auto detected as Intel Hex avrdude.exe: writing flash (31738 bytes):

Writing | ################################################## | 100% 35.92s

avrdude.exe: 31738 bytes of flash written avrdude.exe: verifying flash memory against cheali-charger-imaxB6-original_2.00-e10.3.12-20160613_atmega32.hex: avrdude.exe: load data flash data from input file cheali-charger-imaxB6-original_2.00-e10.3.12-20160613_atmega32.hex: avrdude.exe: input file cheali-charger-imaxB6-original_2.00-e10.3.12-20160613_atmega32.hex auto detected as Intel Hex avrdude.exe: input file cheali-charger-imaxB6-original_2.00-e10.3.12-20160613_atmega32.hex contains 31738 bytes avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 20.25s

avrdude.exe: verifying ... avrdude.exe: 31738 bytes of flash verified

avrdude.exe: safemode: Fuses OK (E:FF, H:C9, L:2F)

avrdude.exe done. Thank you.

C:\Users\5454\Documents\rc\her>

WhatsApp Image 2023-04-12 at 7 00 19 PM

randomly beep

stawel commented 1 year ago

randomly beep

this is something I haven't seen before, could you make a video when powering on the charger?

avrdude.exe: safemode: Fuses OK (E:FF, H:C9, L:2F)

you probably should "reset atmega32 fuses", see https://github.com/stawel/cheali-charger#troubleshooting

cannot access the keypad.

if only keypad is not working (and probably the buzzer) check to what the keypad pins are connected to - to which atmega32 pins

zuhair01 commented 1 year ago

keypad pins are connected to pin no 43- start pin no 42 - inc pin no 41 - dec pin no 40 - batt type

https://user-images.githubusercontent.com/24286542/232319257-0f0a0312-1b1d-40dd-baf7-52737d810e93.mp4

231370657-4a7da51e-f8a9-4c1a-a220-37e1520bcc36

stawel commented 1 year ago

Thank you for the video,

ok the pins are as they should: https://github.com/stawel/cheali-charger/blob/master/src/hardware/atmega32/generic/50W/imaxB6-pins.h#L78-L81

I'm guessing (??) that Your charger is missing pull-up resistors on the keypad - they are not needed but cheali-charger assumes they are present, to confirm that please do a test:

  1. measure voltages on each pin on keypad side for: "start" "inc" "dec" "batt type"
  2. measure the voltage as above but this time when the corresponding button is pressed
zuhair01 commented 1 year ago

voltages on each pin on keypad side for: "start" - 4.88v "inc" - 4.88v "dec" - 0.12v "batt type" - 4.88v

button is pressed "start" - 0v "inc" - 0v "dec" - 0v "batt type" - 0v

stawel commented 1 year ago

ok something is not right, it looks like you have the pull-up resistors: schematics: rc-power_bc6_imax_b6_hobbyking_eco06_digital_charger_voltcraft_b6_digital_balanced_charger pdf_1

your charger, see red rectangle: 231515768-574f44a7-1299-492e-bf0f-6f6b53500052

I see 4x resistors connected to your keypad (??), but based on the voltages the resistor on "dec" is not working!?! (not connected?) - please check this

zuhair01 commented 1 year ago

dec key resistor left side 4.8V other side 0.12V and i change resistor still l am not get

232512190-67e40c10-16a6-4618-89e1-d390dcb71805

stawel commented 1 year ago

Something is definitely broken, possibilities: p1. a damaged PCB via: https://en.wikipedia.org/wiki/Via_(electronics) p2. PCB traces shorted p3. your PCB has additional components (connected to "dec" pin) which are damaged p4. atmega32 is damaged

if you measured the 0.12V exactly at the 10k resistor then it is definitely not p1.

for p4. you may try this: cheali-charger-imaxB6-original_2.01-e10.3.12-20230419_atmega32-ENABLE_KEYBOARD_PULLUP_RESISTORS.zip (version with pull-up resistors enabled on keypad pins) If your charger works with this version that means your atmega32 is definitely damaged, you should replace it. (if it is damaged on this pin there is a good chance it is also damaged somewhere else)

zuhair01 commented 1 year ago

not a change,. your firmware start,inc, and batt type keys make beep . I found firmware Google search is firmware are the 3 keys work still dec key not working ImaxMod.zip

zuhair01 commented 1 year ago

old firmware backup copy i attach Thanks for your help b6ac pro.zip

diggit commented 1 year ago

Yep, readout protection was active an your flash (an eeprom?) backup is useless.

diggit commented 1 year ago

It really sounds like a HW issue. Do you remember if all keys worked in original FW?

zuhair01 commented 1 year ago

yes all key I found firmware Google search is firmware are the 3 keys work still

zuhair01 commented 1 year ago

cheali firmware no key work