Won’t be easyTony_150 wrote: ↑Nov 09 2021 7:58amThis is very interesting.
I am new to this community, so you might call me a noob![]()
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.
Bafang M500/M600 thread
Re: Bafang M500/M600 thread
Re: Bafang M500/M600 thread
Do you reckon Innotrace made this?Sandur-Rx wrote: ↑Dec 01 2021 1:33pmhttps://lunacycle.com/blog/luna-m600-ludicrous-v2/
Check this out
Re: Bafang M500/M600 thread
I don’t know. But my feeling says not innotrace.
Re: Bafang M500/M600 thread
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.NoFanBoiz wrote: ↑Dec 01 2021 3:25pmDo you reckon Innotrace made this?Sandur-Rx wrote: ↑Dec 01 2021 1:33pmhttps://lunacycle.com/blog/luna-m600-ludicrous-v2/
Check this out
Re: Bafang M500/M600 thread
That is a regular motor controller, a commercial one, not OpenSource or DIY. It is just an alternative to the original one.Bigwheel wrote: ↑Dec 02 2021 10:29pmAs 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.NoFanBoiz wrote: ↑Dec 01 2021 3:25pmDo you reckon Innotrace made this?Sandur-Rx wrote: ↑Dec 01 2021 1:33pmhttps://lunacycle.com/blog/luna-m600-ludicrous-v2/
Check this out
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.
- 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.
Re: Bafang M500/M600 thread
That firmware could be really interesting for VESC controller conversions og other middrives like the Bosch and maybe even tsdz2
Re: Bafang M500/M600 thread
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.CiDi wrote: ↑Nov 03 2020 4:08amTo 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.
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?
- waynebergman 100 kW
- Posts: 1016
- Joined: May 07 2011 4:20pm
- Location: Pender Harbour British Columbia Canada
Re: Bafang M500/M600 thread
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
Link to first build Giant DH-------- http://www.endless-sphere.com/forums/vi ... =3&t=33849
Mid Drive work in progress--------- http://www.endless-sphere.com/forums/vi ... 28&t=49467
-WAYNE'S #3---------- http://endless-sphere.com/forums/viewto ... 83&start=0
-Wayne's Tadpole Trike effort #4- http://endless-sphere.com/forums/viewto ... =6&t=63755
-Wayne's Fat Tire HD1000- https://endless-sphere.com/forums/viewt ... 28&t=74706
Mid Drive work in progress--------- http://www.endless-sphere.com/forums/vi ... 28&t=49467
-WAYNE'S #3---------- http://endless-sphere.com/forums/viewto ... 83&start=0
-Wayne's Tadpole Trike effort #4- http://endless-sphere.com/forums/viewto ... =6&t=63755
-Wayne's Fat Tire HD1000- https://endless-sphere.com/forums/viewt ... 28&t=74706
Re: Bafang M500/M600 thread
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.
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.
Re: Bafang M500/M600 thread
This sensor was not originally available. Instead, three sensors are used inside the motor.
Re: Bafang M500/M600 thread
As far as i know, the can protocol is unified for all bafang motorsstar2k21 wrote: ↑Dec 09 2021 11:52amHi 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.CiDi wrote: ↑Nov 03 2020 4:08amTo 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.
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?
Re: Bafang M500/M600 thread
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
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
-
- Posts: 16
- Joined: Jun 11 2021 5:04am
Re: Bafang M500/M600 thread
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: And it should look like this:
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
Re: Bafang M500/M600 thread
I tried and it worked on the M200 too.CiDi wrote: ↑Dec 12 2021 12:55amAs far as i know, the can protocol is unified for all bafang motorsstar2k21 wrote: ↑Dec 09 2021 11:52amHi 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.CiDi wrote: ↑Nov 03 2020 4:08amTo 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.
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?
Thank you

- waynebergman 100 kW
- Posts: 1016
- Joined: May 07 2011 4:20pm
- Location: Pender Harbour British Columbia Canada
Re: Bafang M500/M600 thread
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. 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
Link to first build Giant DH-------- http://www.endless-sphere.com/forums/vi ... =3&t=33849
Mid Drive work in progress--------- http://www.endless-sphere.com/forums/vi ... 28&t=49467
-WAYNE'S #3---------- http://endless-sphere.com/forums/viewto ... 83&start=0
-Wayne's Tadpole Trike effort #4- http://endless-sphere.com/forums/viewto ... =6&t=63755
-Wayne's Fat Tire HD1000- https://endless-sphere.com/forums/viewt ... 28&t=74706
Mid Drive work in progress--------- http://www.endless-sphere.com/forums/vi ... 28&t=49467
-WAYNE'S #3---------- http://endless-sphere.com/forums/viewto ... 83&start=0
-Wayne's Tadpole Trike effort #4- http://endless-sphere.com/forums/viewto ... =6&t=63755
-Wayne's Fat Tire HD1000- https://endless-sphere.com/forums/viewt ... 28&t=74706
Re: Bafang M500/M600 thread
You have installed a 43V firmware on a 48V system, so the battery percentage is wrong.Nobody77 wrote: ↑Dec 15 2021 4:04amHello 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
Re: Bafang M500/M600 thread
1-There is no mac versionwaynebergman wrote: ↑Dec 15 2021 3:09pma 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
2-viewtopic.php?t=100777&start=410
3-For the moment it is not possible to update the firmware with this interface.
Re: Bafang M500/M600 thread
Actually, it's quite easy... we documented everything required for readout on the canbus already... so adding an iot readout is pretty much doableSandur-Rx wrote: ↑Nov 19 2021 12:34pmWon’t be easyTony_150 wrote: ↑Nov 09 2021 7:58amThis is very interesting.
I am new to this community, so you might call me a noob![]()
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.

Re: Bafang M500/M600 thread
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 toolingCiDi wrote: ↑Dec 19 2021 2:49pm3-For the moment it is not possible to update the firmware with this interface.waynebergman wrote: ↑Dec 15 2021 3:09pma 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

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.
Re: Bafang M500/M600 thread
Nice pictures!Efim_Rus wrote: ↑Dec 10 2021 8:08pmGood 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
We could use your help on the technical github:
https://github.com/OpenSourceEBike/Bafang_M500_M600
Re: Bafang M500/M600 thread
Well, if if we can make a hardware diagram we would have an opensource firmware and a hardware diagram.casainho wrote: ↑Dec 03 2021 1:35amThat is a regular motor controller, a commercial one, not OpenSource or DIY. It is just an alternative to the original one.Bigwheel wrote: ↑Dec 02 2021 10:29pmAs 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.NoFanBoiz wrote: ↑Dec 01 2021 3:25pmDo you reckon Innotrace made this?Sandur-Rx wrote: ↑Dec 01 2021 1:33pmhttps://lunacycle.com/blog/luna-m600-ludicrous-v2/
Check this out
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.
What would be stopping us from opensource hardware with similair specifications?

Re: Bafang M500/M600 thread
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!
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!
Re: Bafang M500/M600 thread
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.4πr^2 wrote: ↑Dec 23 2021 11:01amOrnias - 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 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.

- 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.
- 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.
-
- Posts: 976
- Joined: Mar 17 2012 4:50pm
- Location: Mareeba - Queensland
Re: Bafang M500/M600 thread
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
viewtopic.php?f=30&t=65297&hilit=micro+lebowski#p980670