New free Open Source Firmware for Xiaomi M365 Scooter available

Hello,
I just retrieved a genuine M365 Lite board to play with a BLDC motor and I naively thought that the genuine boards came with STM32 MCU but ... no.
There is a GD32 chip on it.
Did you test your firmware with such a chip?
How does the ADC perform?
 
I wrote M365 Lite, my mistake, it was on M365 Essential.
And the good news is that the MCU is a GD32 but not a GD32F103 (M3), it is a GD32E103 (M4).
A Cortex M4@120MHz leaves more room for advanced algorithms, thanks to the FPU (it easier to code with floats, with care, than integers in motor controller).

EDIT: exact ref: GD32E103CBT6 (M4@120MHz 128KB/32KB)
By far, the cheapest mid power motor controller with FPU and triple current shunts, usually 15-20€ for almost new 2nd hand on local sales (in France).
 
Last edited:
Do you know the type of the connectors used for the BMS/Display/Hall sensors?
The white ones, with 3,4 and 5 pins, 2mm pitch and a secure lock.

Thank you.

EDIT: it looks like JST-PA. Correct?
After somme googling, it seems to be a HY 2.0 connector.
 
Last edited:
I used the PA series as written in the ReadMe at GitHub. They are not matching perfectly, but they are working. Please report, if the HY fit better...
 
Connectors received today. I can confirm that these are HY2.0.
 

Attachments

  • hy365.jpg
    hy365.jpg
    133.3 KB · Views: 7
Back
Top