Make Your Own Miniature Electric Hub Motor

 by teamtestbot
Featured
motter0.JPG
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 1: 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.

1-40 of 143Next »
lgabor says: Jun 5, 2013. 8:38 AM
it looks to me that the torque should be proportional to the square of the radius. At constant magnet induction and current density the force per unit circumference length would be constant so the torque would be proportional to the radius and the length of the circumference, in turn proportional to the radius , hence the radius square.
Ottoclav says: Jun 1, 2013. 8:03 AM
Im an electrician, and house wiring is done in 14, 12 and 10 gauges mostly. Winding a motor in 18 gauge must be a chore! But im sure chris farley would say, " It builds dexterity!"
asdqweasd says: Mar 29, 2013. 12:15 PM
Torque should definitely depend on current. So, it should be T = 4 * m * N * B0 * (t / t + g) * L * R * i instead of T = 4 * m * N * B0 * (t / t + g) * L * R
mb inventor says: Oct 8, 2012. 3:53 AM
That's a lot to read but I read it anyway I can't make one of these. Because I don't have the tools nor the supplys to build it but awesome job
antoniraj says: Sep 8, 2012. 9:20 AM
very nice and educative. learned a lot from this.
ElvenChild says: Jun 20, 2012. 11:54 PM
So there is probably something stupidly wrong with what I am about to write, but I am tired and can not get this idea out of my head, so on with it.

What is to stop you from taking a standard dc motor, like the ones used in toy scooters, and reinforcing the !#$@% out of it, namely in the (casing? or is it a shell?) itself and the axel, welding a rim to the (reinforced) casing of the motor and using that as a hub motor with the motors axel acting like the axel of a bike wheel, with everything revolving around it?

Would the motor just plain not have enough torque?, or is there some other blatantly obvious issue that I can't think of?
sparten11 in reply to ElvenChildAug 30, 2012. 8:41 AM
here is a mild example of your concept and a solotiuon using a standard dc brushed motor as an axle or pivot point. and having to add a gear reduction to it to get it to move.

http://www.instructables.com/id/6-AXIS-ROBOTIC-ARM/

check it out.

and vote for me
kaihattan in reply to ElvenChildJul 29, 2012. 7:56 PM
You would not have enough torque, even on scooters with small diameter wheels the motor is usually geared down at least one to five, on a bike you will need a gearing of at least four times that! I hope this helps.
ElvenChild in reply to ElvenChildJun 21, 2012. 12:23 AM
Sort of like this, or this.
image.pngImage 2.png
67spyder says: Aug 23, 2012. 3:17 AM
On this page you have a picture of some small car hub motors. Can you tell me where the came from?
san090591 says: Jul 19, 2012. 7:09 AM
how much cost for four wheeler hub motor?.
notingkool says: Jul 6, 2012. 10:41 PM
i have a question (yes, i read the entire instructables). If the thickness of my magnetic field isn't determinant can i build the stator as thin as i want? or there is some equation that relates the power (Pe) with the area of stator across each coil?
because when i study electronics there was a equation for transformers that related that.
i'm an electronic technician, but i never design a brushless motor (sorry for my english man, i do my best)
Thanks.
Ganhaar says: Jun 19, 2012. 5:12 AM
Has anyone investigated the use of motorbike / scooter magneto stators for converting the bldc motors? The smaller / basic bikes without alternators appear to have magnetos with stators that look very similar to what is needed for the centre of a bloc motor. There seems to be heaps of cheap 18 pole and 8 pole magneto stators and a few 12 pole stators. From the bike sites, it seems these fail fairly often on bikes, so there would be heaps of old stators being thrown away.
teamtestbot (author) in reply to GanhaarJun 19, 2012. 6:06 PM
Absolutely - this has been done by a few people, most notably:

http://wattsdottime.blogspot.com/ (both as motor and as a generator)
http://amymakesstuff.com/2011/06/07/pf-hub-motor-complete-mostly/

The only downsides to the bike stators are their large bore and narrow teeth - can't stuff as many windings on it as you otherwise would be able to, and the teeth potentially will saturate earlier. But, those are all parameters you can design around.
karlpinturr says: Oct 24, 2010. 1:04 PM
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?
GordieGii in reply to karlpinturrNov 29, 2010. 9:51 PM
Where would you get these "very thin sheets of silicon"?
karlpinturr in reply to GordieGiiNov 30, 2010. 12:36 AM
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?
GordieGii in reply to karlpinturrNov 30, 2010. 5:09 PM
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.
drobertson in reply to GordieGiiJun 3, 2012. 2:07 PM
The insulating layers between the Steel/Iron sheets is to reduce losses from eddy currents. The key is to get as high a density of iron in the area as possible with as little possibility for electrical conduction as possible. I am wondering if a fine grain iron powder mixed with a two part epoxy resin could be used.

