Bafang M500/M600 thread

Discussions related to motors other than hub motors.
This includes R/C motors, botttom bracket, roller and geared drives.
Sandur-Rx   1 mW

1 mW
Posts: 18
Joined: Dec 17 2020 6:12am

Re: Bafang M500/M600 thread

Post by Sandur-Rx » Nov 19 2021 12:34pm

Tony_150 wrote:
Nov 09 2021 7:58am
This is very interesting.

I am new to this community, so you might call me a noob :lol:
I just found out that eBikes can contain a CAN bus, which is mindblowing for me.

So my question is; will I be able to connect an IOT device to an eBike?

E.g., this device https://www.autopi.io/hardware-dongle/generation-three/ - Note. I.e., if I am able to change the OBD port to an USB port.
Won’t be easy

Sandur-Rx   1 mW

1 mW
Posts: 18
Joined: Dec 17 2020 6:12am

Re: Bafang M500/M600 thread

Post by Sandur-Rx » Dec 01 2021 1:33pm


NoFanBoiz   100 W

100 W
Posts: 163
Joined: Jan 04 2016 3:51am

Re: Bafang M500/M600 thread

Post by NoFanBoiz » Dec 01 2021 3:25pm

Sandur-Rx wrote:
Dec 01 2021 1:33pm
https://lunacycle.com/blog/luna-m600-ludicrous-v2/

Check this out
Do you reckon Innotrace made this?

Sandur-Rx   1 mW

1 mW
Posts: 18
Joined: Dec 17 2020 6:12am

Re: Bafang M500/M600 thread

Post by Sandur-Rx » Dec 02 2021 3:26pm

I don’t know. But my feeling says not innotrace.

Bigwheel   100 W

100 W
Posts: 284
Joined: Jun 01 2008 7:36pm
Location: Cape Meares, OR

Re: Bafang M500/M600 thread

Post by Bigwheel » Dec 02 2021 10:29pm

NoFanBoiz wrote:
Dec 01 2021 3:25pm
Sandur-Rx wrote:
Dec 01 2021 1:33pm
https://lunacycle.com/blog/luna-m600-ludicrous-v2/

Check this out
Do you reckon Innotrace made this?
As I understand it the origins of this controller started here on ES via a member named Marcos and developed with him and Luna. At least he is the one that is taking questions from the recent X2 M600 bikes sold by Luna.

casainho   100 GW

100 GW
Posts: 5771
Joined: Feb 14 2011 2:43pm

Re: Bafang M500/M600 thread

Post by casainho » Dec 03 2021 1:35am

Bigwheel wrote:
Dec 02 2021 10:29pm
NoFanBoiz wrote:
Dec 01 2021 3:25pm
Sandur-Rx wrote:
Dec 01 2021 1:33pm
https://lunacycle.com/blog/luna-m600-ludicrous-v2/

Check this out
Do you reckon Innotrace made this?
As I understand it the origins of this controller started here on ES via a member named Marcos and developed with him and Luna. At least he is the one that is taking questions from the recent X2 M600 bikes sold by Luna.
That is a regular motor controller, a commercial one, not OpenSource or DIY. It is just an alternative to the original one.

The only thing OpenSource is thr firmware that is based on VESC, but that is because VESC firmware as being OpenSource forces other based firmware to also be OpenSource.
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

Vbruun   100 W

100 W
Posts: 253
Joined: Sep 26 2019 8:42am

Re: Bafang M500/M600 thread

Post by Vbruun » Dec 03 2021 5:28pm

That firmware could be really interesting for VESC controller conversions og other middrives like the Bosch and maybe even tsdz2

User avatar
star2k21   1 µW

1 µW
Posts: 2
Joined: Dec 09 2021 11:31am

Re: Bafang M500/M600 thread

Post by star2k21 » Dec 09 2021 11:52am

CiDi wrote:
Nov 03 2020 4:08am
To configure the Bafang M500 / M600 motor without using the BESST programmer, you can use this interface.

Link interface USB to CAN on Amazon:
https://www.amazon.co.uk/USB-Converter- ... 709&sr=8-2

Link cables Bafang HMI M500/M600 on e-bike-technologies:
https://www.e-bike-technologies.de/inde ... 5-f-detail
https://www.e-bike-technologies.de/inde ... 5-f-detail

