Introduction: Lego USB Charger

.................................................................................................................................................

This project describes how to build a hand crank Lego usb charger with parts from a Mindstorms kit and Radio Shack.

The charger uses a Lego motor to generate current which is passed through a voltage regulator and then to the usb port.

It would make a great stocking stuffer for anyone who uses devices that charge via usb. If you are getting it for a person who likes to build their own things, just collect all the parts put them in a ziplock, and put that in the stocking. Then when they want to build it you can show them this instructable.


Step 1: Building the Lego Base

Follow the photos for details on how to build the base.


Some of the photos include the wired up electronics, ill explain that in the next step.

Step 2: The Electronics

The 3 parts needed for this step are:
- Short lego wire, cut the block piece off one end and strip about a centimeter of the wire off
- +5V Fixed-Voltage Regulator 7805
- Female usb port

Plug the lego wire onto the motor as shown in the photos, test out which wire is positive by connecting the stripped wires to a multimeter and cranking the motor. Wire the positive end to pin 1 (input) on the voltage regulator. Wire pin 3 (output) to pin 1 on the usb port (if staring into the socket while the contacts on the inside are facing down, pin one is the farthest to the left). Wire pin 4 on the usb socket, and pin 2 on the voltage regulator to the negative lego wire.

Step 3: Ad Ons

It is easy to create devices (ex: flashlights) that can be plugged into the motor or the usb port to provide power. For this project I enabled collaboration, so if anyone has any ideas for ad ons let me know and you can put them in.

Comments

author
sonicboom999 (author)2015-06-21

ok could you make a video on this and show a top view of the connections between the regulatorss and the usb port it help

author
Raptor Z (author)2011-11-04

in my opinion its not worth it, as the motor costs 20-30 dollars, and you can buy a small dynamo hand charger for 3 dollars.

author
Brickman (author)2010-07-16

do you know which side of the lego wire is positive and negative? O and Radioshack carries the 7805 voltage regulator, i got it pretty easily.

author
dannystaple (author)Brickman2011-08-06

Since the motor can be turned either way, I think the polarity can change. The next question is would this still work if a tiny rectifier bridge was added - like this one - http://www.squidoo.com/freeforming-a-diode-h-bridge. It would drop a few volts mind...

author
paperairplanecreator (author)2010-08-21

thats.... thats INGENIOUS!!!!!

author
harry88 (author)2010-06-23

its so simple yet so good i dont no what to rate him

author
Fingers0110 (author)2009-08-03

Couldn't u use another motor attached to the crank in order to charge something instead of standing there for an hour cranking? Would work just as well, instead of tiring your arm out =)

author
Ganoderma (author)Fingers01102010-05-13

 Then what is the use?
Find a power source, convert it to movement and then convert it back to power?
All you're gonna do is lose power on the way (goes to heat by friction). 

I've seen projects on instructables to charge USB devices using normal batteries (AA, AAA, 9V). Might be a better solution if you don't want to do some effort for the power. 

This is a nice thing to have with you if you run out of power without any batteries or other power source nearby. 

author
farmall (author)2009-10-16

could this thing be used as a usb driven motor?
so i can control my legos?

author
TarzanJr (author)2009-08-18

no lol

author
Chromatica (author)2009-08-13

did this all come out of one set of legos

author
Impendingdoom (author)2006-12-20

where do you get the lego engine? Ive never seen one that actualy puts out electricity

author
merijnvw (author)Impendingdoom2009-06-28

it's just an electromotor. Normally you put electricity in it and rotation comes out, but he uses it as rotation in -> electricity out

author

It is the standard lego motor that comes in all mindstorms kits.

author
merijnvw (author)2009-06-28

genious!

author
wsx587 (author)2009-06-25

do you need a voltage regulator

author
Otaconmgs (author)2008-02-11

Where did you get the voltage regulator?

author
merijnvw (author)Otaconmgs2009-06-19

just search for voltage regulator 7805 and order it

author
mikemike (author)2007-07-15

