Bafang M500/M600 thread

thanks, i will try. Yes M510 have walk mode button, but not efficient, you need to change pinion to find correst speed. It more easy and efficient if you can modulate power with throttle
 
Hello everyone.
I posted this a few months ago:
"So I managed to get online access to the BesstPro software via the bypass. Now I want to reduce the max tempo in my M510. Since the program is still fairly new and has since been removed online, I can't find any instructions on how to do it. The display and controller are also recognized when reading, but if I want to change the parameters in the settings, the numbers entered are reset and a reading error occurs."

Now that I've read the form again. Did I understand correctly that there are versions of the M510 that cannot be changed due to the firmware? Are there now any solutions to this problem? As already mentioned, I just want to reduce the maximum speed limit.

Thank you in advance and for the work you guys do on this forum
 
Probably the most info on the standard motors is on this forum


If you just want to change speed then look up on AliExpress and you can get a small device to do just the speed and wheel circumference. A more advanced unit which will also change the firmware is listed on that Bafang thread and also EBay. Be somewhat wary of the firmwares as there is now 3 versions of the controller, each with their own firmware versions.

Sadly Bafang don't seem to care about the older motors and firmware versions, most can't be changed other than basics like speed and circumference.
 
Hi! I have problem with my bafang m500 g520. It turned off and can't turn on. It was after few km uphill ride during walk assistant mode (too steep for ride). I have checked:
Power Supply to PCB on yellow plug. It's OK.
Power button on remote controler, when push, shorts ground to full voltage
Replace cable between display and motor.
Took out the controller PCB - looks good (pic. below)
LED on PCB not blinkingWhatsApp Image 2023-05-21 at 06.14.20(2).jpegWhatsApp Image 2023-05-21 at 06.14.20(1).jpegWhatsApp Image 2023-05-21 at 06.14.20.jpeg

Where should I looking for issues? Is there any fuses on PCB? Where?
 
i have m500 controller that i dont use (without a radiator plate) if you're interested in. i can push it on half of price.
 
I finally got my "DIY" motor controller with ePaper display on my M600 eMTB working well enough for a weekend of riding. Pictured here with the friends' dirtbikes I was able to keep up with during 4000 feet of elevation gain (30 amps through the motor helps with that!). Thanks again to @casainho for making my bikes so much more fun to ride!

I came back with a bunch of ideas for improvement, but one I'm a little stumped on is occasionally the motor would halt and jerk a few times when downshifting during a hard hill climb (and then would come back after a few seconds). VESC is still on sensorless, so I will try an encoder... but anyone else have any ideas?
 

Attachments

  • PXL_20230520_214220565.jpg
    PXL_20230520_214220565.jpg
    1.2 MB · Views: 6
If the phase current spikes enough the controller could detect that and rollback or shutdown output, then restart when the load goes away. It could be tunable with the feedback loop settings, maybe.

If the power actually shuts off, it's probably exceeding the BMS current limit which causes it to shutdown, *or* there are weak cells that drop in voltage so much they cause the BMS to hit LVC and shut off all power output. Some BMS will recover when the load goes away, some will stay off until a charger is plugged in.

Alternately, if the pack drops in voltage enough to trigger the controller LVC, it would also shutdown motor output but not power off, then recover when load goes away.
 
I finally got my "DIY" motor controller with ePaper display on my M600 eMTB working well enough for a weekend of riding. Pictured here with the friends' dirtbikes I was able to keep up with during 4000 feet of elevation gain (30 amps through the motor helps with that!). Thanks again to @casainho for making my bikes so much more fun to ride!

I came back with a bunch of ideas for improvement, but one I'm a little stumped on is occasionally the motor would halt and jerk a few times when downshifting during a hard hill climb (and then would come back after a few seconds). VESC is still on sensorless, so I will try an encoder... but anyone else have any ideas?
I want you to post pictures details of your build, otherwise I will not believe ;)

Yes, anything wrong driving the motor will cause VESC protection, and that is a very positive thing to protect everything. With my limited experience, I would say that at the very low motor RPM, as you said at "during a hard hill climb", the sensorless algorithm do not work so well and will probably put high currents on the motor/battery and then VESC turns off the motor temporary.

I would try to change the configurations about sensorless... I understand you may not have a Bluetooth module installed, as I don't have due to space restrictions on M500 case. But I have on my Fiido Q1S seated scooter, that is great to look and real time data, log the data and change configurations.

And by the way, I started using the display communication with wireless (ESPNow) and it works well, at least since last week I am being using it.

About that eink display, I bought one for other project and it have a delay of 3 minutes for a new refresh... so for sure you are using a different one, I would say with at least 1 second refresh??

And here is my Fiido Q1S seated micro scooter, where I use a VESC FlipSky 75200, with a 80V battery and 150A motor phase current!! but it runs at very high speed like 160kms/h this little 12 inches direct drive hub motor.


 
Thanks casainho and amberwolf for thoughts, re: motor stuttering - I will try the encoder and some more logging. During hard hill climb, the motor is happily consuming 30 amps continuous, but right at the moment of shift it halts - I imagined the sudden rapid free rotation of the motor was part of the cause, maybe causing current spike. And yes, I'll attach some more proof!