Below are the software and the instructions for configuration and use.
Hi CiDi! I read your interesting posts regarding the mod through Innomaker and I'm curious to know if it is possibile to apply to a Bafang M200 too.
My trekking bike (700c / 28") has this little engine and it works with can-bus protocol.
Do you think that this procedure can be followed also for my M200 ?
The Frame ID is the same for these mid drive motors?

User avatar
waynebergman   100 kW

100 kW
Posts: 1016
Joined: May 07 2011 4:20pm
Location: Pender Harbour British Columbia Canada

Re: Bafang M500/M600 thread

Post by waynebergman » Dec 10 2021 6:06pm

It sounds like one would be able to run the VESC controller software on a Mac ..... I just downloaded the app on to my Mac from this link https://github.com/rpasichnyk/vesc_tool/releases from the luna blog. I am pretty excited about this. If luna will sell me a replacement motor complete with this V2 controller when they have new arrivals in stock I will give it a try. ......wayne

Efim_Rus   100 µW

100 µW
Posts: 8
Joined: Dec 10 2021 7:35pm

Re: Bafang M500/M600 thread

Post by Efim_Rus » Dec 10 2021 8:08pm

Good day to all. I'm from Russia. So I apologize in advance for my English.
I would like to share information. I have about 150 defective Bafang M600 bicycles at my disposal. Below I will attach a photo of the board, it was made on STM 32. There is no magnetic field sensor on my board; instead, I use sensors inside the motor (cold sensor). It is connected to the same connector as the engine temperature sensor, on the connector these pins are designated as U, V, W. I think it will be noticeable in the photo.
Some bicycles will only ride while holding down the "-" button. In this case, they do not respond to the pedals. To monitor the CAN bus, I use the CANHacker software and a homemade adapter based on Arduino + mpc2515 + mpc2551. In serviceable bicycles, the pedal sensor seems to be fine, but for some reason some of them do not ride. But later I think I'll figure it out. In the meantime, I am attaching a photo of the controller.
Thanks for the CAN tutorial, it came in handy.

1639184396147.jpeg
1639184396147.jpeg (2.38 MiB) Viewed 811 times
IMG_20211205_214059.jpg
IMG_20211205_214059.jpg (4.51 MiB) Viewed 811 times
IMG_20211206_014653.jpg
IMG_20211206_014653.jpg (2.69 MiB) Viewed 811 times
IMG_20211211_031707.jpg
IMG_20211211_031707.jpg (2.87 MiB) Viewed 811 times
IMG_20211211_031730.jpg
IMG_20211211_031730.jpg (3.32 MiB) Viewed 811 times
IMG_20211211_031814.jpg
IMG_20211211_031814.jpg (3.32 MiB) Viewed 811 times
IMG_20211211_031823.jpg
IMG_20211211_031823.jpg (3.62 MiB) Viewed 811 times
IMG_20211211_031829.jpg
IMG_20211211_031829.jpg (3.4 MiB) Viewed 811 times
IMG_20211211_031835.jpg
IMG_20211211_031835.jpg (3.42 MiB) Viewed 811 times

Efim_Rus   100 µW

100 µW
Posts: 8
Joined: Dec 10 2021 7:35pm

Re: Bafang M500/M600 thread

Post by Efim_Rus » Dec 10 2021 8:14pm

This sensor was not originally available. Instead, three sensors are used inside the motor.
New.jpg
New.jpg (1.89 MiB) Viewed 809 times

CiDi   100 W

100 W
Posts: 146
Joined: Aug 08 2020 4:12pm

Re: Bafang M500/M600 thread

Post by CiDi » Dec 12 2021 12:55am

star2k21 wrote:
Dec 09 2021 11:52am
CiDi wrote:
Nov 03 2020 4:08am
To configure the Bafang M500 / M600 motor without using the BESST programmer, you can use this interface.

Link interface USB to CAN on Amazon:
https://www.amazon.co.uk/USB-Converter- ... 709&sr=8-2

Link cables Bafang HMI M500/M600 on e-bike-technologies:
https://www.e-bike-technologies.de/inde ... 5-f-detail
https://www.e-bike-technologies.de/inde ... 5-f-detail

Below are the software and the instructions for configuration and use.
Hi CiDi! I read your interesting posts regarding the mod through Innomaker and I'm curious to know if it is possibile to apply to a Bafang M200 too.
My trekking bike (700c / 28") has this little engine and it works with can-bus protocol.
Do you think that this procedure can be followed also for my M200 ?
The Frame ID is the same for these mid drive motors?
As far as i know, the can protocol is unified for all bafang motors

Nobody77   1 µW

1 µW
Posts: 1
Joined: Dec 15 2021 1:36am

Re: Bafang M500/M600 thread

Post by Nobody77 » Dec 15 2021 4:04am

Hello please help,
come from Austria have now the software 14.6 on the M600
with bess tool aufgespielt works great only now the display of the battery no longer shows the correct consumption, is always at 100% what can I do about it that the display of the battery is correct again.

Thanks for your help
Wilfried

PadreParada   1 mW

1 mW
Posts: 16
Joined: Jun 11 2021 5:04am

Re: Bafang M500/M600 thread

Post by PadreParada » Dec 15 2021 6:02am

Efim_Rus wrote:
Dec 10 2021 8:08pm
Some bicycles will only ride while holding down the "-" button. In this case, they do not respond to the pedals.
Hi Efim, after my motor was water damage I had the same problem as you described, with no pedal assistance. I was able to ride but with the trigger pressed. The controller was fine but the torque sensor was broken because of the water. I was able to fix it by completely tearing it down, and cleaning the inside where the magnetic stripes are fixed to the axel. See picture below.

This is how my torque sensor looked like:
Dirty torque sensor..png
Dirty torque sensor..png (1.94 MiB) Viewed 719 times
And it should look like this:
Clean torque sensor.jpg
Clean torque sensor.jpg (106.76 KiB) Viewed 719 times

I have not tried this, but think that the Bafang Ultra uses the same torque sensor as the M600.
You may find how to tear it down here:
https://electricbike.com/forum/forum/kn ... r-assembly
If you need to buy a new one, you may find it here:
https://www.greenbikekit.com/bafang-8fu ... -m620.html


PadreParada

User avatar
star2k21   1 µW

1 µW
Posts: 2
Joined: Dec 09 2021 11:31am

Re: Bafang M500/M600 thread

Post by star2k21 » Dec 15 2021 2:51pm

CiDi wrote:
Dec 12 2021 12:55am
star2k21 wrote:
Dec 09 2021 11:52am
CiDi wrote:
Nov 03 2020 4:08am
To configure the Bafang M500 / M600 motor without using the BESST programmer, you can use this interface.

Link interface USB to CAN on Amazon:
https://www.amazon.co.uk/USB-Converter- ... 709&sr=8-2

Link cables Bafang HMI M500/M600 on e-bike-technologies:
https://www.e-bike-technologies.de/inde ... 5-f-detail
https://www.e-bike-technologies.de/inde ... 5-f-detail

Below are the software and the instructions for configuration and use.
Hi CiDi! I read your interesting posts regarding the mod through Innomaker and I'm curious to know if it is possibile to apply to a Bafang M200 too.
My trekking bike (700c / 28") has this little engine and it works with can-bus protocol.
Do you think that this procedure can be followed also for my M200 ?
The Frame ID is the same for these mid drive motors?
As far as i know, the can protocol is unified for all bafang motors
I tried and it worked on the M200 too.

Thank you :D

User avatar
waynebergman   100 kW

100 kW
Posts: 1016
Joined: May 07 2011 4:20pm
Location: Pender Harbour British Columbia Canada

Re: Bafang M500/M600 thread

Post by waynebergman » Dec 15 2021 3:09pm

a few questions please regarding the innomaker option for making controller setting options.

1. can I use this solution on my Mac computor?

2. I guess from earlier in this thread there is reference to software and instructions for the innomaker solution but I can not find it, any links to the software and instructions much appreciated.

3. I have tried the Beest tool but no luck so far, it is not recognising my M600 drive so I want to look into now this innomaker solution, can some one tell me please if i can change the firmware on the controller to smoother power settings or is this innomaker option just for setting max speed? Right now my controller is pretty much dishing out the power like an on/off switch and its kind of annoying. .....thanks wayne bergman

CiDi   100 W

100 W
Posts: 146
Joined: Aug 08 2020 4:12pm

Re: Bafang M500/M600 thread

Post by CiDi » Dec 19 2021 2:45pm

Nobody77 wrote:
Dec 15 2021 4:04am
Hello please help,
come from Austria have now the software 14.6 on the M600
with bess tool aufgespielt works great only now the display of the battery no longer shows the correct consumption, is always at 100% what can I do about it that the display of the battery is correct again.

Thanks for your help
Wilfried
You have installed a 43V firmware on a 48V system, so the battery percentage is wrong.

CiDi   100 W

100 W
Posts: 146
Joined: Aug 08 2020 4:12pm

Re: Bafang M500/M600 thread

Post by CiDi » Dec 19 2021 2:49pm

waynebergman wrote:
Dec 15 2021 3:09pm
a few questions please regarding the innomaker option for making controller setting options.

1. can I use this solution on my Mac computor?

2. I guess from earlier in this thread there is reference to software and instructions for the innomaker solution but I can not find it, any links to the software and instructions much appreciated.

3. I have tried the Beest tool but no luck so far, it is not recognising my M600 drive so I want to look into now this innomaker solution, can some one tell me please if i can change the firmware on the controller to smoother power settings or is this innomaker option just for setting max speed? Right now my controller is pretty much dishing out the power like an on/off switch and its kind of annoying. .....thanks wayne bergman
1-There is no mac version

2-viewtopic.php?t=100777&start=410

3-For the moment it is not possible to update the firmware with this interface.

ornias   10 W

10 W
Posts: 69
Joined: Jul 18 2021 3:38am

Re: Bafang M500/M600 thread

Post by ornias » Dec 22 2021 5:35pm

Sandur-Rx wrote:
Nov 19 2021 12:34pm
Tony_150 wrote:
Nov 09 2021 7:58am
This is very interesting.

I am new to this community, so you might call me a noob :lol:
I just found out that eBikes can contain a CAN bus, which is mindblowing for me.

So my question is; will I be able to connect an IOT device to an eBike?

E.g., this device https://www.autopi.io/hardware-dongle/generation-three/ - Note. I.e., if I am able to change the OBD port to an USB port.
Won’t be easy
Actually, it's quite easy... we documented everything required for readout on the canbus already... so adding an iot readout is pretty much doable :)

ornias   10 W

10 W
Posts: 69
Joined: Jul 18 2021 3:38am

Re: Bafang M500/M600 thread

Post by ornias » Dec 22 2021 5:37pm

CiDi wrote:
Dec 19 2021 2:49pm
waynebergman wrote:
Dec 15 2021 3:09pm
a few questions please regarding the innomaker option for making controller setting options.

1. can I use this solution on my Mac computor?

2. I guess from earlier in this thread there is reference to software and instructions for the innomaker solution but I can not find it, any links to the software and instructions much appreciated.

3. I have tried the Beest tool but no luck so far, it is not recognising my M600 drive so I want to look into now this innomaker solution, can some one tell me please if i can change the firmware on the controller to smoother power settings or is this innomaker option just for setting max speed? Right now my controller is pretty much dishing out the power like an on/off switch and its kind of annoying. .....thanks wayne bergman
3-For the moment it is not possible to update the firmware with this interface.
Once I get some data on m510 canbus parameters and a more recent version of BESST (more recent than the year old 1.2.26 on the website that is), I can start working on having our own tooling :)

But for that to be really worthwhile I need confirmation if the m510 has more CANBUS parameters unlocked.
If it does I can have custom software ready for everyone within a few months :)

**edit**
Information on the working paramters for the m200, m400 and m600s would be interesting as well.

ornias   10 W

10 W
Posts: 69
Joined: Jul 18 2021 3:38am

Re: Bafang M500/M600 thread

Post by ornias » Dec 22 2021 5:40pm

Efim_Rus wrote:
Dec 10 2021 8:08pm
Good day to all. I'm from Russia. So I apologize in advance for my English.
I would like to share information. I have about 150 defective Bafang M600 bicycles at my disposal. Below I will attach a photo of the board, it was made on STM 32. There is no magnetic field sensor on my board; instead, I use sensors inside the motor (cold sensor). It is connected to the same connector as the engine temperature sensor, on the connector these pins are designated as U, V, W. I think it will be noticeable in the photo.
Some bicycles will only ride while holding down the "-" button. In this case, they do not respond to the pedals. To monitor the CAN bus, I use the CANHacker software and a homemade adapter based on Arduino + mpc2515 + mpc2551. In serviceable bicycles, the pedal sensor seems to be fine, but for some reason some of them do not ride. But later I think I'll figure it out. In the meantime, I am attaching a photo of the controller.
Thanks for the CAN tutorial, it came in handy.


1639184396147.jpeg
IMG_20211205_214059.jpg
IMG_20211206_014653.jpg
IMG_20211211_031707.jpg
IMG_20211211_031730.jpg
IMG_20211211_031814.jpg
IMG_20211211_031823.jpg
IMG_20211211_031829.jpg
IMG_20211211_031835.jpg
Nice pictures!
We could use your help on the technical github:

https://github.com/OpenSourceEBike/Bafang_M500_M600

ornias   10 W

10 W
Posts: 69
Joined: Jul 18 2021 3:38am

Re: Bafang M500/M600 thread

Post by ornias » Dec 22 2021 5:42pm

casainho wrote:
Dec 03 2021 1:35am
Bigwheel wrote:
Dec 02 2021 10:29pm
NoFanBoiz wrote:
Dec 01 2021 3:25pm
Sandur-Rx wrote:
Dec 01 2021 1:33pm
https://lunacycle.com/blog/luna-m600-ludicrous-v2/

Check this out
Do you reckon Innotrace made this?
As I understand it the origins of this controller started here on ES via a member named Marcos and developed with him and Luna. At least he is the one that is taking questions from the recent X2 M600 bikes sold by Luna.
That is a regular motor controller, a commercial one, not OpenSource or DIY. It is just an alternative to the original one.

The only thing OpenSource is thr firmware that is based on VESC, but that is because VESC firmware as being OpenSource forces other based firmware to also be OpenSource.
Well, if if we can make a hardware diagram we would have an opensource firmware and a hardware diagram.
What would be stopping us from opensource hardware with similair specifications? ;-)

