Bafang M500/M600 thread

Tony_150 said:
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
 
NoFanBoiz said:
Sandur-Rx said:
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.
 
Bigwheel said:
NoFanBoiz said:
Sandur-Rx said:
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.
 
That firmware could be really interesting for VESC controller conversions og other middrives like the Bosch and maybe even tsdz2
 
CiDi said:
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-Module-Raspberry-Zero/dp/B07Q812QK8/ref=sr_1_2?dchild=1&keywords=usb+to+can+innomaker&qid=1604409709&sr=8-2

Link cables Bafang HMI M500/M600 on e-bike-technologies:
https://www.e-bike-technologies.de/index.php/en/connectors/connectors-signal/connectors-higo-mini-f-series/higo-b5-f-detail
https://www.e-bike-technologies.de/index.php/en/connectors/connectors-signal/connectors-higo-mini-f-series/higo-s5-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?
 
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
 
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
 
This sensor was not originally available. Instead, three sensors are used inside the motor.
New.jpg
 
star2k21 said:
CiDi said:
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-Module-Raspberry-Zero/dp/B07Q812QK8/ref=sr_1_2?dchild=1&keywords=usb+to+can+innomaker&qid=1604409709&sr=8-2

Link cables Bafang HMI M500/M600 on e-bike-technologies:
https://www.e-bike-technologies.de/index.php/en/connectors/connectors-signal/connectors-higo-mini-f-series/higo-b5-f-detail
https://www.e-bike-technologies.de/index.php/en/connectors/connectors-signal/connectors-higo-mini-f-series/higo-s5-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
 
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
 
Efim_Rus said:
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

And it should look like this:
Clean torque sensor.jpg


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/knowledge-base/motors-and-kits/62296-bafang-ultra-teardown-of-torque-sensor-assembly
If you need to buy a new one, you may find it here:
https://www.greenbikekit.com/bafang-8fun-spare-parts/ultra-g510-mid-motor-parts/bafang-ultra-motor-torque-sensor-m620.html


PadreParada
 
CiDi said:
star2k21 said:
CiDi said:
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-Module-Raspberry-Zero/dp/B07Q812QK8/ref=sr_1_2?dchild=1&keywords=usb+to+can+innomaker&qid=1604409709&sr=8-2

Link cables Bafang HMI M500/M600 on e-bike-technologies:
https://www.e-bike-technologies.de/index.php/en/connectors/connectors-signal/connectors-higo-mini-f-series/higo-b5-f-detail
https://www.e-bike-technologies.de/index.php/en/connectors/connectors-signal/connectors-higo-mini-f-series/higo-s5-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
 
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
 
Nobody77 said:
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.
 
waynebergman said:
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-https://endless-sphere.com/forums/viewtopic.php?t=100777&start=410

3-For the moment it is not possible to update the firmware with this interface.
 
Sandur-Rx said:
Tony_150 said:
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 :)
 
CiDi said:
waynebergman said:
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.
 
Efim_Rus said:
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
 
casainho said:
Bigwheel said:
NoFanBoiz said:
Sandur-Rx said:
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? ;)
 
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!
 
4πr^2 said:
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.

 
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

https://endless-sphere.com/forums/viewtopic.php?f=30&t=65297&hilit=micro+lebowski#p980670
 
Back
Top