Search results

  1. casainho

    Bafang M500/M510/M600 OpenSource EasyDIY display, Dengfu E10 EBike build

    My focus is being building an OpenSource modular system for EBikes and micro EScooterts, based on VESC motor controller + ESP32 board running high level fast development Python firmware. And I used wireless communication between them: - EBike/EScooter main board that connects to VESC - Display -...
  2. casainho

    Bafang M500 and M600 motors

    Another user, 3D printed in clear plastic for the Bafang M500/M600 motor cover, and that red and blue LEDs from the EBike board, kills my heart!! 💕 The display is also great!!
  3. casainho

    Bafang M500 and M600 motors

    On my Dengfu E10 frame, there is a button switch specifically to turn on the EBike. I connect this switch to the battery JBD BMS that has a specific connector for a switch like this. The JBD BMS switch is very important, because it switches the power on/off but in a safe way, avoiding sparks...
  4. casainho

    Bafang M500 and M600 motors

    So, I am being riding my EBike, and here is a picture of a full day riding but with a lot of mud: I have some good news for this project: EBike / EScooter modular DIY OpenSource electronics and software 1. Wireless communication between the EBike board and display: There is a new Python...
  5. casainho

    Bafang M500 and M600 motors

    The EBike modular DIY electronics and software, is featured as the Project of the Week on the Python on Microcontrollers Newsletter. This newsletter is written by the Adafruit Industries, an open-source hardware company based in New York City, that is popular among makers.
  6. casainho

    Bafang M500 and M600 motors

    I just finalized the documentation / How to Build for my Bafang M500, I hope it can help others to replicate and learn how EBikes / EScooters works: https://opensourceebike.github.io/
  7. casainho

    Bafang M500 and M600 motors

    I 3D printed the motor cover in ABS plastic - here it is, and just before I screwed it, I did put a fair amount of silicone to make sure it will keep the water prof: --------------- Yesterday I did a ride for 4h and it was a good test. Everything is working as expected. I was looking at the...
  8. casainho

    Bafang M500 and M600 motors

    I do not plan to sell anything. The options are: - user is able to DIY his own solution - user asks to an electric engineer friend to do it - user asks on an electronics / EBike shop to do it
  9. casainho

    Bafang M500 and M600 motors

    I did finalize the installation of the small VESC motor controller + EBike board, inside my Bafang M500. It works well as I expected, just like it did on my previous version with the external VESC FLIPSKY 75100. The final result is this one: And how is it inside?? Here it is, without that...
  10. casainho

    Bafang M500 and M600 motors

    Display And I did finish the display. The schematic is so simple!! Only 11 wires to solder: I already tested and it works. Early tests showing the state of POWER, UP and DOWN buttons: It is not yet fully assembled because currently is waiting for the silicone to harden: When installed...
  11. casainho

    Bafang M500 and M600 motors

    Detail of the squished silicone, after tightening the engine cover: I went for a test ride - it works very well: pedal very sensitive, fast response and high torque: I am not very happy the way that cables come to outside - I can improve that a lot. But, why bother if soon I may jump to have...
  12. casainho

    Bafang M500 and M600 motors

    So, after the night, the silicone got hard as expected. Note that I also protected the connectors with silicone: And here is the very first test. I had to increase the length of the battery and motor phase wires, doing extensions. With that, all seems good: And now testing if everything...
  13. casainho

    Bafang M500 and M600 motors

    The EBike board is ready and attached on the 3D printed motor cover. And here is the EBike board alone (including the magnetic encoder sensor green board): I wish to make the board robust to vibrations and water. Since I can program the board by wireless, maybe I will cover the board...
  14. casainho

    Bafang M500 and M600 motors

    We currently have access as DIY to much more advanced technology than what the Ebike manufactures put inside. If you tell me 3 years ago that I would have an EBike with electronics that runs firmware in Python, and have Wifi and Bluetooth that let me develop and program instantaneously with my...
  15. casainho

    Bafang M500 and M600 motors

    Maybe you could build the ESP32 EBike board and run the torque sensor testing code, that will output the torque sensor values and so you will be able to check if the problem is in fact on the torque sensor (as the problem may be on the motor controller on any other thing). Testing torque sensor...
  16. casainho

    Bafang M500 and M600 motors

    It feels perfect!! Finally I got the EBike board installed on my EBike and using the AS5047 magnetic encoder board to detect the motor rotor position, just like the original motor controller does. See here how it behaves with me pedaling with hand: It is raining and so I can not test it very...
  17. casainho

    Bafang M500 and M600 motors

    I got the VESC working with the magnetic encoder sensor, just like the original motor controller and firmware does. Previously, after I tried the motor current ramp up, I could understand the HFI sensorless do not provide a soft motor startup. Even later I tried to follow the VESC tutorials for...
  18. casainho

    Bafang M500 and M600 motors

    If you are interested, go and ask to the sellers as GreenBikeKit. For what they show on their site, I expect Bafang motors M40x, M50x, M60x and M80x, all use CAN torque sensors or even if is UART, is similar easy to read the value.
  19. casainho

    Bafang M500 and M600 motors

    I wired the brakes signal to the EBike board. Unfortunately, ESP32 has weak internal pull-ups and so I had to add and resistor on EBike board from the 3.3V to the brake signal ESP32 input pin. This were quick early tests, but here a video of me pushing the pedals with my hand, and the motor...
  20. casainho

    Bafang M500 and M600 motors

    I just installed the EBike board on the Bafang M500 motor, but for now, only on the desk and not yet on my EBike -- soon I will :D Here is a picture, note the EBike board powered on with his LEDs. All that wires/cables are final, and I put a 4 wires connector to the VESC UART and 5V and GND...
Top