Re: the ePaper display, I use recent models from Waveshare in my projects which support "partial update" mode where a different LUT is written and the whole display is not required to cycle. The buffer is written immediately to the display, but display needs to pause between updates, so I needed to do some debouncing. I have used Arduino to drive these displays before, and I'm happy to say my pure python efforts for this project provide an even better UX.

Here is the display section of my fork of your repo. Still kind of a mess, but I'd like to get it back in sync with yours so I can PR the display portion at least. And here is a video demonstrating the update frequency
 

Attachments

  • Screenshot from 2023-05-25 09-41-58.png
    Screenshot from 2023-05-25 09-41-58.png
    494.2 KB · Views: 25
  • PXL_20230513_194751507.MP.jpg
    PXL_20230513_194751507.MP.jpg
    5.9 MB · Views: 29
  • PXL_20230318_150951347.jpg
    PXL_20230318_150951347.jpg
    2.4 MB · Views: 23
  • PXL_20230525_163547571.jpg
    PXL_20230525_163547571.jpg
    2.5 MB · Views: 23
  • PXL_20230525_163443172.jpg
    PXL_20230525_163443172.jpg
    1.6 MB · Views: 23
  • PXL_20230525_163317004.jpg
    PXL_20230525_163317004.jpg
    1.6 MB · Views: 26
Oh god, that clear case for the motor breaks my heart 💕 !!

I would much prefer to use an EInk display, however I ride a lot at night (mainly my micro escooter) and I need to see the display, and I think all EInk displays we can buy, do not have a backlight as the LCDs 😥

I can't accept pull request for now, as I am merging all firmware to work both for my Ebike, stand up escooter and seated escooter. And the display firmware is there... so it is a bit more complex to structure the project, but it paid off in the long run. There is a lot of custom hardware and control for each device, like on my seated micro escooter, I am now developing the turn lights, brake lights and regular lights:

1686128977622.png

1686129062114.png
 
Hi! I have problem with my bafang m500 g520. It turned off and can't turn on. It was after few km uphill ride during walk assistant mode (too steep for ride). I have checked:
Power Supply to PCB on yellow plug. It's OK.
Power button on remote controler, when push, shorts ground to full voltage
Replace cable between display and motor.
Took out the controller PCB - looks good (pic. below)
LED on PCB not blinkingView attachment 334294View attachment 334295View attachment 334296

Where should I looking for issues? Is there any fuses on PCB? Where?
 

Attachments

  • WhatsApp Image 2023-05-21 at 06.14.20(1).jpeg
    WhatsApp Image 2023-05-21 at 06.14.20(1).jpeg
    498.9 KB · Views: 19
Is there a more idiot proof version of the readme for the loginbypass.py on Github. It is still working right? I'm trying to backup and update firmware myself. But before buying a besst connector I want to get the software going. I'm not a python guy and every time I run it I get the below error. Probably doing something wrong. Already googled the error code, but haven't solved the error yet. So probably doing something wrong in prepping stages. Anyone that can help out?

[WinError 10013]An attempt was made to access a socket in a way forbidden by its access permissions
 
Fixed M600 controllers not updating.
The newer controllers have BOOT 93 while the older ones have BOOT 89 and are not compatible with each other.

The firmwares are recognized by the first hexadecimal code which can be 89 or 93.

The new firmwares have settable levels through the application BESST Pro.

Currently available firmware boot 93:

43V CRX10NC4320i132045.2-28-2230-boot3.0-93-20220707173106

48V CRX10NC4818i132046.2.yy-28-2230-boot3.0-93-20220927190208

Does anyone have newer firmware?
 
Last edited:
Hello, does anyone have the latest M600 43V firmware with boot 3.0-93?
I saw version 132045.4 on a controller, but I can't find it online.
 
Hi, does anyone know if it is posible to change the M600 controller with a M510 FC2.0 controller on a M600 Motor?
I know that Kyokushin changed an M500 controller with an M600 controller on a M500 motor.
 
Hi, does anyone know if it is posible to change the M600 controller with a M510 FC2.0 controller on a M600 Motor?
I know that Kyokushin changed an M500 controller with an M600 controller on a M500 motor.
I would say yes, you have to reverse two phases on the stator connector, I don't know what advantages you could have though.
 
Hello, does anyone have the latest M600 43V firmware with boot 3.0-93?
I saw version 132045.4 on a controller, but I can't find it online.
Found
 

Attachments

  • CRX10NC4320i132045.4-28-2230-boot3.0-20230313141923.txt
    74.5 KB · Views: 12
I would say yes, you have to reverse two phases on the stator connector, I don't know what advantages you could have though.
The adavantage is that you have an M600 motor in which you may change the assist level parameters.
 
Hi, does anyone know if it is posible to change the M600 controller with a M510 FC2.0 controller on a M600 Motor?
I know that Kyokushin changed an M500 controller with an M600 controller on a M500 motor.
A clarification, you can change the controller of an M600 with an M500, M510 and M560 have a different torque meter so they should be incompatible with each other.
Has anyone checked this?
 
Back
Top