Battery Free, USB Powered LED Torch

 by trialex
Featured
WHAT?

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

WHY?

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.

HOW?

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.

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 = ------------
0.030

= 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)
torch.sch183 KB

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

Here

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.
1-40 of 205Next »
XOIIO says: Mar 22, 2012. 10:20 PM
Here's a tip, digikey has them for a shitload cheaper, I ordered 18 for 57 bucks, from altronics it's 69.30
trialex (author) in reply to XOIIOMar 23, 2012. 12:35 AM
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. 

http://www.altronics.com.au/index.asp?area=item&id=R4974.


eelco_g says: Mar 21, 2008. 8:42 AM
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.
a480641 in reply to eelco_gFeb 9, 2012. 2:05 PM
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
DELETED_evilfrogie in reply to eelco_gNov 23, 2008. 1:48 AM
(removed by author or community request)
davidprosser in reply to DELETED_evilfrogieDec 16, 2008. 9:20 AM
by the way, you can only draw 500ma from a USB port if you use extra circuittry that "asks" for 500ma, not 100ma. Anyway I think if you try and use too much, you'll get a popup on your screen saying "USB is taking too much current" or something. I had that message once - nothing happened, i just unplugged a homemade usb device!
trialex (author) in reply to davidprosserDec 16, 2008. 12:52 PM
True in theory you need to properly ask for the full 500mA, but a lot of USB ports will supply 500mA from the get-go.
DYLEGO in reply to trialexJan 11, 2009. 10:20 AM
Hey Trialex, I was wondering how exactly you wire a four-lead tact switch, as in what does each lead do? Where is the NO and C?
raykholo in reply to DYLEGOFeb 26, 2009. 1:38 PM
real easy -- the 2 next to each other are already wired together, on both sides... if u only need 2 contacts, just use any 2 diagonal from each other
trialex (author) in reply to raykholoFeb 26, 2009. 4:57 PM
rak - nice; good rule of thumb.
raykholo in reply to trialexFeb 26, 2009. 7:17 PM
thanks -- thats the easiest way to remember it
davidprosser in reply to trialexDec 17, 2008. 9:29 AM
what determines which usb ports will?
raykholo in reply to davidprosserMar 19, 2009. 7:54 PM
think it depends on the age of the computer as theyre built to accomodate newer devices... but i really dont know and thats just a guess
eelco_g in reply to DELETED_evilfrogieNov 23, 2008. 11:03 AM
I didn't know that ;) I like to play it safe when it comes to my computer.

Resistorvalues are in Ohm, not amps. To calculate the required resistor: USB voltage is 5 volts, max current is 0.5A. If you've got a lot of capacitors in parallel, and they're fully discharged, they behave like a short circuit, or resistance of 0 ohm (not really true, but to keep things simple...)
Resistance=Voltage/current, so to limit current to 0.5A the resistor would be 5V/0.5A = 10 ohm.

Time (in seconds) to fully charge the capacitors then would be 5*R*C, where R is the 10 ohm resistor, and C is the total capacitance in farads. 5 is not the voltage, just a constant.
Taran606 says: Aug 19, 2010. 12:15 PM
What resistor would I use if I used a 25v resistor with 100 nf or uf
trialex (author) in reply to Taran606Aug 19, 2010. 2:55 PM
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).
Taran606 in reply to trialexAug 19, 2010. 9:34 PM
I meant to say capacitor not resistor I'm using a 25v cap with 100 uf or nf
lasermaster3531 in reply to Taran606Feb 6, 2011. 6:43 PM
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.
reywolf says: Apr 17, 2010. 9:12 AM
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.
trialex (author) in reply to reywolfApr 17, 2010. 12:53 PM
Ah but it takes so little effort to google!

The middle two pins of the usb A connector are for D+ and D-.
Wesley666 says: May 24, 2009. 4:46 PM
ha this is great but mine is better. I bought 100 polyacene batteries off electronics goldmine. They are rechargeable, half the size of the capacitor in this instructable, they will each, when charged, power an LED for an hour, and they take no time at all to charge. They are rated for 3.3v only so a few other components have to be added, but they work really well!
NoHighResGames in reply to Wesley666Mar 25, 2010. 7:48 AM
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.
Wesley666 in reply to NoHighResGamesMar 26, 2010. 12:41 PM
Ya, but you can make it an effective model...
Wesley666 in reply to NoHighResGamesMar 25, 2010. 2:44 PM
Yes, I get that, just pointing out that Polyacene batteries last longer, about an hour on one charge. 

However, just follow me on this thought, if you mixed this Instructable, with Polyacene Batteries, with this Instructable:

http://www.instructables.com/id/High-Efficiency-9-volt-LED-Flashlight-with-Touch-c/

You would have one wicked flashlight! 
NoHighResGames says: Mar 25, 2010. 7:54 AM
Thanks for this proof of concept. I was just reading up on resistors and wondered if this were possible.
XOIIO says: Mar 21, 2010. 2:30 AM
Where did you get a capacitor like that? it really looks like  battery.
trialex (author) in reply to XOIIOMar 21, 2010. 3:15 AM
Did you check out step 1? It's got a link to Altronics, which is where I got mine from.


Articas says: Mar 20, 2010. 9:57 PM
wtf the picture has a battery
trialex (author) in reply to ArticasMar 21, 2010. 1:52 AM
wtf I don't think you read the description
KT Gadget in reply to ArticasMar 20, 2010. 11:04 PM
 Look at the parts list, that "battery" is a capacitor.
Sunil-VU3SUA says: Jan 10, 2010. 5:01 AM
The idea and concept is great. This design can be made in many ways. With a larger Capacitor and a different charging point, not necessary USB charging.Some add-on would further improve the design.
Like Charging Indicator.
The Power level left in Capacitor , as when being used .
The concept of not using batteries justifies the project.
Thanks for this wonderful project.

mitpatterson says: Jan 5, 2010. 2:27 PM
Another idea would be to put a smaller, lower power led to indicate "charging" or you  could just use the smae one, but then taht might slow the charging, hence why i suggested using slower post one. and you could probaly just put the additional LED in parrelle to the capacitor with a small resistor too.
Gamernotnerd says: Aug 4, 2009. 8:09 PM
Does anyone have that LED array calculator? I am making a similar project.
Gamernotnerd in reply to GamernotnerdAug 4, 2009. 8:33 PM
I found it, but this is a great project, good job!
lemminggenocide says: Oct 25, 2008. 10:47 PM
usb batteries......................................................do i need to say anything else?
raykholo in reply to lemminggenocideMar 19, 2009. 7:56 PM
u mean like the AA and AAA batteries recharged from a usb port? huge!
davidprosser in reply to lemminggenocideDec 16, 2008. 9:22 AM
they take ages to charge..............
computerwiz_222 says: Jan 28, 2008. 8:16 AM
How about adding a joule thief to the circuit this would allow you to run the LED longer off of the CAP
raykholo in reply to computerwiz_222Jan 10, 2009. 9:24 PM
the way i see it, the joule theif steps up the voltage from a "dead" battery -- by taking aout lots of electricity at once here, we would want to step down the voltage, which would be the exact opposite of the joule thief-- ideally replacing the resistor and making its output the 3 volts needed to run the led. thats how to conserve the power, and i think it involves a transformer any ideas on how ?
fallenspirit123 in reply to computerwiz_222Oct 26, 2008. 5:57 PM
WowThanks for the tip I was actually thinking about that when you brung it up!!!
1-40 of 205Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!