3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

USB Bike Generator

USB Bike Generator
«
  • USB Bike Generator 058 small.jpg
  • USB Bike Generator 062 small.jpg
  • USB Bike Generator 061 small.jpg
  • USB Bike Generator 065 small.jpg
  • USB Bike Generator 063 small.jpg
  • USB Bike Generator 059 small.jpg
The USB Bike Generator is a small bike mounted electricity producing device optimized to provide power for two USB ports.  There are so many small electronics that can be powered or charged from a USB connection it only makes since that people might want to do this while riding a bike.  The basic idea for the USB Bike Generator is to use a suitable stepper motor as a generator and a voltage regulator circuit to maintain the 5 volts needed for the USB ports.  In this instructable I will show you how to build this generator and through testing show that it is 70% efficient at converting the power from the generator to the power needed for the USB port. 

This is the third revision of my bike generator project, the first two can be found here http://www.instructables.com/id/Bike-Generator/ and here http://www.instructables.com/id/BikeGen/ I would strongly recommend that if you plan on building this USB Bike Generator you at least look over how these past to versions went together.

This third rendition of my bike generator project came about after reading some of the comments made about my previous methods. Specifically, one comment from member ac-dc stated that my decision to use a linear regulator to go from 30 volts from the generator to 3 volts to power the light was at best 10% efficient. Now since one of the interests I've had listed on my profile since I joined this site has been efficiency I decided to read the rest of his comment after wiping the tears from my eyes. Ac-dc suggested that buck switching regulator would be better suited for a bike generator like mine. I had no idea what a switching regulator was so I started to do some research and found out that ac-dc was right and that I could significantly increase the efficiency of the electronics I was using.

In my searching for switching regulators I came across this reference from Dimension Engineering, http://www.dimensionengineering.com/switchingregulators.htm.  They offer a good explanation of the switching regulators and even sell them. 


 
Remove these adsRemove these ads by Signing Up
 

Step 1BikeGen Testing

BikeGen Testing
«
  • USB Bike Generator 001 small.jpg
  • USB Bike Generator 002 small.jpg
  • USB Bike Generator 003 small.jpg
  • Test Setup.bmp
If you only want to learn how I built the USB Bike Generator and not why the BikeGen system wasn't the best, you can skip this step.

In order to set a bench mark for the efficiency of BikeGen system I decided to do some testing.  In my searching for switching regulators one of the best resources I found was this article http://www.dimensionengineering.com/switchingregulators.htm It explains how switching regulators work and how you can calculate the power lost through heat generation.  The power lost to heat can be calculated using this equation:

Power lost = (Input voltage – output voltage) * load current

So in order to find the power lost you need to know the input and output voltages as well as the load current.  Luckily, I already had the tools for this job which required 3 digital multimeters and a small drill press.  

The test setup was fairly simple, I tightened the drill press chuck onto the shaft of the stepper motor and loosely clamped the motor in a vice.  This was the same stepper motor that I have used for both the Bike Generator and and BikeGen Instructabes.  This actually works out really well for two reasons.  First the speeds that the drill press can spin are labeled and from these speeds I calculated how fast I would need to ride the bike based on how fast the generator is spinning.  So using the tire size, rim size and the diameter of the small wheel mounted on the stepper motor for the BikeGen instructable I calculated the following speeds:

Drill Press RPM            Bike Speed (MPH)
         620                                     4.7
        1100                                    8.3
        1720                                   13.0
        2340                                   17.7
        3100                                   23.4

This range of bike speeds seems very reasonable.  The second reason that using the drill press is a good representation of a bike rider is the power rating of the drill press motor.  This drill press is rated at 1/3 horse power which is roughly 250 watts, this is attainable by an average person while riding a bicycle.  

The next step was to connect 3 digital multimeters into the circuit.  I had cut some of the wires and use a few sets of alligator clips to make this happen.  Check out the picture or the Test Setup pdf to see how I connected the meters.  Basically the current meter was placed inline between the regulator and the charging circuit and the voltage meters connected after the diodes and after the regulator and were grounded at the same spot.  This measures the values I need to calculate the power lost.

