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.

Power your Arduino/AVR with a Hand-Cranked Battery

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!

 
Remove these adsRemove these ads by Signing Up
 

Step 1Necessary Items

Necessary Items
«
  • motor-battery-switch.jpg
  • some-other-motors.jpg

To make this work, you'll need either:
 

  1. DC motor (I've tried about 3 or 4 different kinds of DC motors for this and I got them all out of old CD/DVD players so you don't have to pay for one if you cannibalize).
  2. small 3.3 or whatever capacity battery (I've used several small lithiums for my testing)
  3. diode (a small 1N4148 will do)
  4. something to make a crank with (rod & hot glue, rubber band, etc)

or you can buy a hand-cranked flashlight from ebay for a buck and change.  This method is prefereable for a couple of reasons.  First, the cranking mechanism is far superior to probably anything you're going to make and will really torque up when you crank it, delivering energy to the battery and straight on through to the powered device.  Second, you'll have a tiny motor and small battery already included for probably what you'd end up paying for the battery alone, so splurge and buy one or two (I bought two) hand-cranked flashlights.  You'll be glad you did.

For both versions you'll need the standard tools: wire, wire snips, soldering iron, etc.
 

« Previous StepDownload PDFView All StepsNext Step »
13 comments
Jul 17, 2011. 4:20 AMbapos says:
how many volts does the generator give? btw its nice
Jan 18, 2011. 9:50 AMbricmic says:
Arduino is here:
http://www.arduino.cc/en/Main/Boards
http://www.freeduino.org/index.html
http://www.instructables.com/id/RGB-LED-Tutorial-using-an-Arduino-RGBL/
My Arduino:
http://micbric.free.fr/arduino.html

Enjoy
Jan 16, 2011. 12:48 PMtwighahn says:
waht is a Arduino or avr?
Jan 16, 2011. 11:49 PMsimonjtaylor212 says:
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!
Jan 17, 2011. 9:23 AMtristantech says:
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.

Jan 17, 2011. 11:15 AMsimonjtaylor212 says:
Yeah... I was kidding...
Jan 14, 2011. 8:01 AMAndyGadget says:
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.
Jan 16, 2011. 11:18 AMHelder4u says:
put in a small, cheap, ceramic capacitor in parallel too, and it will take care oft the sharper spikes :)
Jan 16, 2011. 8:56 AMsteveastrouk says:
I've often wondered if the handcrank genny, supercap and switching reg would be better for this kind of duty.

Steve
Jan 15, 2011. 9:35 AMwiefix says:
Nice article

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!
63
Followers
22
Author:nevdull(The Bold Scientist)
Gian is the VP Research & Development at Open Design Strategies and holds a BA in Molecular/Cellular Biology and an MS in Computer Science. He has a collection of 8-bit microcontrollers and a room fu...
more »