ArduBike 250W, an Arduino-Based E-Bike Controller

Build your own e-bike controller and add the behaviors and features you want.

Nov 24, 2019

35351 views

12 respects

Components and supplies

1

Arduino Mega 2560

1

Graphic OLED, 128 x 64

Project description

Code

Comments

Only logged in users can leave comments

mcrahr

8 months ago

HI Plouc68000 This is still one of the most simple and easy going project many thanks. Do you have a sequence diagram, or a link, as I still have a little hard time understand the hal step vs. the H-bridge drive cycle, Im sure it is simple when you see the diagram. Br. Rahr

pietroarduino11

2 years ago

hi super dear, congratulations, i was asking me if you have never considered to use, instead of throttle or simple assist PAS system, to use from the torque sensor ( example https://www.ebikes.ca/learn/pedal-assist.html#methods-of-torque-sensing ) and the component is this https://www.bafang-e.com/en/oem-area/components/component/sensor/sr-pa23132stc/ - it has like 6 wires, 5V, GND, and 4 kind of signal, rotation pedal, torque and resistance of chain. so, i can provide correct kind of signal if you can prepare the mathematic to set arduino algos. Coul be wonder feeling to ride with this kind of motor assistance, bcause arduino can provide correct motor power in all situation of riding, without put hand to the controller or display during rides - energy save also, better provided. I would appreciate very much if I can take a look at the connection diagram of your project. ciao grazie Pietro

Anonymous user

2 years ago

Very interesting project, looks great! I recently bought a project ebike , not working currently. I've also just bought a Mega 2560 kit, so I'm really interested in helping to produce a PCB! My ebike is Bafang/8Fun based, front hub 36V BLDC. The LCD is broken, a Groove C950. The battery is also not outputting but I discovered yesterday the 2 internal 15a fuses need replacing, It looks good though @41v. I've been looking at replacing the 8fun controller with a Kunteng S06S controller. What controller are you using?

plouc68000

2 years ago

You can use the power stage of any Controller , I was using this one https://www.amazon.fr/gp/product/B07QVDBXNH/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1 You must dismantle it and solder the 6 wires from MEGA2650 to the Power stage. Most Power stage are build according the doc I have put the link in Aditional Contributors, Hardware Hints. Once you have a working prototype like mine, we can look for a PCB, do you use Fritzing ?

Anonymous user

2 years ago

Hello sir I love your project can you help me on this controller?

Anonymous user

2 years ago

Nice Project! How is the state?

Anonymous user

2 years ago

Cool! I'm taking an easier approach, using an old dumb ESC with throttle input, rather than building my own H-bridge. Am making it work with PAS and modes, instead of throttle. So far has a Nano with LCD display showing power, speed, battery used, etc. Will mine your code for ideas.

Anonymous user

2 years ago

u be the first to comment!

Anonymous user

2 years ago

I would be interested in collaborating with this project. The video is absolutely stunning. Excuse my newness, but I couldn't find the links you implied are provided to hack the commercial controller to allow your processor to control the power output, and I couldn't find the wiring diagram showing the interconnection of the Arduino, boards and display. . Please enlighten me!

Anonymous user

2 years ago

Good afternoon. It is very joyful and enthusiastic, if possible to be part of your project. I'm a fan of electronics and would like to help. I recently purchased parts for a sccoter. I will build the entire electrical system, as well as power and control. Thank you.

Anonymous user

2 years ago

Awesome Brother. Could you please share the diagram and components used here ? hiimadith@gmail.com

myk

3 years ago

Cool! I'm taking an easier approach, using an old dumb ESC with throttle input, rather than building my own H-bridge. Am making it work with PAS and modes, instead of throttle. So far has a Nano with LCD display showing power, speed, battery used, etc. Will mine your code for ideas.

Anonymous user

3 years ago

I would be interested in collaborating with this project. The video is absolutely stunning. Excuse my newness, but I couldn't find the links you implied are provided to hack the commercial controller to allow your processor to control the power output, and I couldn't find the wiring diagram showing the interconnection of the Arduino, boards and display. . Please enlighten me!

Anonymous user

4 years ago

Nice Project! How is the state?

Anonymous user

4 years ago

Hello sir I love your project can you help me on this controller?

josinei

4 years ago

Good afternoon. It is very joyful and enthusiastic, if possible to be part of your project. I'm a fan of electronics and would like to help. I recently purchased parts for a sccoter. I will build the entire electrical system, as well as power and control. Thank you.

pietroarduino11

5 years ago

hi super dear, congratulations, i was asking me if you have never considered to use, instead of throttle or simple assist PAS system, to use from the torque sensor ( example https://www.ebikes.ca/learn/pedal-assist.html#methods-of-torque-sensing ) and the component is this https://www.bafang-e.com/en/oem-area/components/component/sensor/sr-pa23132stc/ - it has like 6 wires, 5V, GND, and 4 kind of signal, rotation pedal, torque and resistance of chain. so, i can provide correct kind of signal if you can prepare the mathematic to set arduino algos. Coul be wonder feeling to ride with this kind of motor assistance, bcause arduino can provide correct motor power in all situation of riding, without put hand to the controller or display during rides - energy save also, better provided. I would appreciate very much if I can take a look at the connection diagram of your project. ciao grazie Pietro

Anonymous user

5 years ago

I would be interested in collaborating with this project. The video is certainly impressive. Excuse my newness, but I could not find the links that you imply are provided to hacking the commercial controller to allow your processor to control the power output, nor could I find the wiring diagram showing the inter-connection of the Arduino, boards and display. Please enlighten me!

plouc68000

2 years ago

Please send me a email to plouc68000@gmail.com. Thanks if you can help with the design of a PCB for a Shield for the MEGA, I will feed you with the missing informations for your prototyping, thanks !

Anonymous user

5 years ago

Very interesting project, looks great! I recently bought a project ebike , not working currently. I've also just bought a Mega 2560 kit, so I'm really interested in helping to produce a PCB! My ebike is Bafang/8Fun based, front hub 36V BLDC. The LCD is broken, a Groove C950. The battery is also not outputting but I discovered yesterday the 2 internal 15a fuses need replacing, It looks good though @41v. I've been looking at replacing the 8fun controller with a Kunteng S06S controller. What controller are you using?

plouc68000

2 years ago

You can use the power stage of any Controller , I was using this one https://www.amazon.fr/gp/product/B07QVDBXNH/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1 You must dismantle it and solder the 6 wires from MEGA2650 to the Power stage. Most Power stage are build according the doc I have put the link in Aditional Contributors, Hardware Hints. Once you have a working prototype like mine, we can look for a PCB, do you use Fritzing ?

Anonymous user

5 years ago

u be the first to comment!

plouc68000

35 Followers

6 Projects

12

22