From my experience the epoxy makes a very good insulating layer around basicly everything it touches and with a fine to small grain iron powder could get a fairly decent density of Iron in the mixture.

Using this aproach you could actually cast the stator with a small mould and a basic vacume rig. Advanced, but not impossible for a DIY person.

I am curious to hear any criticisms of the idea.
Ganhaar in reply to drobertsonJun 18, 2012. 5:41 PM
I tried this, started by making a sample piece of the stuff. Magnets stuck to it like steel, no electrical conductance, machined well. Seemed perfect. Made a mould for a rotor, cast it, made ali hub wheel castings wound it all up then the big test day came. Not a cracker of movement. No cogging. Back to the test piece of epoxy iron, wound up a coil like the old nail test. Yes should have done this first. Not a hint of an electric field. Turns out the iron epoxy is magnetic in a sense that a magnet sticks to it perfectly, but does not conduct a magnetic field. Im sure there's a more technical term and description, but no it doesn't work.
Did a bit more research and there are some uni's doing research on sintered rotors for high speed electric motors where eddy currents become a bigger loss. They have developed some cast materials but these seem to be mostly rare earth sintered materials that are much harder to fabricate individually but might be an option in a decade or three if the idea catches on and the rotors start to get mass produced.
kretzlord in reply to drobertsonJun 8, 2012. 4:46 AM
I really like your idea, sadly i don't have the experience to know how it would fare. Any thoughts on using a high iron content ceramic? Molding might be more difficult, though. Either way, your idea puts this closer to the realm of the DIYer
karlpinturr in reply to GordieGiiDec 1, 2010. 12:46 AM
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.
biolethal says: Jun 8, 2012. 10:12 PM
I have a couple of these: http://www.powerditto.de/18N20PKuniinrunner.html
could I rewind these (or leave them in their current state) and use them in an electric vehicle?
keithbrook says: Apr 20, 2012. 5:24 PM
That was a tour-de-force on direct drive motors.

Good man!!

It's stuff like this that needs to be cherished as the dwindling supply of smart people heads towards zero.

Thank you.

Or

'Blagodarya Mnogo', as we say in Bulgaria.
numberonebikeslover says: Mar 28, 2012. 9:02 AM
Great Job; Two thumbs up for this instructable. I feel a bit sorry for I have only the words of thanks and nothing else to give. You really deserve an award for such a comprehensive study that you have done on BLDC motors. I salute you and wish you all the best of luck throughout your future endeavors.
Respectfully Yours; Naeem from Pakistan
alan brown says: Mar 24, 2012. 11:10 AM
I know this might be heresy, but I love the motor but have no time to build one.
Does anybody know where I can get a miniature electric hub like this one for sale?
Thanks!
madomonaem says: Dec 30, 2011. 7:56 AM
like
bykeon says: Dec 11, 2011. 8:44 AM
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.
bykeon says: Dec 6, 2011. 2:40 PM
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!
ArrowRoSA says: Nov 30, 2011. 3:32 PM
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
Maxisokol says: Nov 21, 2011. 3:34 AM
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! =)
FreeTom says: May 5, 2010. 9:56 PM
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!
leon0862 in reply to FreeTomAug 18, 2011. 3:57 PM
my guess you have been watching Air Gear havent you
FreeTom in reply to leon0862Aug 25, 2011. 6:39 PM
No, I go outside instead...
ghostrider2 says: Apr 6, 2010. 2:20 PM
also, is there any way that this concept could be used for artificial robotic joints?
teamtestbot (author) in reply to ghostrider2Apr 6, 2010. 3:07 PM
Direct drive robotic joints do exist. They are more commonly discrete motors that are very highly geared down via planetary or harmonic reducers. Though I'm sure very small and light weight robots can use this type of drive.
TracyPhaseSpace in reply to teamtestbotMay 18, 2010. 7:43 PM
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.
Bosun Rick in reply to TracyPhaseSpaceAug 19, 2011. 6:53 AM
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.
drewgrey says: Jan 29, 2011. 6:42 PM

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.
msbeaumont in reply to drewgreyJun 13, 2011. 5:10 AM
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...
1-40 of 143Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!