Once everything was ready I plugged in the drill and turned it on.  I tested the generator at every speed the drill was capable of and found out that at the first 3 speeds (620,1100,1720 RPM) there was not enough power to consistently charge the batteries.  This was confirmed by the blinking LED on the charger.  At 2340 RPM and 3100 RPM enough power was provided by the generator to charge the batteries.  The values I measured at these two speeds are listed below:

Motor RPM                  2340       3100
Input Volts                    15.2        20.2
Output Volts                   13        12.68
Output Amps                0.29        0.28
Power Lost (W)           0.638     2.106
Output Power (W)       3.770     3.550
Total Power (W)          4.408     5.656
Efficiency                      85.5%    62.8%

The power lost was calculated from the equation I showed earlier, the other values were calculated from the following equations:

output power = output voltage x output current
total power = output power +  power lost
efficiency = output power / total power

RESULTS

So looking at these results I think there is something to be desired.  First there was not enough power to charge the batteries until 2340 RPM which is 17.7 mph on the bike.  This is a high speed and doesn't seem reasonable for a casual bike ride.  Of course this speed is attainable but it would be a lot of effort to maintain the speed for an extended period of time.  The efficiency  seems very good at 2340 RPM (85%) but it drops to 62% at 3100 RPM.  This is because the input voltage goes up at higher speeds which means more power is lost to heat.  So unless I want to ride the bike at and average speed of 18mph everywhere I ride I will not achieve the best efficiency possible.    
Test Setup.pdf(792x612) 92 KB
« Previous StepDownload PDFView All StepsNext Step »
47 comments
1-40 of 47next »
Apr 28, 2012. 10:11 PMadrofig says:
To someone who has used this, is the additional friction greatly noticeable?
May 3, 2012. 7:33 PMadrofig says:
Thanks!
Nov 5, 2011. 12:58 PMChowmix12 says:
Can you explain to me why you used a stepper motor? i have a regular motor, and I want to use that instead so that with a 5 volt reg.
May 24, 2011. 5:51 AMjwelbes says:
"The rectifier, which is just 4 diodes..."

you're using 8 diodes. are you using 4 sets of two diodes connected in series, effectively making them one diode?
May 24, 2011. 6:02 AMjwelbes says:
wait hold on. you made two seperate circuits, one for each USB charger inside your 12v car adapter. am I right? this makes more sense than my last comment. that would explain why your diagram you drew has only two wires going to your car adapter, but in your photograph there are 4 wires going to your adapter.
May 26, 2011. 4:02 AMjwelbes says:
ah. two seperate coils. ok thanks!
May 24, 2011. 5:41 AMjwelbes says:
"Follow through the notes on the pictures to see how I connected all the parts together."

I don't see any notes on the pictures.
May 24, 2011. 5:52 AMjwelbes says:
i guess I need to be a pro member...
Jul 8, 2010. 1:00 PMtexasclodhopper says:
(removed by author or community request)
Mar 21, 2011. 5:55 AMroland985 says:
When I go for rides, I spend roughly 30 minutes each way, 1 hour. Enough to give my smartphone a full battery. I have bought a commercial version of this.

But yes, storage is desirable, make your version with storage.
Aug 17, 2010. 12:52 PMpteranosaur says:
Clod Hopper-More research,you need MORE RESEARCH...lol
Jul 18, 2010. 1:28 PMwatermelonhead says:
Actually, in the second rebuild of this project, he did just that... instead of directly powering the headlights, it recharged its batteries. He also says that this is not to power, but "The USB Bike Generator can power two USB ports as you ride your bike, to charge your electronics."
Oct 7, 2010. 6:30 PMthegodfather279 says:
could you use a car outlet power supply that has an AC plug and a USB plug instead of the dual USB power supply?
Jan 19, 2011. 1:07 PMzogworth says:
You mean an inverter?

