Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zuhair01 opened this issue Apr 11, 2023 · 15 comments
Open

Comments

@zuhair01
Copy link

zuhair01 commented Apr 11, 2023

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
Copy link
Collaborator

diggit commented Apr 11, 2023

It is probably broken!

But seriously, we need at least some info:

  • which MCU is in that charger?
  • which file you flashed?
  • outputs/logs from flashing

What is "thq"?

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

@zuhair01
Copy link
Author

zuhair01 commented Apr 12, 2023

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
Copy link
Owner

stawel commented Apr 15, 2023

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
Copy link
Author

zuhair01 commented Apr 16, 2023

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

Video.2023-04-16.at.5.17.35.PM.mp4

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

@stawel
Copy link
Owner

stawel commented Apr 17, 2023

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
Copy link
Author

zuhair01 commented Apr 17, 2023

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
Copy link
Owner

stawel commented Apr 17, 2023

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
Copy link
Author

zuhair01 commented Apr 17, 2023

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
Copy link
Owner

stawel commented Apr 19, 2023

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
Copy link
Author

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

@stawel stawel changed the title help me B6AC: Keypad is not working, charger beeps randomly after powering on Apr 20, 2023
@zuhair01
Copy link
Author

zuhair01 commented May 1, 2023

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

@diggit
Copy link
Collaborator

diggit commented May 1, 2023

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

@diggit
Copy link
Collaborator

diggit commented May 1, 2023

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

@zuhair01
Copy link
Author

zuhair01 commented May 1, 2023

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

@zuhair01
Copy link
Author

zuhair01 commented May 1, 2023

cheali firmware no key work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants