Make Your Own Miniature Electric Hub Motor

Make Your Own Miniature Electric Hub Motor
In-wheel electric drive motors represent an effective method of providing propulsion to vehicles which otherwise were not designed to have driven wheels.

That is, they're great for EV hacking and conversion. They're compact and modular, require no support of rotating axles from the parent vehicle, and can be designed around the vehicle to be propelled. Pure DC electric hub motors, in fact, were used in some of the first electric (and hybrid electric) cars.

They are also not as complex and mystical as one might think. The advent of my project RazEr, a stock Razor scooter with a custom built electric conversion, has raised many questions from amateur EV builder looking to construct their own brushless hub motors. Until now, I have not had a single collective resource to point anyone towards, nor have I been confident enough to understand what I actually built to write about it for other hackers.

Hence, I will attempt to show that a brushless DC permanent magnet hub motor is actually relatively easy to design and build for the hobbyist, resource access considerations aside. I will first exposit some of the details of brushless DC motor theory as applied to hub motors. I will provide some thoughts and pointers about the mechanical construction of the motor itself and how to source major components. Finally, I will briefly glean over ways to control your newfound source of motion. The arrangement of this Instructable is designed for a readthrough first - because it relays theory and advice more than specific instructions on how to create one particular motor.

This is intended as a basic primer on DC brushless hub motors. Many assumptions, shortcuts, and "R/C Hobby Industry Rules of Thumb and Hand Waves" will be used. The information is purposefully not academic in nature unless there is no way to avoid it. The intention is not to design a motor that maintains above 95% efficiency across a thousand-RPM powerband, nor win the next electric flight competition, nor design a prime mover that will run at constant power for the next 10 years in an industrial process. Motor theoreticians avert thine eyes.

I will assume some familiarity with basic electromagnetics concepts in order to explain the motor physics.

Below is an exploded parts diagram of a prototype motor that I am in the process of designing and building. Let's clear up some of the vocabulary and nomenclature immediately. The can (or casing) hold a circular arrangement of magnets (electrically called poles) and is supported on one or both ends by endcaps. This whole rotating assembly is the rotor. Internally, the stator is a specially shaped piece of laminated iron pieces (the stack) which holds windings (or coils) made of turns of magnet wire on its projections (teeth). It is stiffly mounted to the shaft (a nonrotating axle) which also seats the bearings for the rotor assembly.




 
Remove these adsRemove these ads by Signing Up
 

Step 1Hub motor design considerations

Hub motor design considerations
Is a hub motor the right choice for your electric vehicle? Answer these few simple ques...

I mean, read these few pointers which highlights some design tradeoffs and considerations involved in the use of hub motors! They are not perfect solutions to every drive problem, and some of the shortcomings are dictated by the laws of physics.

Hub motors are inherently heavier and bulkier than driven wheels.

Until we make magic carbon nanotube superconductors en masse, motors are essentially chunks of steel and copper, both very heavy elements. What happens when you increase the weight of a wheel two- or -threefold is a drastic increase in the unsprung weight of a vehicle, or weight that is not held up by a suspension. For those of you in the know about vehicle suspension engineering, unsprung weight negatively affects the ride and comfort of a vehicle. If you just drop hub motors into a vehicle previously endowed with indirectly driven wheels, expect a change in ride performance.

This is more of a concern for passenger cars and sport vehicles than anything else, as most small EVs such as bikes and scooter won't have suspensions at all. However, the keyword here is small. You might have gathered from my other instructable that some times it's all but impossible to simply fit a larger motor in an enclosed space. A hub motor will inevitably take up more space in the vehicle wheel. This matters less for larger wheels and vehicles. The MINI QED and Mitsubishi MIEV are example of car-sized hub motors that have been well-integrated into the vehicle design through some pretty serious re-engineering of how the wheels attach to the car frame. You might have to do the same for your scooter, bike, or couch.

A hub motor powertrain will generally produce less torque than an indirect-drive system

Don't expect any tire smoke from your hub motors. An indirect drive motor, such as one geared to the wheels through a transmission, has the advantage of torque multiplication. This is how a 400 horsepower diesel engine in a semi truck can haul itself and 80,000 more pounds up a mountain road, but a 400hp Corvette could not do the same - the semi engine goes through a painstakingly complex arrangement of gears to transmit many thousands of foot-pounds of torque at the drive wheels. A Corvette is light and fast, and hence the 400 horsepower in its engine is mostly speed.

