Choosing a Motor
Motor Types
There are a number of motor technologies available. Different authorities classify them differently, but I will break them up based on their input:
- Motors where speed is regulated by voltage or current – DC series, DC shunt wound, DC compound wound, etc
- Motors where speed is regulated by the frequency of the applied voltage or current wave – Brushless DC (BLDC), AC induction
Motors in category #1 are far easier to control. A basic DC series motor can be hooked straight up to a battery and will just work. It has two legs to attach your wires. You can vary the speed of the motor by placing a resister between one of the legs and your battery. If you want fine speed control, use a potentiometer. The problem with this approach is that you lose energy in the resistor. In fact, you can lose quite a lot. To make up for this, you need more batteries. And batteries are the most expensive part of the whole vehicle.
The specific characteristics of motors in category #1 vary based on the type. Some are better than others, and are differentiated not only by type, but by whoever makes them. They’re cheap and easy to find though. But, I am an engineer and can deal with the hassle of more complexity. So I won’t be using one of these motors.
Motors in category #2 have historically suffered from one major problem: it’s not easy to vary the frequency of the power being inputted. The power company puts 50Hz or 60Hz alternating current through the power lines. So most appliances use what are called single phase AC motors. They are designed to work at one or both of these frequencies. For a washing machine or an electric razor, that’s just fine.
Using analog components, its difficult to get the sort of speed control you’d want. You can chop the frequency in half, or double it, or quarter it, or whatever, but you still have a very finite amount of speed settings available.
Controlling Frequency
The solution is to use electronics to output a waveform. Then the speed settings are limited by the electronics. With todays microcontrollers, you can still run into problems with the barebones microcontrollers, but a few bucks will get your more than enough.
There is one other problem. Digital electronics output either 1 or 0. On or off. How can you approximate a wave? The technique is called PWM, Pulse Width Modulation.
All this does is switch between on and off states very quickly to generate an ‘average’ voltage somewhere in between off and on. By varying the duty cycle of the on time, the average voltage can approximate a wave. The duty cycle is, for a given time period, what percentage of that time is the device in the ‘on’ state? Think about the average voltage over a time period. If my device outputs 5 volts, and the duty cycle is 50%, then half the time the voltage is 5v, the other half of the time it is 0v. The average is 2.5v. Ah? See? Recording the output of a trigonometric function like sine for many valueswill give us the values of voltage for a wave. We can then figure out what the duty cycle should be for each of these values. If you graph the average voltage… it looks like a wave!
To do this effectively, your microcontroller (and any circuitry after it) have to be able to turn on and off really fast.
Imagine if you wanted your bedroom light to be half as bright as it is. You stand for 10 seconds, leaving the light on for 5 seconds, then off for 5 seconds. That would not really be half as bright. What if you flipped the switch every second? You would still notice the difference. If you did it as fast as possible, you’d notice it sort of works.
Well the microcontroller can flip that switch a lot faster than you can. You can probably notice fluorescent lighting at 60hz flickering. With a microcontroller running at 16 million hertz, even if you flip the switch at ‘only’ 1000hz no human being will notice the difference.
This is actually how light dimmers work.
The same effect applies to motors. If you flip the switch on and off slowly, the motor will jerk and the ride on your vehicle will be quite unpleasant. But do it fast enough and you won’t notice.
The circuitry that handles the big amounts of power your motor needs– versus a microcontroller, which can run off a couple of AA batteries is also important. It uses MOSFETs to make efficient motor control possible. Transistors are like switches. The trouble is that before about the 1980s, you had to use a sizeable fraction of the energy you wanted to switch to actually “flip the switch.” Imagine needing a hammer to turn your lights on. MOSFETs relieve us of this necessity. One side effect of the on and off switching is that it might make noise. The switching frequency is limited by how fast the circuitry can go. Remember 20,000Hz is the limit of human hearing). This is part of the reason why a slow moving electric vehicle makes a slight whining noise.
Getting back to motors. There is one other hang up. Single phase AC motors have problems even when controlled with PWM. It’s a matter of the way they are built. There’s a limit to how much you can speed them up or down, and its not very much. The single phase means that they get one “push” each time the motor goes around, so the timing is critical. Imagine riding a bicycle, but you are only allowed to step on the pedals once every time they come around. Thats the single phase part. This makes accurate speed control difficult.
Luckily there are 3 phase motors which take away this limitation. Brushless DC motors and 3 phase AC induction motors fall in this category.
Brushless DC motors, if you look on wikipedia, are about as efficient as AC induction motors. AC motors are actually a bit harder to control than BLDC for more detailed reasons I won’t go into.
Sourcing Motors
Theoretically, you could choose either one. But practically, you can’t. Why?
I can’t find 3 phase AC motors that use less than 120 volts, and these are very rare. And even then, they’re beasts. Way bigger than this bike can handle. It’s because the power company only delivers 3 phase AC to industrial locations. So they get used for things that industry needs.
While a 220V 20 something horsepower motor might be exciting, it would weigh as much as the rest of the bike and tear our tiny tires and bicycle chains to pieces if you ever opened up the throttle. They’re just not practical, though they would work for a car!.
So we’re left with brushless DC motors. Unfortunately, these are mostly used in small cooling fans and for RC airplanes. These motors have power ratings that fall. I suppose it’d be possible to use multiple motors… but it would take a lot of motors designed to fly 1 pound airplanes to push a 200+ lb bike and rider.
Luckily the scooter craze has produced some motors totally suitable for bicycle use.
Scooter Motors
The original scooters used series DC motors. The trouble is a scooter can carry even fewer batteries than the bike can. The lack of efficiency is an even bigger problem. I suppose that is probably why people make BLDC scooter motors. In any case, there are a few manufacturers of scooter motors:
- Kollmorgen
- BMC
- Some Chinese companies
- I forget the others, sorry
Apparently Kollmorgen has stopped making motors for the meantime, so we’re left with just BMC and the Chinese motors, though it’s still possible to find Kollmorgens for sale. Now it comes down to finding suppliers. I couldn’t find distributors for the Chinese motors. That leaves BMC motors. These are carried by
- PowerPack motors
- EVdeals
- One more site I forget now that was too expensive
Powerpack had the lowest price so I bought a motor from them. It was labeled as in stock, but took a few weeks to get to me. Looks very beefy though!
Hub Motors
Back when I started this project, there were a couple of exorbitantly priced hub motors available. The variety expanded, though the price stayed high.
Then came the Chinese motors.
You can buy a big name hub motor from ebikes.ca like an X5 or a Puma or a lower wattage 4xx series. It will cost you $300+. Or you can go to goldenmotor.com and buy a 500 Watt hub motor with all the electronics for $145 (since I wrote this, it’s actually gone up to ~$350). Hmm. With a price jump that big, I’d think the Chinese motor is worth a shot. It turns out the golden motor hub kit has really awful QA, and is not worth purchasing. The motor alone may be acceptable, though it is very heavy.
Hub motors come in two flavors: with gearing and without. Geared motors are more expensive. In addition, one brand has a built in torque sensor that, when used with a compatible controller, will ‘help’ a rider pedal rather than using a throttle. I think this is really slick but some people hate it.
The reasons I didn’t buy a hub motor are: 1) they are very heavy 2) they cost more than a stand alone motor 3) limited gearing options (though this is a good thing if you want simplicity). At the time I started, GoldenMotor also only sold front wheel drive hub motors. This is a problem if you can’t find a hub motor of the right size. My front wheel is 18″ and I couldn’t find 18″ wheels. Even 20″ was hard. I definitely cannot go larger than that. Hub motors are made for upright bicycles, not my recumbent with the tiny wheel in the front.
Hub motors are classified with a number, like:
This number actuallys splits in two: the 40 in 405 is the magnet width in millimeters and the 5 is the number of turns in the copper windings. Increasing the number of windings increases motor efficiency, but reduces its maximum speed.
If you know your wheel size and can decide on the maximum speed you want to go, you can then select a hub motor to fit the requirements.
DC Motors
I did end up buying a DC motor for another project. So I might as well explain those a bit (and actually, as of Fall 2008, I much prefer these to the tempermental BLDC motors with their flakey hall sensors and wires). Most of the DC scooter motors are 24v. There are some 36v motors. Unite seems to be the most popular or well regarded brand. They manufacture the MYxxxx series motors. Some of the DC motors have some really serious output– like 1500Watts (the legal limit in California is 750W). Some DC motors also come with internal gear reduction, which is really handy. The Unite motor I purchased came with a 9:1 gear reducer that made attaching it to a bicycle easier (unfortunately it used a 1/8″ bike chain sprocket I had to grind down to 3/32″).

Kollmorgen motor with a sprocket attached

The innards of the Kollmorgen – the Koll’s controller will inevitably die and you will either have to trash it or open it up to connect an external controller

Here’s what the innards are connected to. Note that some people have the hall wires in the order UVW+- rather than the strange VUW+- I have