Picture of Power your Arduino/AVR with a Hand-Cranked Battery
If you've ever wanted to power your Arduino or AVR from a battery for development testing (batteries have different power delivery qualities than, say, transformed AC or even a regulated wall wart in DC) testing but were tired of going through batteries (Hey, I admit I've sucked batteries dry in hours because of a slipped-up design before I caught it). 

Maybe you want to take your design and project mobile, for instance, up in the mountains away from your vehicle and any plug in outlets.  It might be useful to have a battery powered device whose batteries you never change, but just crank up once a week.  Or better yet, maybe you want to take your Arduino to the coffee shop and not have to look for an outlet or USB connection.  Well, here's a quick little way to power your development board from a battery that never (well, you know) runs out.

I've taken a hand-crank-powered flashlight and hax0red it to power my AVR and Arduino development boards.  The battery lasts for a good long time and if you crank it a few times before you use it you'll find you'll get a solid 3.5V out of it (depending on your battery).  Plenty enough to power an AVR ATtiny, ATmega, and ATxmega, as well as other 3.3V devices like the STM32F ARM MCU indefinitely!

Nice, just picked up a few of these keychains from DX with this exact goal, powering an arduino! :D Thanks for the tut, will definitely come in handy
nevdull (author)  suicidal.banana1 year ago
Hey, thanks for the comment. Good luck with your project!
Great project! Actually all your instructables are impressive brainchilds, good explained and with many different branches investigations, I like them!
nevdull (author)  andrea biffi2 years ago

Thank you so much for the kind words! It's great to know someone is enjoying them.

bapos4 years ago
how many volts does the generator give? btw its nice
nevdull (author)  bapos3 years ago
hi bapos,

Thanks! I got almost 4 volts consistently.

bricmic4 years ago
Arduino is here:
My Arduino:

twighahn4 years ago
waht is a Arduino or avr?
nevdull (author)  twighahn4 years ago
They're both popular microcontrollers used in DIY projects. AVR is the product line from Atmel while the Arduino is a readily accessible hardware and software programming/development board for an AVR.
great.... but here's an idea. Why not connect another DC motor to one of the digital out pins, and use that to drive the crank? That way it can run for ever!
Sorry, but that does not work. This is a common beginner mistake... The law of conservation of energy says that you cannot get more energy (electricity) out of a machine that the amount of energy you put in. The generator will have to create enough energy to charge the battery and have enough leftover to run a motor to power the entire circuit, which is impossible.

In fact, the motor will not even be able to turn the generator because the load on it will resist movement of the shaft, and this will cause the motor to attempt to draw more power out of the battery and generator, creating a runaway loop.

If you try this, the battery will drain faster than without a motor. Make sure you don't attach a motor directly to a digital pin, always use a transistor.

Yeah... I was kidding...
AndyGadget4 years ago
Neat, but it would be well worthwhile adding a couple of capacitors (100uF and 0.1uF) across the battery. These won't affect the charging, but the output from the generator circuit is going to be incredibly spiky, and the capacitors will go some way to suppressing this. For a bit more protection, a 4.7V zener diode wouldn't go amiss there too.
put in a small, cheap, ceramic capacitor in parallel too, and it will take care oft the sharper spikes :)
nevdull (author)  AndyGadget4 years ago
Heya AndyGadget,

Thanks a lot for the comments. I think you're right about the capacitors and will work them into the next design. I added a 3.3V zener in the schematic but it never translated into the case version. Maybe 4.7V is better for overvolt protection?

Thanks again for the improvements.
I've often wondered if the handcrank genny, supercap and switching reg would be better for this kind of duty.

wiefix4 years ago
Nice article