From physical mechanics, power output is a product of both torque and speed.  Due to curiosities in the laws of nature, it is much easier to make a fast but low torque motor than a slow and high-torque one, power output levels being equal.

As it relates to motors, this is why your typical drill motor spins at upwards of 30,000 RPM, but you only get a few hundred RPM out at the screwdriver bit. The drill motor has been engineered to produce maximum power at very high rotational speeds, which is sent through a gear reduction to crank your drill bits hard enough to do this.

But your hub motor is direct drive. There's no bundle of pointy steel things to convert its rotational velocity into torque. A hub motor can only lose mechanical advantage because the wheel essentially must be larger in diameter than the motor. Comparatively few in-wheel motors have internal gearing - these are most often found on bicycles, since they have a large diameter, and hence loads of space, to work with. It is not that much more difficult to incorporate a gearset into your hub motor, but it is beyond the scope of this Instructable.

The bottom line is, while a 750 watt DC motor on your Go-Ped might let you perform a wheel-spinning launch, a 750 watt hub motor will probably not.

Hub motor drivetrains will generally be less electrically efficient than an indirect drive system

It is certainly true that hub motors bypass practically all the mechanical losses associated with a clutch, transmission, axles, and gears that you typically find in a vehicle powertrain. In fact, drive components alone can eat up 15 to 20% of the power produced by the engine. Imagine if that were gone - what could you do with 15 to 20% more power?

A hub motor will typically have a torque-produced to force-on-the-ground transmission of almost 1. The torque of the motor only has to go through the tire, with its rolling friction and deformation forces. But what hurts the hub motor is electrical efficiency.

A motor is a transducer. Input electrical power and out comes mechanical power - usually. Electrical power is defined as 

Pe = V * I

where V is the voltage across the motor and I is the current flowing into the motor. V has unit volts and I has unit Amperes. Mechanical power is

Pm = T * ω

where T is the torque output in Newton-Meters and ω is rotational velocity in radians per second (units 1 / time, because radians are unitless!)

It is perfectly within reason to be inputting electrical power to the motor but get no rotation out. This is called stall or locked rotor condition, and it kills motors. This occurs when T is not enough to overcome the forces pushing back against a motor - think of driving up a really steep hill.

In this case, your efficiency is precisely zero. Zilch, nada, nihil, nothing. Mechanical power out is zero, but electrical power in is nonzero.

While it is true that both motors must start the vehicle from standstill, and thus have zero efficiency for a split second, the fact that hub motors must operate continuously at high T and low ω is the distinguishing factor. Other laws of physics dictate limits of torque output, which I will get to shortly. A\ hub motor has to draw a higher current for the same torque output, and current is what causes heating in wires (not voltage). The more current there is, the more heat is generated.

This is called Joule heating and is governed by the power law Pj = I² * R. It is a square law: double the current, quadruple the heat. 

Now you see why hub motors are less efficient electrically than indirect drive motors. Hub motors are low speed creatures, and will inevitably spend much of their lives at or near stall condition. This occurs whenever the vehicle is moving at low speed or accelerating. A hub motor will see more moments of low or zero efficiency than an indirectly driven, geared motor.

The bottom line is, prepared to see a decrement in battery life if you swap your existing drive system with a hub motor.

Now that I have told you the reasons to not build and use hub motors, let's get on to how you can build and use hub motors.

