camcamfresh / Xiaomi-M365-BLE-Controller-Replacement

Replacing the BLE Controller with a Cellular Controller
142 stars 34 forks source link

How to turn on controller? #10

Open NickGoumas opened 5 years ago

NickGoumas commented 5 years ago

I have the BLDC motor wheel, battery pack and motor controller from an original scooter. I'm trying to simply send a signal to the controller from a microcontroller. How do I turn on the controller to get it ready to start accepting messages? On the controller board there is a 4 pin connector with labels on the PCB. From top to bottom the labels are "G - T - P - 5". "G" and "5" are ground and 5v while I believe "T" is the data line for communication to the BLE which is normally in the handlebar. "P" seems like some sort of power button but I can't seem to get the controller to stay ON. If I connect 5v to "P" momentarily the controller's red LED comes on and the green LED flashes slowly for 35 seconds, then the lights turn off. Any advice?

vickyfikria commented 5 years ago

I'm trying to duplicate your work with Electron. But when I monitor scooter protocol with logic analyzer

image it is 5A A5 xx xx xx xx, not 0x55 0xAA xx xx . Any idea ?

flashmax1235 commented 5 years ago

Hi,

I am very interest in your work but I do not have a particle board, only an UNO and a MEGA. @BPitts2 Could you upload your arduino code that you go to work?

Best, Maxwell

kdconocchioli commented 5 years ago

@BPitts2 I'm doing the same setup you did with the motor, motor controller, battery, and arduino uno. I was wondering though what you did to simulate the brake sensor and throttle sensor analog inputs.

Also, if you'd be willing to share your Arduino code, that'd be really awesome.

doomsday425 commented 3 years ago

Good afternoon I’ve recently purchased a xiaomi m365 pro (second hand). I’ve recently changed a new front motor to the scooter as the front one was damaged. I’ve came across a problem where the wheel won’t work and the controller has a steady red light that won’t turn itself off after a while unless you power down the scooter. There’s no green flashing lights nor bleeping sounds. The battery holds between 40-50v.

Much appreciated, Doomsday425

alekxoo commented 3 years ago

@doomsday425 @kdconocchioli @flashmax1235 Hello, was wondering if you guys been able to get a working Arduino code and if so if you could share it with me that'd be really great! Thank you. alexkoo@utexas.edu

kdconocchioli commented 3 years ago

@alekxoo are you part of the hyperloop team at UT? It was a pretty simple wiring (that I can't remember) but required touching the high vtage line to one of the small voltage lines to turn on. Really weird but I'll see if one of my old colleagues can message back with the wiring.

kdconocchioli commented 3 years ago

If you can find Eric tang at utexas he got it working for sure and may still have the code!