It's great what you can learn with some time and t'interweb - when finding time between band, family, and the rest of real life, that is...
This LED wizard (and generally informative site) helped me realise that "forward voltage" is the same as "voltage" as generally used, but relating to correctly wired in components, rather than what's coming out of the power source.
My previous tests were under-driving the LEDs not by current, but by voltage: A 12V source isn't enough to power four 3.3V LEDs - obviously 4x3.3 = 13.2V.
So, rather than four LEDs in series, I can have up to three. Three seems too few though, so after trying some different combinations, I've decided each column will have three 5mm in series, in parallel with two 3mm LEDs in series. This will add up to 420mA, which at 12V is 5.04W.
After a bit more reading I realised that just slinging a potentiometer between the power source and the LEDs wouldn't work (safely at least), as regular potentiometers won't handle power around 5 watts.
Some helpful people on the sci.electronics.basics Usenet group answered my query about what to use instead, and the consensus was to use pulse width modulation - a PWM circuit based on the 555 timer.
Although the intention with the light frame was to do something without that level of complication, it's just accelerating my schedule a bit, as PWM is something I know I'll need for other projects I have in mind.
Here's what I've got so far:
That schematic is missing quite a few important details - like values of the capacitors, diodes, and resistors surrounding the 555 chip. Oh, and there'll be 3 times the number of LEDs.
I've not yet learnt exactly why this circuit should work - specifically how the current flows around the diodes - but the basic principle is that the discrete components around the 555 tell it how long to turn pin 3 on for (the pulse width), with the variable resistor (R3) allowing manual modification of that duration.
Pin 3 goes to the base (B) of a high power resistor, telling it when to allow current to flow between its collector (C) and emitter (E) - acting as a switch between the power and the LEDs.
That gives us: a small (safe) current through the pot, making the 555 turn the transistor on & off, which varies the power going through the LEDs - controlling their brightness. Hurrah!
Now I need to satisfy myself that I understand all the circuit, and figure out the values for those discrete components to get the timing I want, then I can figure out a list of what I need to buy (AKA Bill Of Materials).
There's a possibility that I'll revisit the LED/resistor configuration to see if I can make it more efficient with a higher voltage source, but it's too late in the evening to think about that now :-)
Showing posts with label hack. Show all posts
Showing posts with label hack. Show all posts
Wednesday, 30 March 2011
Monday, 27 December 2010
Light Canvas - LEDs 2: Choosing and Testing
After shopping around a bit online, I bought 100 3mm and 100 5mm warm white diffuse LEDs - buying in bulk for this project and the next. As well as size, the two models differ in viewing/beam angle, and brightness. Two types to experiment with is manageable, and should let me play with brightness/diffusion.
One hundred pounds worth of LEDs don't come in a big box...