« Previous StepDownload PDFView All StepsNext Step »
122 comments
1-40 of 122next »
Dec 30, 2011. 7:56 AMmadomonaem says:
like
Dec 11, 2011. 8:44 AMbykeon says:
Your instructable was very well written and the highly technical portions were simplified so even I could understand it. I do however have one suggestion that might assist in mounting bearings, True, the surfaces must have closer tolerances and do not handle coaxial loads due to the inner and outer race design. In the machine tool trade it is common, when possible to leave the shaft in a freezer overnight, or failing that spraying with a pure CO2 or nitrogen, while leaving the bearing under a heat lamp, again overnight. The shaft will contract of course, while the bearing will expand, allowing very gentle taps to a bearing set tool to seat the bearing. Often bearing to shaft tolerences to a 30,000 rpm spindle is .02mm of the bearing specs in an Okuma spindle. When mounting the bearing and shaft to the outer bearing, the heat lamp to the casting is used to assist the shaft / bearing placement into the casting. Because of the high speeds NGK bearing grease is used in precision amounts (30 cc for example) and is heat resistant. I'm not sure how this will affect normal grease as it is not specifically designed for high speed high temperature enviroments, This negates any possible coaxial "bumps" to the bearings. Hope this may help in future.
Dec 6, 2011. 2:40 PMbykeon says:
This is easily my next construction project. After a year of look-ee loo, this is the one that peaks my interest enough to post a big thank you. Good instructions and easy to follow. Thanks!
Nov 30, 2011. 3:32 PMArrowRoSA says:
Dear teamtestbot , nice to meet you. Nice project in did!
I have a question about magnets gap on rotor.
what is the life time of magnets when they are interacting N to N pole without any gap at your rotor? I have seen in your pics 1 setup of magnets when you had create 1 pole from double magnets NN SS NN SS ets at rotor. and which is most important - there where no gap between NN or SS magnets. So, are they still have same magnet force or it is reduced because there is no gap between them?
Have you ever saw flat permanent magnet V-gate liner actuators?
my tests:
http://www.youtube.com/watch?v=24Hug7CPDIM
Nov 21, 2011. 3:34 AMMaxisokol says:
Thank you so much for this article!
I've just been looking for some information that would be helpfull, but at the same time - understandable. That's just what I need! =)
May 5, 2010. 9:56 PMFreeTom says:
I've been thinking for some time now about putting hub motors on in-line skates, I even bookmarked this instructable shortly after getting that idea. To my surprise you've already been working on that too! I really hope to see those "Deathblades" posted here as well when the project is finished.
Keep up the good work!
Aug 18, 2011. 3:57 PMleon0862 says:
my guess you have been watching Air Gear havent you
Aug 25, 2011. 6:39 PMFreeTom says:
No, I go outside instead...
Apr 6, 2010. 2:20 PMghostrider2 says:
also, is there any way that this concept could be used for artificial robotic joints?
May 18, 2010. 7:43 PMTracyPhaseSpace says:
Direct Drive has problems with very high torque / power / weight ratios that would be needed for elbows and wrists. It's amazing how hard 10 pound feet of torque per second is to produce. I'm working on a combination of halbach array motor with a plastic harmonic drive inside, for that reason. That way the expensive parts will be injection molded and not very expensive. Then again, you aren't going to get a huge amount of power out for other reasons.
Aug 19, 2011. 6:53 AMBosun Rick says:
I'm a mechanic, not a physicist, but the idea occurred to me; why couldn't one use a planetary gear system (Think automatic trransmissions in cars) to enhance or retard torque? It would take some machining, and/or parts researching to accomplish, to get a unit the right size, but if properly applied, the desired result (more starting torque/better top speed) should be attainable.
That's what Henry Ford used in the Model "T" for his transmissions.
Jan 29, 2011. 6:42 PMdrewgrey says:

do motors exist that have independant layers that can work together for torque or push against each other for higher rpm?. That is, an outer layer would be traveling at a higher rpm than each inner layer in turn.
Jun 13, 2011. 5:10 AMmsbeaumont says:
Great minds think alike. Had this idea for a while knowing the problems running electric motors at slow speed, however it was after 420 and I've forgotten the next day or dare'nt google it thinking I was the only one who'd thought of it! So google here I come...
Dec 24, 2010. 10:50 PMrenhit says:
Can somebody explain how 61N is calculated? what values are considered for m & g?

F = m * g * sin 5.5° = 61N

and below equation how did u get 12.7?
3.66 / (4 * 12.7 * 0.03 * 0.07) = 37 = N

should it not be 10.9 amps as calculated above?

Jun 11, 2011. 7:18 PMkillersquirel11 says:
61N = 61 Newtons. m is 65kg as listed above, it is the mass of the rider + the scooter.  g is the gravitational acceleration constant, or 9.81 meters per (second squared)
F = 65kg * 9.81m/s^2 * sin(5.5) = 61.11 kg m/s^2 = 61.11 N
(Force = Mass * Acceleration.  Since this is on a hill with an angle from the horizontal plane of 5.5 degrees, take sin(5.5 degrees) to get the component of the force pushing back down the hill)

