SMT Tools: LED Boards
Got another couple of SMT boards today. They aren't all that exciting as circuits go, but boy will they give you practice placing and soldering parts:
I built the first of these guys while testing the control circuits for some wearable LED blinkers that would be built into costumes for a Christmas parade. The general goal was to have lots of white LEDs twinkling like snowflakes. To make sure the patterns looked right, I needed lots of LEDs, and this was a convenient way to get them all in one place.
Since then, I've found it convenient to have batches of LEDs pre-wired and ready to go. There's always a need to make something blink.
Here's the layout diagram for a small board:
Reading from left to right we have:
- a 1 megohm pull-down resistor
- a 2N7002 N-channel mosfet
- a 1 kilohm current-limiting resistor
- an LED
and the same going the opposite way on the other side.
The circuit diagram is pretty repetitive:
In each case, the 1M resistor holds the mosfet's gate low when there's no signal. Since a mosfet's gate impedance is on the order to 10-100 megohms, even a token path to ground is enough to drain any residual charge. (Fun fact: the gates of discrete mosfets are such good capacitors that if you connect a wire to one, set its state, then disconnect the wire, the gate will hold its state for as long as several days)
The high impedance also makes the circuit easy to drive. There are of times when it would be handy to attach an LED to something, but you can't afford the 10-20mA an LED would consume if you connected it directly to that point. This setup only draws a few microamps (almost all of it going through the 1M resistor), so you can drop it in almost anywhere.
If that's not enough, here's a version that's twice as big:
It was handy for me because I had 16 output channels to watch while I was working on the costumes.
The 2N7002:
The new part here is the 2N7002 N-channel mosfet.
It's a nice little device: It's rated for 200-300mA of continuous current, but can handle pulses up to an amp if they're short enough and the supply voltage is high enough (10v or higher). The voltage necessary to turn it on is about 2v, and its ON resistance is less than 10 ohms if you use a gate voltage of 4v or more.
None of those specs is particularly amazing (I have mid-power mosfets rated for 3A of continuous current whose ON resistance is about 1/20th of an ohm), but it's a good first choice for "I want a switch and don't want to futz around with bipolar transistors, just gimme a mosfet" applications.
Best of all, it's cheap.. as in, "costs less than the resistor next to it" cheap. Resistors usually go for about 2c each, and this link from Mouser has 2N7002s at $1.70 per hundred. If you want to splurge, you can blow $4.00 and get 250 of them.
Construction:
At that price, each LED circuit costs about 10c. The smaller board will cost you about 80c ($1.50 if you buy your parts in small quantities) and the big one will cost twice that.
As I said at the start though, building these will give you plenty of practice handling and soldering the parts. The smaller board has 48 components, the larger one 96.
Given the sheer amount of repetition, the ease of testing, and the fact that most of the components only cost a couple of cents, I'd say the larger board is a good starter project.
Artwork:
Here are 600dpi images of the traces, as seen from the top:
and in PDF format if you want higher resolution:
If you plan to do toner transfer, you'll want the flipped versions:
- Flipped PNG of the 2x4 board
- Flipped PDF of the 2x4 board
- Flipped PNG of the 2x8 board
- Flipped PDF of the 2x8 board
If you want to play with the circuits themselves, here are the .brd and .sch files for both versions:
and here's everything wrapped up in a zipfile or zipped tarfile:
Components:
- 1M resistors: Xicom 1M 0805 thick-film SMT resistors (1% tolerance) 4c each, $2.00/100
- 1k resistors: Xicom 1k 0805 thick-film SMT resistors (1% tolerance) 4c each, $2.00/100
- 2N7002 mosfets: NXP N-channel mosfets 5c each, $1.70/100
- LEDs:
- Dialight 0805 Red LEDs 10c each, $6.00/100
- Dialight 0805 Yellow LEDs 9c each, $6.10/100
- Dialight 0805 Green LEDs 9c each, $5.80/100
- Everlight 0805 Blue LEDs 25c each, $14.20/100
- VCC 0805 White LEDs 39c each, $28.20/100
License:
As usual, all files in the tarfile or zipfile are available under the terms of the TAPR Open Hardware License Version 1.0.