RoboDurden / Hoverboard-Firmware-Hack-Gen2.x

with different defines_2-x.h for different board layouts :-) Compiles with Keil version 6
GNU General Public License v3.0
73 stars 24 forks source link

Gen2.2.2 (ex2.12) - Yet Another Layout #28

Open TheJP opened 9 months ago

TheJP commented 9 months ago

Hello :)

Just found this repo and not sure if my boards resemble any of the already provided layouts.

Could someone maybe point out which of the two white connectors is meant for the on/off button? The other should be an LED port, but confusingly uses the exact same connector. (I'm a novice in hardware but an experienced programmer.)

Probably Master (Side where the on/off button is located):

Chip is a: GD32F103

IMG_20230928_172044

Probably Slave (Other Side)

IMG_20230927_135342

RoboDurden commented 9 months ago

The onoff button is probably to the right where the dcdc step down converter for the 5V and 3.3V is generated. The first board with the buzzer is probably the slave and the second one with the dcdc step down components is the master. So there i guess you should plug in the onoff button.

Please make a closer photo of the 48 pin MCU so we can see if it is a GD23F130 or some other chip.

TheJP commented 9 months ago

Both boards seem to be nearly identical (I didn't find a difference so far). I guessed the top picture to be the master, because the on/off button is located on that side of the hoverboard.

The onoff button is probably to the right where the dcdc step down converter for the 5V and 3.3V is generated.

Thanks for the hint. So the top right next to the buzzer would be the on/off plug? It has to be one of those two-pin plugs (top or bottom of the board, just unsure which one).

Please make a closer photo of the 48 pin MCU so we can see if it is a GD23F130 or some other chip.

It reads GD32F130 directly on the MCU. I tried creating a better picture, but my phone cannot focus when I go any closer than the following. But I think on that picture it is kind of readable. (Both boards have the same MCU, this is the board from my first picture.)

IMG_20230928_190015

RoboDurden commented 9 months ago

Sorry i rotated the photos: https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/tree/main/Schematics_2.12

This is the dcdc hardware of the master (without the buzzer) and probably the onoff switch: grafik

RoboDurden commented 9 months ago

Yes, a GD32F130C8 is compatible with this firmware and the simpleFOC firmware will also run on it. Now you need to trace the pins. hall sensor onoff button hold button led buttons

Please make a high resolution photo of the backside and the fronside (with the cables pushed out of the way).

RoboDurden commented 9 months ago

A sorry, this is no coil but simply the tranistor bent to the left :-( Both boards have a dcdc step down: grafik

So the board with the buzzer is the master and the onoff button should be to the left.

TheJP commented 9 months ago

Both boards have a buzzer and both are directly connected to the power-source.

So the board with the buzzer is the master and the onoff button should be to the left.

Is left near the buzzer or far from the buzzer?

RoboDurden commented 9 months ago

when you disassemble everything make new photos. hall sensor header is down, buzzer left, mosfets top. onoff persumably right.

TheJP commented 9 months ago

Backside

IMG_20230928_192337

RoboDurden commented 9 months ago

and a nice photo of the frontside with cables pushed out of sight.

TheJP commented 9 months ago

Wasn't sure which cables from the front were bothering you. So here are pictures where I temporarily disconnected the ports that lead to the other board. (Same board twice, 1. without flash, 2. with flash)

IMG_20230928_193145

IMG_20230928_193156

RoboDurden commented 9 months ago

Okay, the mosfet pins mostly are the same for all gd32F130 boards. And the hall pins seem to be PA0, PA1 and PA2 grafik

The 5 led pins most likely are PA15, PB3, PB4, PB5 and PB6

Now you need a cheap st-link-v2 dongle to unlock the boot loader and install the Keil ide to compile and test a new defines_2-12.h

And a constant current max 2A power supply (or step down converter with CC).

RoboDurden commented 9 months ago

no i am not sure about the led. But this enough for me for now. good night from Germany

TheJP commented 9 months ago

Thanks for looking into it! :)

I have an st-link-v2 USB dongle. For a power supply I have an original hoverboard li-ion battery pack. Probably don't have time to test it out until next week. I'll write here for an update.

Good night from Switzerland

Hishamahmed97 commented 4 months ago

@TheJP @RoboDurden Hello guys, Can you help how I can correctly build the keil project for this GD32F103 ?

RoboDurden commented 4 months ago

And for sure do not post triple times :-((

Hishamahmed97 commented 4 months ago

hahahaha Entschuldigung, ich war aufdringlich