Most things that you could run off a small dynamo would be DC anyway, so you'd be inverting up to 110/240 VAC then recifying down to DC for your phone/satnav/what ever charger with associated wastages.
Jul 6, 2010. 4:02 PMtraeblain says:
Last question...but why did you choose to abandon the intermediate battery approach you used on your previous generation? I would think the battery could take the flaky charge gracefully, then you'd have clean output power to your devices and would correct for issue with the ipod charging reliability?
Dec 2, 2010. 1:15 PMbrickbreaker says:
Well obviously more research is required before you start building a battery addon for this build but I would like to point out (if its not too obvious) that modern devices with lithium batteries have a set up that prevents over charging. Maybe hacking an old device to be your bike-battery would be easier than building your own circuit? Just a thought.
Jul 6, 2010. 4:29 PMtomtortoise says:
can you please make a simple schematic to better explain the rectifier wiring.
Nov 15, 2010. 1:53 PMtomtortoise says:
thanks sorry for the late reply but i needed to make a mount first and get parts but i needed to use a different motor for my mount but the wires are weird. from the motor the order is orange, yellow, brown, green but when it goes to the white PCB mount plug it is yellow, orange, brown, green should i hook up the rectifiers in motor order or PCB plug order
Nov 7, 2010. 7:44 PMmobby666 says:
With the right regulator you should be getting over 90% efficiency. Using a solar cell setup & a boost regulator should give you power to supliment your generator & reduce it's drag on your wheel. Look at BEAM robotics sites for other ideas about harvesting solar power. Nice
Oct 16, 2010. 11:23 PMproelectron says:
Great project! I might try this, but with a smaller wheel giving the required alternator speed. Surely the output of the stepper motor is pulsed and therefore could be stepped down using a small transformer?
Jul 19, 2010. 8:51 AMvarunmehta says:
Rather than dismantling the whole male plug system (car style) on the USB charger and connect the wires, how about making a female receiver, like that in the car. You can plug this USB drive charger into it + if tomorrow you make a new enhancement or want to connect something new to it, you can reuse the same stepper motor and circuit to achieve it!
Jul 10, 2010. 1:38 AMlaznz1 says:
http://www.nzherald.co.nz/technology/news/article.cfm?c_id=5&objectid=10657566 epic win!
Jul 6, 2010. 3:58 PMtraeblain says:
I know this is why your previous generation motor didn't work, but I think there could have been better options than moving to a new motor (although I have not built this and don't know the ins-and-outs of your work). My first question is why not try a new wheel for the previous stepper motor? My calculations (assuming you're using a 700x23 wheel and tyre) simply using an aggressive inline skate wheel (47mm) you could move your target down to 12.9mph which is pretty good for casual riding. Not sure your target speed though. It may help to understand as I believe you got the last motor from an old printer? Where this one may cost a bit more money.
Jul 8, 2010. 3:13 PMretasker says:
Ah, but that is the whole point of using a switching regulator. I don't know what is actually in your $1.00 USB convertor, but a properly designed switching regulator would allow you to transfer power efficiently and get more current out than you put in by operating with a higher input voltage. That is, with the proper switching regulator design including an input storage capacitor, you could use a higher voltage stepper motor to generate 12V for your convertor which would then step the voltage down to what you need. You see a tiny bit of that at the higher input voltages where you get slightly more current out than you are putting in. However, as it is now, you are barely getting enough voltage to make the switching regulator necessary. Based on the output voltages you list you would actually now be better off with the linear regulator - especially at the lower speeds. I suggest you try the old stepper motor with the higher voltage output with your new switching regulator. If you do this, make sure you don't get so much voltage that you destroy the switching regulator - I don't know what the input rating is although it is at least 15V if it is designed to operate in a car and probably more. Or try your new stepper motor setup with your older linear regulator. Additionally, you could get more efficiency by using schottky diodes for your rectifiers since they have a lower voltage drop than the 1N4001 diodes (0.4V vs 0.7V each)
Jul 8, 2010. 10:04 PMian_eo says:
why not use a 5v regulator to regulate the voltage to 5v. its not efficient having some voltage changes during changes in speed. if you can get it to more than 5v without a regulator thats not a problem.
Jul 8, 2010. 5:10 PMalzie says:
The motorcycle people had this figured out Long ago. They use permanent magnet alternators very much like a 3 phase stepper. What they do to regulate voltage, is short the windings with SCR's before the bridge rectifier. The SCR's are only triggered when the system voltage becomes high enough. Shorting the windings is counter intuitive, but when you analyze the situation, a perfect inductor driven with a voltage source (induction) consumes No Real power. In reality the windings do have a small resistance, which consumes small power when shorted. Also, core losses go way down. Unloaded, core losses are way up. Your pancake stepper is Loaded with this! A hybrid stepper would do you way better. I ride a bent with a 3W 6V shimano hub gen up front. Had to make my own spokes to fit. That should be an ibble! I use this for LED lighting. Ive been thinking of pulling the above trick for charging.
Jul 8, 2010. 1:06 PMrickpaulos says:
There are some very nice front Hub Generators available. Not for cheap however. Schmidt ($300) & Shimano ($150) (plus wheel building labor, rim, spokes, etc if needed) make very good models that put out a nominal 6 volts/ 3 watts at about 20 kph. The huge advantage of these hub generators is you eliminate the mechanical drag you get with any tire drive system. The only drag is the electro magnetic drag which is porportional to the power consumption of the device using the power. Another huge avantage of hub generators is you can use them all night long. Most high end bicycle lighting systems have battery life listed in just a couple of hours. When on, the drag is pretty much undetectable by the rider. 3 watts is far less than what we typically put out when pedaling. Oh, yeah, they are silent too. Adding a Zenor diode would protect against over voltage. That's what most generator specific head lights use to keep the bulbs from burning out at higher speeds. The "Switching Voltage regulator" in the schematic should do the same thing. Adding a large electrolytic capactor to the full wave bridge circuit would help smooth out the 'dc' (direct current). Bicycle generators put out AC or alternating current. Seen on an oscilliscope, it looks like a sine wave, swinging from positive to negative. The frequency depends on the speed of the bicycle and the number of sets of windings in the generator. The full wave bridge circut changes the AC to pulsating DC, Looks like a bunch of Gateway Arches (st louis), lined up end to end. The Capacitor smooths that out quite a bit. The size of the capacitor would depend on the expected power output of the circuit. More power consumption, and you need a larger capacitor. Some commercial generator specific lights use capacitors to keep the tail light lit when at a stop sign or traffic light. I have one that keeps a small LED bulb going in the head lamp when stopped for a minute or so.
Jul 7, 2010. 5:46 AMmartinator says:
That is a HUGE generator!!!! Why not use a bicycle hub generator? Google: bicycle hub generator
Jul 8, 2010. 12:12 PMNyckname says:
Take a look at the "Contactless dynamo powering bike safety lights" featured last year. Magnets attach to the spokes, coils on the frame, and you don't lose energy to the friction of the generator pressing against the wheel. Always wore me out when I was a kid.
Jul 7, 2010. 4:04 AMuberwald says:
Couldn't you get higher RPMs on the motor by making the wheel smaller? just glancing at it, I think the bicycle wheel is probably around 4-6x the circumference of your generator wheel, so every rotation of the bike wheel rotates the motor that many times. If you made the wheel half the size, you'd get twice the RPMs on the generator motor and be able to get your output at lower speeds... right?
Jul 8, 2010. 11:25 AMuberwald says:
I was thinking much more along the lines of 8-12 mph being a "normal speed" for anything but a road bike, and so you should seek to optimize your generator for those speeds, with the lower efficiency at higher speeds not making too much difference since you'll still be getting "enough." Though you might be able to generate some sort of "overvoltage" circuit to run some other process or charge a backup set of batteries at the higher voltages so that you're not just converting it all? hmmm... where's an EE when you need one?
1-40 of 47next »

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!
89
Followers
10
Author:dbc1218
I enjoy building things more than actually using them.