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...

The LEDs arrive

5mm & 3mm LEDs

(I should've included something for scale in those pics. Nevermind.)

Plan of frame and LEDsOnce 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:
  • 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 need to do some testing to see how this fits in with Ohms law so I understand it a bit better - but not right now, as there's more hands-on stuff first!

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:
Breadboard close-up

...here it is lit up:
Bare LEDs

...with 80gsm paper as a diffuser:
Using 80gsm paper as a diffuser

...and with 160gsm card as a diffuser:
Using 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.

Nevermore!


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:
  1. 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...
  2. An on/off switch, which connects to...
  3. A linear fader, to control brightness of...
  4. A bunch of LEDs, set up to give an even glow through the canvas (some subtle pattern would be acceptable though).
So, onto the known unknowns:
  • 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...
I think this a fair example of too many choices, not enough knowledge, so I decided that the only way to get started was to just buy some LEDs and fit everything else around that.

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

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.
Mitre joints

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):
Lined up

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:
Workshop

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.
The Clamps

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

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.
Painted

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:
  1. 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).
  2. 20101026_001.jpg
  3. 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.
  4. 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...

Monday 6 December 2010

You gets what you pays for

I bought three webcams matching one I already had, for a total of £16 off eBay.

The good new is they all work.

The bad news is that they can't all work at the same time, as they saturate the entire USB bandwidth.

I now know that cheap webcams send a raw stream of video frames over the wire, whereas more expensive ones compress it (with mjpeg or similar) before sending it over the wire. I now also need to buy more webcams - but more expensive ones.

Bugger.