4πr^2   10 W

10 W
Posts: 66
Joined: Feb 28 2020 11:44am

Re: Bafang M500/M600 thread

Post by 4πr^2 » Dec 23 2021 11:01am

Ornias - Interesting you mention that! From recent posts on various forums and contact with Luna, it sounds like they are not going to sell the V2 as a stand-alone controller for retrofit into other "M" motors... only going to offer with their bikes.

Given the various controller examples / schematics already on the VESC site, the M600 controller pictures / component ID's I've posted earlier, and the VESC firmware, it wouldn't seem to be exceedingly hard to make a working controller... though it wouldn't be exceptionally trivial, either! I was actually looking around for various components availability just the other day!

casainho   100 GW

100 GW
Posts: 5771
Joined: Feb 14 2011 2:43pm

Re: Bafang M500/M600 thread

Post by casainho » Dec 23 2021 12:36pm

4πr^2 wrote:
Dec 23 2021 11:01am
Ornias - Interesting you mention that! From recent posts on various forums and contact with Luna, it sounds like they are not going to sell the V2 as a stand-alone controller for retrofit into other "M" motors... only going to offer with their bikes.

Given the various controller examples / schematics already on the VESC site, the M600 controller pictures / component ID's I've posted earlier, and the VESC firmware, it wouldn't seem to be exceedingly hard to make a working controller... though it wouldn't be exceptionally trivial, either! I was actually looking around for various components availability just the other day!
I am working with other Xiaomi M365 developers to develop an OpenSource EBike and EScooter motor controller. My idea is to have a generic EBike and EScooter motor controller, with room for custom electronics, easy do DIY and repair.
I will use it first on my Xiaomi M365 electric scooter and then probably move to use it on EBikes motors.

My idea is to have room for some custom electronics, so I can reuse it over different projects / devices. Both firmware and electrics will be reused, so this means future prof and independent of manufacturer. Sure, specifics customs electronics will need to be developed, like the specifics to read the torque sensor of Bafang M800.

It will take time, but I will get there over time.

Image
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

Animalector   10 kW

10 kW
Posts: 976
Joined: Mar 17 2012 4:50pm
Location: Mareeba - Queensland

Re: Bafang M500/M600 thread

Post by Animalector » Dec 23 2021 3:16pm

You could build the VESC brain board and drivers and then customise the power stage to suit the application..that's what I was trying to do with the micro Lebowski controller that I designed using Lebowski's schematics

viewtopic.php?f=30&t=65297&hilit=micro+lebowski#p980670

Post Reply