I'm guessing that it was either adding a margin of safety to account for other errors in the system, or he simply grabbed the wrong number.
May 2, 2011. 5:20 AMgidian says:
What if you placed your motor elsewhere, then that would remove tire size limitations. a chain and sprocket design wouldn't take away much to any efficiency.
Apr 5, 2011. 3:46 AModvratno.zgodan says:
Hi,
I have a problem with calculating the number of wire loops (N) with your formula. I put it in a spreadsheet and the thing is that the number of loops decreases as the current (Ampers) increases. ???? Am I missing something. Also it is not said wich wire thickness we are talking about.
Mar 28, 2011. 1:00 PMNCchance says:
Highly impressive. Thanks for raising the bar!
Feb 27, 2011. 5:50 PMVolksJagger says:
And it comes with a laugh in every step... WTG!
Feb 22, 2011. 6:28 PMSky Woulf says:
this was great! so um....
how would i go about designing/building one for my moutain bike.
Feb 27, 2011. 12:40 PModvratno.zgodan says:
I'm thinking of the same thing but as I have a freeride frame I'd like to put the motor on the ISCG mount of the chain guard. I found out that motorbike stators are about 10-12 cm in diameter with a significantly large inner diameter and most of them have 12 poles. This way I could use the back gearing for better eficiency and SPEED :-). I first intended to make a flat/axial motor but using the motorbike stator makes it so much easier because the the stator should be easy to obtain.
Plan on starting when I get my hands on a stator from a junkyard. Hopefuly soon...
Feb 9, 2011. 6:56 AModvratno.zgodan says:
Great tutorial. i was wondering if I could use the same princiles to make a flat type BLDC motor which uses stator and rotor plates, mounted face to face? I'd like to use it on my bike and I found your instructablewery helpfull.
Dec 30, 2010. 11:18 PMabadfart says:
i might put an electric asist on a bike for next years tour de fat
Dec 3, 2010. 5:30 AMlad says:
Hi, a really nice instructable.

Just one question- from my high school days I remember that eddy currents are a function of size- therefore the lamination etc. Why not use iron (best magnet) filings set in epoxy - either as laminates or one single block. I suppose laminates would be easier.

Do you think it'll work?
Oct 24, 2010. 1:04 PMkarlpinturr says:
Here's a (very simplistic) thought - just how important is it that these "electrical steels"/"transformer steels" contain silicon as an alloy?

What I'm thinking is laminating very thin steel sheets with very thin sheets of silicon to mimic the effects you outline... Or maybe just laminate the steel with a silicon adhesive...

There'd probably be a minimum size beyond which you'd lose too much efficiency, but would larger, slower-turning, motors be feasible?
Nov 29, 2010. 9:51 PMGordieGii says:
Where would you get these "very thin sheets of silicon"?
Nov 30, 2010. 12:36 AMkarlpinturr says:
Sorry, my bad. I put the idea down as it came, without checking up, so I don't even know if they exist... - that's partly why I mentioned the adhesive.

Thinking about it now, anything thin enough would probably not be available in small-enough quantities to be affordable for the DIY'er (yet, anyway).

So, we're back to the adhesive - and you'd probably need 100% pure silicon (like aquarium sealant is, I think).

 Maybe an idea for someone else to tinker with?
Nov 30, 2010. 5:09 PMGordieGii says:
You must be thinking of silicone, a group of polymers with a high silicon content but entirely different physical properties from the element.

It's a common mistake.

I believe the idea is to make the sheets of an iron-silicon alloy as the silicon decreases the electrical conduction within each sheet while the sheets are coated with some kind of coating (the perfect sort of thing to coat something with) to prevent conduction between the sheets. you could use silicone, but I think saran wrap or wax paper would work just as well if you didn't have any lacquer, shellac, or spray paint.

But if you did use extremely thin sheets of steel and insulated them from each other I'm sure it would still work much, much better than a block of steel.
You can get something called "shim stock" in thicknesses down to 1 or 2 thousandths of an inch (0.02 to 0.04 mm) at an auto parts store or from a machinists supply.
That's about half the thickness of a piece of paper. they're pretty flimsy so if you went this route you'd probably want to put thicker sheets on either side to maintain the shape.

