E-bike controlled with Arduino

andorsch

1 µW
Joined
Jan 5, 2016
Messages
1
Hi,
I was thinking if i can create an Electric bike, where i will control my motor with an arduino uno r3.
I want to do this for my license degree at collage.

Here is a complete motor set without battery:
http://www.aliexpress.com/item/electric-motor-bike-48V-750W-26-Rear-Wheel-Electric-Bicycle-Ebike-Conversion-Kits-2013-New-Style/1948468875.html?spm=2114.01020208.3.11.Iqh26G&ws_ab_test=searchweb201556_1%2Csearchweb201644_3_10001_10002_10005_10006_10003_10004_62%2Csearchweb201560_2%2Csearchweb1451318400_6151

Arduino:
https://www.arduino.cc/en/Main/ArduinoBoardUno

What i was thinking in "big" is that i will have something like a potentiometer on the steering wheel, a controller, a battery and a motor, and somehow to control the motor via this arduino depending on how to set the potentiometer.
And i was thinking if i will be able to control the example a motor with 36V 750W or 48V 1000W with my arduino controller without using the controller what i got with the motor(in package).

The problem what i am thinking is that i am not sure how can i gave 36V /750w to motor via this arduino controller which runs on 5v - (Operating Voltage 5V)

I am not sure if is this possible that's why i am writing here.
Thanks.
 
Welcome to the forum!
Sounds like an ambitious project. Are you planning for a sensored or sensorless design? IMHO, for a school project, a sensorless design would be much better.

You control the motor through the use of high voltage MOSFETs. The IRFB3077PbF is one of the best for this. A data sheet for it here: .../datasheets/data/IRFB3077PbF.pdf
The Arduno's output would be tied to a transistor at 5 volts that would trigger the MOSFET at full battery voltage.
As a BLDC is a 3 phase motor, you need three outputs. each output needs 2 (or more) MOSFETS working in parallel for a total of 6 (or more). yeah, I know the specs sheet makes it look like you could do it on 3 FETs, but go for 6. It's all about heat dissipation. Oh, and you will need a heat sink.

For the throttle, forget Pots. Ebikes kits come with a Hall throttle. it uses 5 volts, and gives an output of ~1volt to ~4volts. That works well with the Arduino, and allows you to add a safety feature that will wow your teacher. You can add a few lines to the program to go into fail mode if it doesn't get the expected voltage at boot-up (0volts = the throttle is disconnected/broken. FAIL) Or if the throttle voltage goes too high, over the ~4volts, ( 5 volts = shorted throttle, run away motor. FAIL) The Arduino's programming could shut off the motor.
 
Andorsch, it sounds like you need to read the sticky threads in the
https://endless-sphere.com/forums/viewforum.php?f=30
section, and the other motor controller development threads, which will help you first understand how a motor and controller work, and then how to develop one.

On the web there is also the OSMC project, if you do a search for that controller project it has a wiki and probably a sourceforge site with code for their MCU (which you'd have to adapt to yours or just learn how it works and write your own).
 
Back
Top