the worst of it is trying to find the right piece of junk to get the +5 volt regulator....i don't have a radio shack round ere'....:(....but still beautiful idea and i love it :D

author
Antpopper (author)mikemike2008-03-03

Every old computer power supply and most other digital electronics will have 7805 regulator in them.

author
Derin (author)Antpopper2009-05-31

And UPS's.Definitely those.

author
pballpro44 (author)2009-05-03

can i use a different voltage regulator

author
DemeGeek (author)2009-02-07

What Mindstrom kit did you use?

author
Davidl3 (author)DemeGeek2009-04-28

He used RCX parts.

author
Scrubsfan1234 (author)2008-12-30

i actually dissected a flashlight that uses the crank (not as remarkable, sure, but,) and soldered the same USB stick you showed to make a charger for my iPod.

author
leevonk (author)2007-01-08

cool, I wonder if the pulsing of the charge isn't bad for the battery though. I don't know why it would be, but not sure.. also, if you ever rotate the thing in the wrong direction, wouldn't that create an oposite polarity of voltage which would harm the 7805 regulator (and maybe the ipod) ?

author

I understand your concern, however the voltage regulator IC should regulate the power enough to prevent it creating a problem. regarding polarity, assuming the motor output was DC, a diode could be used to ensure that the battery only receives the correct polarity. however if you wanted to charge the battery regardless of the direction of the motor turning, you could add a full wave rectifier, this would have to be implemented before the regulator chip. the downside of this, is that due to the diodes a small amount of voltage would be lost. depending on the motor, a better gear ratio could be used to make up for this. as long as the ratio doesn't make turning the crank too difficult. cheers

author

oops I just posted a comment on the whole diode thing, then scrolled down and saw your comment :D

author
geeklord (author)2008-11-19

I might be wrong but i recommend putting a diode (1n4001 worked for me) on the negative output of the generator, just in case it is cranked backwards.

author
mcdonn123 (author)2008-02-10

You could replace the usb port with a 12v plug (the ones inside people's houses). Then you could charge your lego 'smart brick' or even your psp!

author

to charge any device via usb you simply need a usb charger cable

they arent hard to find google shopping gave me this in a second or so for a psp

http://www.google.com/products?q=psp%20usb%20charger&ie=UTF-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&um=1&sa=N&tab=wf

author
Antpopper (author)mcdonn1232008-03-03

You would also have to crank really fast for about an hour and use a 12v, 7812 voltage regulator to charge a smart brick with rechargables.

author
TheWelfareWarrior (author)2008-08-11

someone mentioned that you need to filter the chopped up DC current in order to not harm the 7805. You could easily put a capacitor in there...

author
blackspike2710 (author)2008-07-15

what no one realizes is without a built in battery you would have to constantly turn the crank to charge the device, and because many items take several hours to fully charge this would only be useful in emergency situations.

author

You could just have a friend crank it while you plugged in a cellphone or something.

author
casperdixie (author)2008-07-15

I made this with a 1/10 gear ratio, you barely have to crank to generate a more than 5v charge.

author
leet hacker (author)2008-04-07

for all you who are wondering where to get a motor, if you haven't yet, try http://www.bricklink.com/. they have just about every single lego brick and piece ever made.

author
Tetranitrate (author)crapflinger2008-02-29

Cool, thanks for letting me know.

author
cspannos (author)2008-02-27

Ah, ebay to the rescue... Do you have a model number or a suggestion on to which one I should buy??

http://search.ebay.com/search/search.dll?from=R40&_trksid=m37&satitle=Lego+motor&category0=

author
cspannos (author)2008-02-27

What an awesome project! Do you have the specs as far as voltage and current that this puts out? Also, where can I get that Lego motor? I searched for Mindstorms kits with no luck... Thanks!

author
rac (author)2008-02-25

is there a way to get the motor seperate

author
mcdonn123 (author)2008-02-10

That would be great for when your power goes out and your ipod's battery is dead!

author
davidprosser (author)2008-01-21

If anyone needs the 5v regulator for this instructable or any others you can get it by clicking the link at the bottom, but only if you live in the UK. It's 59p and is 1A max. They also do 12 & 15v ones if you need them.Click here

author
john_martin1944 (author)2007-11-01

Many thanks for this. I will use a screen capture and it will be on UK educational web site: http://www.electronicsinschools.org/ However, I am writing a whole series of articles, and the will all be placed on the site together in probably Summer 2008.
Thanks
John

author
john_martin1944 (author)2007-10-31

Hi
I am writing notes for a UK educational web site. I want to include a link to https://www.instructables.com/id/Lego-USB-Charger/ and also a couple of graphics from the article, to give readers a feel for what it is about. Can you email me to confirm permission to use your graphics for this non-commercial purpose?
Thanks
John

author

One of the cooler features of this site is the ability to decide what type of license you want your projects to be posted under. As you can see in the "Info" box on the right hand side of this page, this project has an "Attribution - Non Commercial - Share Alike" license. That means that you can use whatever text or graphics from this article you like, as long as you do not make money off it and cite the source. You do not even need to ask my permission, but if you do end up using it can you send me a link to the site you use it on. I am always curious to see where my randomness ends up.

author
minus273degrees (author)2007-10-06

do you have a product code for the motor

author
wraith001 (author)2006-12-21

NICE! This rocks!

author
jeowf (author)wraith0012007-05-08

use a solar anal instead is a great idear

About This Instructable

86,784views

166favorites

License:

Bio: Working wireless-ly.
More by Tetranitrate:Laser Glow BoardE-BolaLaser Tattoo
Add instructable to: