Battery Free, USB Powered LED Torch





A rechargeable, battery-free LED torch which gets it's power from USB and stores it in a capacitor.


I reckon USB stuff is cool. I also reckon LED stuff is cool. I HATE paying for batteries. I love my shaky torch. Putting all this together, I thought I'd make a LED torch, simmilar in form to those keychain types, which stores it's power in a capacitor. The capacitor is charged from the USB port.


This is only a "proof of concept", and is intended to show it works. I doubt it will have the best performace, but that's not the point. I think I should be able to do it fairly cheaply, for about the cost of a keychain coin-cell LED light.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Gather Parts

Here are the parts I used. The link directs to the product page where I purchased them to give you an idea if you are unsure what you are looking for (or to see how much/if I got ripped off). All prices in AU$ at time of posting.

Obviously substitute parts and suppliers where applicable for your location. I think you can get pretty much everything here from SparkFun, but I listed Altronics as they are a good source for parts in Australia.

- 1 x 5.5V 1F Supercap - Altronics - $4.25
- 1 x 5mm Blue High Intensity LED - LSDiodes $0.75ish depending on exchange rate
- 1 x 18 Ohm resistor - DSE - $0.04
- 1 x mini push button toggle switch - SparkFun - $0.30ish
- 1 x Verobaord, 310mm x 95mm, 0.1" spacing - DSE - $7.99 - OK I didn't actually buy this, I used leftover scraps, but this is what you'd buy. You only need a small bit, so I'll count 1/10th of the price (even that's way too much)

So total is AU$6.13. Definately acheived goal.

Yes the capacitor looks like a coin-cell battery. Trust me, I'm not trying to cheat, that's what it looks like.

Step 2: Resistor Sizing

Last step I called out an 18 Ohm resistor - why 18 Ohm?

The product page gives the following MAXIMUM specs for the LED. You could use the NOMINAL specs, but hey, I live on the edge. The effect of using the maximum values will be to increase brightness at the expense of life. AS the life is quoted at 100,000 hours, even a 50% decrease would still be 5.7 years continuous use - I'll take that deal.

Vmax = 4.5 V
Imax = 30 mA (=30/1000 = 0.03A)

The capacitor can supply 5.5V, but since we will be feeding it from a USB port the voltage should only reach 5.0V.

The purpose of a resistor in series with an LED is to limit current, preventing thermal runaway. Thermal runaway occurs when an LED draws too much current, therefore heating up a little, which in turn causes a little bit more current to be drawn, which causes an increase in temperature in a viscous cycle.

So to determine the size of the resistor, we use Ohm's Law, where:

I = current
R = resistance
V = voltage

V= I x R

This can be arranged for each of the terms, here we want to know the resistor required for the maximum voltage and current.

R = V / I

The 'left over' voltage after the LED has taken it's 4.5V need to be paired with a 30mA current (this is how I think of it anyways - other people teach/learn it different ways).

(5.0 - 4.5)
R = ------------

= 16.66666666666...6