Now all you have to do is make the poles/spokes/teeth. We're talking about hundreds of sheets for one motor. You can cut the stuff with scissors but we're talking about hundreds of sheets for one motor! I don't know how many times you'd have to sharpen them.
If you have access to a laser cutter you're set.
Otherwise I'm thinking a whole bunch of squares with a hole in the center. Two big end blocks and a bolt down the center. Then to the lathe and the end mill or better yet a wire EDM machine.

BTW shim stock is also available in brass, copper, plastic and possibly aluminum. None of these will do. It has to be steel. Iron would be better but I've never heard of iron shim stock.
Dec 1, 2010. 12:46 AMkarlpinturr says:
You're right - I was making that mistake, thanks.

And you're right about the "hundreds of sheets" - another reason (or hundreds of them!)  the average back-yard'er would have a horrible time...

Still, it was an idea that might have been worth pursuing, and at least I've learnt from the discussion.

Thanks again.
Nov 20, 2010. 10:48 PMjirving says:
I am trying to make my own motor. The stator that I found has 18 teeth with 20 mm width. The only available magnet that I found has 29 mm. Is that ok or is too much? thanks
Nov 21, 2010. 6:15 AMDG4ever says:
Hi jirving,

I think 29mm is too much but why 29mm I found several Magnets with a length of 20mm:

http://www.supermagnetman.net/index.php?cPath=37&page=3
Nov 22, 2010. 10:52 AMjirving says:
i am from the philippines and there are only a few magnet suppliers that i can find here. is it a bad thing if i continue to use the 29 mm magnet?
Nov 6, 2010. 1:20 PMDG4ever says:
It's a really good work and explanation!

I'm planning to build such an electric scooter too!!
But I want to have more power:

Lets say I want drive 10m/s with 1500W(yes it seems oversized) and I use 24V:

1500W / 10m/s = 150N

The radius of my wheel is 0.075m and of my stator 0.0465m the width is 0.026m

150N*0.075 = 11.25Nm and 1500W/24V = 62.5A

-> 11.25/(4*62.5*0.026*0.0465) = 37.2*1.5 = 56

My stator has got 18 teeth, so I have to wind 10 windings per tooth!!

My question is, is that possible and which magnet wire do I have to use to handle the 62.5 A?
Oct 27, 2010. 12:35 AMlevent003 says:
it's a good work and explanation. thanks,..

some non-clear points.
1. in the example : diameter value ( 0.07m) been used in the formula in place of R. Why.??
2. current been upgraded to 12.7. under what assumption??
3. have you measured the stall torque.
4. how can the stall torque can be calculated
Jul 10, 2010. 1:00 PMGENERALCHAOS says:
omg i did my winding wrong i did winding to next and next teeth not lik the pic shows winding then other side winding on my 15 teeth 3 layer plate that came off a floppy drive i was doing a project making a small scale motor and generator all in 1 the generator is to boost more power to the motor put i remember i dont have a lathe or other tools to finish it
Jul 9, 2010. 12:07 PMFilter says:
Very well done, thank you.
Jun 6, 2010. 2:59 AMleowhite says:
are you some type of pyschics teacher? I LOVE the way you explain things, great instructables. Got any more for us? and where do i go to sign up for your classes :)
May 19, 2010. 7:34 PMjimboa2020red says:
I'm seriously just gonna start taking physics courses now. This area really sounds like it's any one's game and this tech stuff is me all the way, better late than never :) 

But, would these dc motors (say for skates) really provide enough power (torque?) to go directly on the wheel, without gear action. I also imagine you'd need high RPM with smaller wheels.......safety aside lol
Apr 19, 2010. 3:50 PMkillersquirel11 says:
Just a couple of ideas/questions:

Could you have the magnets in the original wheel, with coils on either side (so that a line from N to S would be perpendicular to the plane of rotation), still using the original bearing etc.

If you put a cap in line with each coil, adjusted to hit resonant frequency, couldn't you get better performance? (we just covered RLC circuits in physics, so I'm still a bit shaky on it)
1-40 of 122next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
99
Followers
3
Author:teamtestbot
lol robots