(I should've included something for scale in those pics. Nevermind.)
Once I had the frame put together, it occurred to me that three or four LEDs could be put serially in little columns on perfboard, each with their own resistor and connection to the power supply - something like the plan on the right.
Lets remove some unknowns: I want it bright, and nine columns of four LEDs should be pretty good, I reckon.
I've already got wires, resistors, and a breadboard so now I can do some testing.
For prototyping, I attached a couple of crocodile clips to a mains adaptor at it's lowest setting and ran that through a breadboard with one 5mm LED and the recommended resistor, to check that the basics were working, then bumped up the voltage to 12, as I plan to use in the final piece. That worked fine, so I put four LEDs in series and, using an online LED resistor calculator, found a (lower) value of resistor, accommodating the greater voltage drop caused by the additional LEDs (assuming a 2V drop per LED).
If I'm to learn anything here, I ought to figure the resistor stuff out myself, rather than using the online calculator. For the moment though, I think I get the gist:
I was quite happy with the 5mm LEDs in a row of four, so did the same with the 3mm LEDs. Here's the breadboard:

...here it is lit up:

...with 80gsm paper as a diffuser:

...and with 160gsm card as a diffuser:

Of course, those pictures don't really convey the quality of the light - although they're HDR (taken with Bless N900) so they're not utterly terrible.
I'll need to play around a bit to see if I can/should use lower value resistors and get the LEDs brighter - they could take a higher current, but I need to verify that the voltages and currents used aren't going to be a fire risk, and look into whether higher current might give a significantly shorter LED lifespan - although this is probably a good point to find a canvas (or some similar looking material) to go on the front...
One hundred pounds worth of LEDs don't come in a big box...
(I should've included something for scale in those pics. Nevermind.)
Lets remove some unknowns: I want it bright, and nine columns of four LEDs should be pretty good, I reckon.
I've already got wires, resistors, and a breadboard so now I can do some testing.
For prototyping, I attached a couple of crocodile clips to a mains adaptor at it's lowest setting and ran that through a breadboard with one 5mm LED and the recommended resistor, to check that the basics were working, then bumped up the voltage to 12, as I plan to use in the final piece. That worked fine, so I put four LEDs in series and, using an online LED resistor calculator, found a (lower) value of resistor, accommodating the greater voltage drop caused by the additional LEDs (assuming a 2V drop per LED).
If I'm to learn anything here, I ought to figure the resistor stuff out myself, rather than using the online calculator. For the moment though, I think I get the gist:
- Power source provides a electrical potential difference,
- generation of light by each LED is an electrical load, which uses some of that potential, hence
- voltage drop gives a lower effective voltage over the circuit, hence
- a lower value resistor is necessary.
I was quite happy with the 5mm LEDs in a row of four, so did the same with the 3mm LEDs. Here's the breadboard:
...here it is lit up:
...with 80gsm paper as a diffuser:
...and with 160gsm card as a diffuser:
Of course, those pictures don't really convey the quality of the light - although they're HDR (taken with Bless N900) so they're not utterly terrible.
I'll need to play around a bit to see if I can/should use lower value resistors and get the LEDs brighter - they could take a higher current, but I need to verify that the voltages and currents used aren't going to be a fire risk, and look into whether higher current might give a significantly shorter LED lifespan - although this is probably a good point to find a canvas (or some similar looking material) to go on the front...
Light Canvas - LEDs 1: Known Unknowns
This is the more complicated part; or at least I have little idea what I'm doing when it comes to electronics. I know basic theory (e.g. Ohms law), and what various components do, but - so far - no practical experience beyond giving glowing red eyes to a toy raven.

The electronics for this shouldn't be too tricky though, as it's all simple analog circuits, with no digital components. The plan is to have:
Time passing whilst I researched LEDs will be represented by this post ending, and a new one starting...
The electronics for this shouldn't be too tricky though, as it's all simple analog circuits, with no digital components. The plan is to have:
- A mains power source (I don't want the hassle and inefficiency of batteries), connected to an input socket in the frame, which itself connects to...
- An on/off switch, which connects to...
- A linear fader, to control brightness of...
- A bunch of LEDs, set up to give an even glow through the canvas (some subtle pattern would be acceptable though).
- What voltage and amperage should the power source provide? It'll depend on the number and specification of LEDs it'll be supplying - which I don't know yet. I'm thinking 12V is a fair place to start, and conveniently I've got a 3.5 - 12V adapter to prototype with.
- I've got a little toggle switch of the type I want to use, but don't know what power it's rated for.
- The fader could be a potentiometer - or might need to be something else, if the electrical load is too high for a pot. I bought a mixed bag of pots to play around with a while back, and it contained just one linear fader - hopefully it'll be suitable.
- LEDs - this is the biggest area of uncertainty. There are lots of LEDs with differering specifications available, and I don't know which type and how many I'm going to need for the canvas to glow like I want it to. Aspects to consider:
- Brightness (enough to shine through the canvas)
- Viewing angle (wider is better, as I want an even glow, not visible bright points)
- Number of LEDs to use (more at lower brightness would give more even illumination)
- Clear vs diffuse finish (at last, an easy one - diffuse)
- Configuration - rows and columns, random distribution, or some other pattern?
- How to choose and wire up the right combination of LEDs?
- Cost - no need to start taking out loans for a hobby...
Time passing whilst I researched LEDs will be represented by this post ending, and a new one starting...
Wednesday, 22 December 2010
Light Canvas - Frame
I tend to think about all the different aspect of a project (in this case, frame, LEDs, canvas) at roughly the same time, gradually figuring out how each part will work, independently and together with the others. That would be an utter nightmare to write up though, so these posts will mainly focus on one aspect at a time. Let's start with the easy one: the frame
This is relatively simple - I know the dimensions of the canvas print (135x45cm), so I know I want my canvas to be 135x15cm.
I little research suggests that getting a pre-built frame this size will be difficult or expensive. To be honest, most of the research was watching YouTube videos on stretching canvases. Woodworking is kinda fun, so I elected to make this myself.
After a while trying to think of a way to add a bevel to regular planks (to make sure the canvas doesn't have lumps due to the frame, I realised I could simply use a simple beveled architrave.
The frame is simply two horizontal and two vertical pieces, glued and nailed together with mitre joints, plus vertical braces inside for strength.

Cutting a mitre joint with a plastic mitre box wasn't very accurate - I ended up sanding down the cuts, and hoping that glue would make up for where the surfaces didn't quite meet up.

Positioning the braces was one of those things where it was totally unclear how many were needed and how to space them, until the four frame pieces were laid out on the floor, at which point it was obvious that two braces at thirds of the width would be ideal. The braces are at the back of the frame, so the shouldn't stop light bouncing around the inside of the frame too much - I want the whole canvas to glow, rather than having several compartments. Here's all the pieces laid out (but not glued or nailed):

Also in that pic is a large piece of fibreboard from the Ikea clearance corner - thanks to H and Bic for letting me bring it back with us :-) This will be cut down to size, have the LEDs mounted on, and will be screwed onto the back of the frame.
In keeping with family tradition, my place is full of tools and materials in progress during all this:

Ideally I would've used some corner clamps to ensure that the frame was square when I glued the pieces together - but I don't have any, and the local DIY shop didn't have any. Instead, I lined up the pieces to a roofing square that I bought for the cupboard project, PVA glued them all, then nailed them all (with pre-drilled holes). The braces needed a bit of encouragement to keep them in the right place whilst waiting for the glue to cure.

Cut the fibreboard to size, and that's pretty much all the woodworking finished!


This is all about white light, so the frame gets painted with a matt white, to reflect as much light as possible, without specular highlights.

I'll need to make some modifications to fit electronics, but the frame is done for now.
This is relatively simple - I know the dimensions of the canvas print (135x45cm), so I know I want my canvas to be 135x15cm.
I little research suggests that getting a pre-built frame this size will be difficult or expensive. To be honest, most of the research was watching YouTube videos on stretching canvases. Woodworking is kinda fun, so I elected to make this myself.
After a while trying to think of a way to add a bevel to regular planks (to make sure the canvas doesn't have lumps due to the frame, I realised I could simply use a simple beveled architrave.
The frame is simply two horizontal and two vertical pieces, glued and nailed together with mitre joints, plus vertical braces inside for strength.
Cutting a mitre joint with a plastic mitre box wasn't very accurate - I ended up sanding down the cuts, and hoping that glue would make up for where the surfaces didn't quite meet up.
Positioning the braces was one of those things where it was totally unclear how many were needed and how to space them, until the four frame pieces were laid out on the floor, at which point it was obvious that two braces at thirds of the width would be ideal. The braces are at the back of the frame, so the shouldn't stop light bouncing around the inside of the frame too much - I want the whole canvas to glow, rather than having several compartments. Here's all the pieces laid out (but not glued or nailed):
Also in that pic is a large piece of fibreboard from the Ikea clearance corner - thanks to H and Bic for letting me bring it back with us :-) This will be cut down to size, have the LEDs mounted on, and will be screwed onto the back of the frame.
In keeping with family tradition, my place is full of tools and materials in progress during all this:
Ideally I would've used some corner clamps to ensure that the frame was square when I glued the pieces together - but I don't have any, and the local DIY shop didn't have any. Instead, I lined up the pieces to a roofing square that I bought for the cupboard project, PVA glued them all, then nailed them all (with pre-drilled holes). The braces needed a bit of encouragement to keep them in the right place whilst waiting for the glue to cure.
Cut the fibreboard to size, and that's pretty much all the woodworking finished!
This is all about white light, so the frame gets painted with a matt white, to reflect as much light as possible, without specular highlights.
I'll need to make some modifications to fit electronics, but the frame is done for now.
Light Canvas
Another new project! This one started around October, and is a result of three different threads coming together:
The predominantly black canvas immediately suggested a short, wide white canvas emitting white light. I think it could look very cool, and give a nice diffuse light to the room through a rough canvas texture. Including a fader will allow me to control how bright it is.
The basic design is:
From that design, there are a lot of details to work out, starting with:
Stay tuned for answers to all these questions and more...
- I bought a canvas print for my bedroom, a rather nice false-coloured X-ray photo of flowers (probably based on Nick Veasly's work).
- I need a decent bedside light to replace the rather inelegant broken anglepoise I use at the moment - and preferably something dimmable so I have the option to introduce myself to the day gently.
- My guitar lights project (more on that later) has been stalled for around two years, and I could do with a simple LED project to learn and gain some experience with electronics.
The predominantly black canvas immediately suggested a short, wide white canvas emitting white light. I think it could look very cool, and give a nice diffuse light to the room through a rough canvas texture. Including a fader will allow me to control how bright it is.
The basic design is:
- A wooden frame the same width as the print, but a third of the height. I was vaguely thinking about the rule of thirds when I chose that height, but mainly it was a good fit for the space between the bedhead and print.
- White LEDs in the frame, with on/off and fader controls, and power supplied via an external switched adaptor (e.g. a typical wall-wart). The LEDs might need some sort of diffuser so the canvas emits light reasonably uniformly.
- A white canvas stretched over the frame. Obviously, this needs to be thin enough to let the LED light through, but be thick enough to be durable. It should have some texture, for the aesthetic.
From that design, there are a lot of details to work out, starting with:
- What LEDs do I need? How many? How should I arrange them? What rating power supply will they need? How do I wire it all up?
- Do I really want canvas - what other options are there?
- How do I get the frame? Buy pre-made or construct it myself?
Stay tuned for answers to all these questions and more...
Labels:
canvas,
DIY,
electronics,
hack,
LED,
lightcanvas,
print
Subscribe to:
Posts (Atom)