(Instructables won't let me format that properly - hopefully you get the idea, (5.0-4.5) is the nominator, 0.030 the denominator)

Resistor come in standard values... rounded UP (I'm turning soft!) the next standard values is... you guessed it... 18 Ohm.

Of course you could have just used a calculator like the one here

The colour code for an 18 Ohm resistor is brown-grey-black

Step 3: Concept Sketch

Here's my concept sketch, done one boring work day.

The capacitor is charged by putting it in across the power source, in this case the USB port. The capacitor stores the charge, acting as a low capacity battery.

The capacitor is then used as the power source for the LED. When it discharges, the LED lights.

Step 4: Circuit Diagram

Heres the Eagle file... pretty damn compicated hey... (actual .sch attached)

Step 5: Layout Sketch

So I've claimed that this would be USB powered - but where's a USB connector? While looking around for a male type A PCB connector, I thought it'd be pretty cool to copy those "integrated plug" connector used on mini SD type cards.

I looked up the USB specification here, which is a fairly boring document. The specification though shows that the contacts on a male connector are 1mm wide, with about 2.5mm between them, and the carrier is 2mm thick. Hmmm... pretty much the same dimensions as the strips on the veroboard. Awesome.

Doing a quick test showed that but cutting a section of four strips, and inserting it into a USB port, I got 5V on the two out rails. Bam.

I'm not a massive fan of veroboard, because I think you have to spend too much timecutting traces and installing jumpers. I prefer to use matrix board where each pad is isolated, but the USB-compatability is too convienient here.

Using the schematic I layed out the components on a peice of board. Because the bottom terminal of the capacitor is exposed, I'm putting some of the jumpers on the underside.

Here is my combined layout/circuit board sketch. Dotted components on other side. I tried various vero/stripboard CAD software, but nothing worked the way I liked. Any suggestions - let me know in the comments.

Step 6: Performance Calculations

At this stage lets look at how we'd expect the torch to perform. Performance wasn't part of my goals, so this is for interests sake only. Of course if the performance of the torch were critical, these calc's would have been done as a first step to determine the feasability of the project, and the component values.

My discalimer: I'm a scructural, not electrical engineer, so I may have made multiple mistakes here. Please let me know if I did!

The energy stored in a charged capacitor is given by

E = 0.5 x C x V2

where C is the capacitance and V is the voltage


E = 0.5 x 1 x 52
= 12.5 joule

1 joule is one watt of power for one second.
We've got 12.5 joules to play with, that would get us 1 watt for 12.5 seconds

Ignoring the internal resistance of the capacitor (not insignificant, in reality will affect the result), the LED/resistor is consuming power

P = V x I
= 5.0 x 0.03
= 0.15 watt

Therefore 12.5 joule will power 0.15 watt for 12.5/0.15 = 83.3333333 seconds.

Hmmm... not exactly inspiring stuff, and will get worse when you included the capacitor internal resistance... but OK to muck around with. Of course the LED will continue to give off light as the voltage fades, gaining a bit of time, but it won't be as bright. On the plus side, recharges are (virtually) free and quick.

AHA! But how quick?

The charging profile of a capacitor is generally calculated in terms of a "time constant". The capacitor will increase in charge by 63.8% every time constant. The attached images shows the cycles and came from here

eg. Assuming starting at zero, after one time constant, charge will be 63.8% of max, after two will be 63.2% + 63.2% of remaining 36.8% = 86.5% and so on, 3 time constants = 95%, 4 = 98%, 5 = 99+%.

the time constant is given by

s = R x C

Here the internal resistance of the capacitor is 30 ohms.

s = 30 x 1 = 30 seconds

So it will take 2.5 minutes or so to be pretty much fully charged... and for an 83.3 second use time thats a 35% duty cycle...

Step 7: Assembling It

Soldering all the components... not much to say. None of the components are particularly heat sensitive... maybe the LED. Bend the LED 90 degrees so it sits against the board pointing forward.

I ended up putting the link from the LED to the negative terminal of the capacitor on the top side, rather than the bottom as I had on the sketch in step 5.

Step 8: Finished!

Insert into USB port. Wait 2 or so minutes. Remove and push button to use!

It's never going to photograph great, but as you can see it throws off a useful light. In comparison to my brand-name keychain light I'd say it gives maybe 50% of the spread, but greater brightness in the centre of the beam. Maybe using a wide-angle LED would be a good idea.

Endurance wise: I left it to charge for a long time, then quickly removed it and timed how long it ran for. Of course there is no 'cut off', it just gets dimmer, but it definately retains a useful amount of brightness for well over 2 minutes.

TO DO: A custom housing. I'm thinking clear expoxy or silicon. Epoxy I would need to relocate/raise the button, silicon I'd need to look at how much it would gum it up.

In conclusion, a fun project with a pretty cool result.

The Instructables Book Contest

Participated in the
The Instructables Book Contest

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    201 Discussions


    4 years ago

    this is very nice.... can we add a 1 watt led instead of 5 mm led??

    Robert PowellArticas

    Reply 5 years ago on Introduction

    it's not a battery, its a flat super capacitor, you can get super capacitors even thinner if you look hard enough!


    5 years ago

    nice, i will just add some (a rondom lot) of capacitors in paralel to it and see where it gets me using a lm regulator and a dvd drive laser :D btw thanks for al the calculations and stuff, realy helped me out with another projectof mine


    7 years ago on Introduction

    Here's a tip, digikey has them for a shitload cheaper, I ordered 18 for 57 bucks, from altronics it's 69.30

    1 reply

    Reply 7 years ago on Introduction

    Ah yes, but things have changed in the last 5 AND A HALF YEARS since I posted this instructable! (Wow, I feel old...) . In general, super capacitor prices have come down, but this altronics are still charging about the same for the 1F version. It doesn't surprise me that digikey has them cheaper - in general component prices in the US are cheaper than in Australia.

    Altronics now has a 220F (yep, 220 times larger!) for $23.


    11 years ago on Introduction

    This is my first comment, but I think I should warn you guys about this: You CAN use more capacitor in parallel to increase the charge but that also means you'll be putting the internal resistance of the caps in parallel. Meaning you'll draw more current out of your USB port. To be safe, put a resistor between the positive lead and the capacitor to limit the charging current to about 100mA. Charging will take longer, but thats a minor inconvenience compared to frying your mother board.

    1 reply

    Reply 7 years ago on Introduction

    might be a good idea to keep it around 400 mA just to be safe.
    would also be cool if someone made one with a potentiometer to change the brightness or to select b/tw using 1-5 leds


    Reply 9 years ago on Introduction

    Sorry mate but your question doesn't make sense. Can you try re-phrasing it? Resistors aren't (typically) rated for a "voltage" - normally they have a resistance (like 100 ohms) and a power rating (eg 1/4 watt).


    Reply 9 years ago on Introduction

    I meant to say capacitor not resistor I'm using a 25v cap with 100 uf or nf

    that cap wont work for more than a second. uF is Micro-Farads or millionths of a Farad. you need a one-Farad supercapacitor. you won't find one of those in a radio shack any time soon, I'm pretty sure. you could also use a bigger cap like 5-15 Farads for longer-lasting light.


    9 years ago on Step 8

    what do the other two usb wires do? i just need to know which wire does what, i already know what to use it for. I'm too lazy to test.

    1 reply

    Reply 9 years ago on Step 8

    Ah but it takes so little effort to google!

    The middle two pins of the usb A connector are for D+ and D-.

    Thanks for this proof of concept. I was just reading up on resistors and wondered if this were possible.

    That's not better, that's completely different. Did you read the description? This wasn't supposed to be an effective model. It's a proof of concept.


    Reply 9 years ago on Introduction

    Did you check out step 1? It's got a link to Altronics, which is where I got mine from.