Monday, March 9, 2009

Dot Matrix Business Card

f my flashlight business card isn't advanced enough for you, then how about one with a full graphical display on it that can be customised for a number of scrolling messages? This one could be made in quantity for about a $5 parts cost, and it is only a little bit more expensive if you are making just a few. I won't kid you that this is an easy design to make - don't try it unless you have very good soldering skills and some experience in electronics. Some of the components here are smaller than grains of rice, so it would be useful to have good eyesight as well! Like the flashlight card, it is more of a proof of concept than something you can churn out in quantity, but it might at least give you an idea of what can be achieved, and where business cards might be in just a few years time.


Matrix11.jpg
loading...
500x324 : FR4T0M5FKD1LQRF (0)
i

step 1About The Design

This is the sort of card that would suit a high-tech business, or those who were involved in high-value contracts, where an innovative image is all important. I would never suggest that it would replace a conventional business card, but to impress that all-important prospective client, there would be more than a few companies who would be happy to spend just an extra few dollars. Like the flashlight card, the aim is to design a business card that people just can't throw away!

The design is really quite simple for what it does - a matrix of 5x15 LEDs, connected to a single-chip "PIC"microcontroller. A handful of resistors and switches complete the design (Schematic available below). By keeping the microcontroller in sleep mode unless the buttons are pressed, the battery can last several years, and still allow a couple of thousand displays of your messages.
Matrix11.jpg
loading...
500x324 : FR4T0M5FKD1LQRF (0)
i
Matrix11.jpg

step 2What you need

  • One CR2032 battery (I got them for about 16 cents on ebay when I bought 100)

  • One CR2032 battery holder (I used part 18-3780 from www.rapidonline.com. This costs around 14 cents in quantities of 100 - these are a common type of holder that you should be able to find at places like www.mouser.com if you are on the other side of the Atlantic to me!)

  • One PIC16F57 (Order code 1556188 from www.farnell.com - These cost 66 cents each in 100+ quantities - again, you can find them at www.mouser.com)

  • Four surface mount switches (Part 78-1130 from www.rapidonline.com at 20 cents each)

  • Some miscellaneous resistors and capacitors in an "0805" surface-mount package - you will need 5x100 ohm resistors, 2x10k resistors, 1x47k resistor, 1x47p capacitor, and 1x100n capacitor - any of the suppliers mentioned above do these, and they cost almost nothing!

  • 75x "0603" LEDS - as bright as possible, and as cheap as possible! I used item 72-8742 at 6 cents each from Rapid, but again, you should be able to get them at other suppliers. In quantity, you can get these down to about 3 cents each.

  • Some double-sided foam adhesive tape that is slightly thicker than the battery you are using - mine was 4.5mm thick)

  • A printed circuit board (PCB) for the project - instructions for producing your own are beyond the scope of this article, but you may have some success with the iron-on or photographic technique (my preferred technique). You can find instructions for making your own printed circuit boards elsewhere on instructables and other sites. The PCB layout is reproduced below in a PDF file if you want to try yourself.

You will also need a soldering iron (plus solder), a cutting knife, some spray adhesive, and a way of printing the front of your card - you can use a colour laser or inkjet. I printed on OHP transparency film. You will also need a way of programming the PIC microcontroller. I use the PICKit2 which is part number 579-PG164120 from www.mouser.com, and available at around $35. A strip of 5x0.1 inch PCB pins (such as 22-0510 from Rapid) can be pushed into the programmer to act as an interface with the board.
Matrix1.JPG
loading...
500x323 : F4IWZ8VFKD1LQTD (0)
i
Matrix1.JPG

step 3Soldering Starts!

Solder the components onto the board, starting with the smallest first (Refer to photos). A pair of tweezers is useful here - by putting a blob of solder on a pad, and then re-melting it whilst positioning the resistors or capacitors with the tweezers, you can neatly add these small components. It doesn't matter which way around these components go, but it does for the PIC (which should read with the writing the correct way up as shown in these photos), and also the LEDs must be put around the right way. It is harder to tell with the LEDs which way around they should go - the top connection should be the positive (or "anode"). You can tell by consulting the datasheet for the LED - one of the two leads will usually be marked in some way. An easier way is sometimes to test one of them by attaching a couple of wires to a small 1.5V battery, and then touching the leads on the ends of the LEDs - if it is the right way around, you should see a glow, but if using a single 1.5V battery, it will be extremely faint, so you will have to observe carefully. Again, a tutorial on soldering is not within the scope of this article - I did warn you that this isn't a beginner's project, so don't make this one your first venture into surface mount soldering! Note that the LEDs are only initially soldered on their bottom lead - we will use some wires later to connect their top leads.
Matrix2.JPG
loading...
500x321 : FRUBQO7FKD1LQTC (0)
i
Matrix2.JPGMatrixLayout.jpg

step 4An ad-hoc double sided board

Lay some fine strips of 'invisible tape' down along the vertical PCB traces next to each column of LEDs - this will stop the wires we are about to solder touching them.

Next, solder some fine tinned copper wire along the top of each row of LEDs, to reach all the way to the resistor as in the photo. Note that you will need only four wires - the top one will not be needed if you use the PCB layout given in this article, as it uses a PCB trace to connect the components.
Matrix3.JPG
loading...
500x325 : FV92AWIFKD1LQT6 (0)
i

step 5Programming

The next step is to put the dialling program into the chip. If you have bought the PIC Kit 2 programmer, it has everything you need with it. Download the MatrixCode.zip file from this page, unzip it and put it in a directory somewhere on your computer - then from within the MPLAB IDE, go to the "Project" menu, select "Open", and navigate to the "main.asm" file. Change the stored messages (around line 115 in the code) to your contact details rather than mine(!) - the messages are spelt out with a series of '1's and '0's - a '1' means the LED is on. If you look closely, you will see my name spelt out with '1's. (You might need to turn your head 90 degrees to see this!) You have complete freedom to make your own characters or symbols, so you could have, for example, a simple animation of a car moving to the left if you wanted. Note that there are four messages - one for each button - you will need to specify the length of each message by stating the number of columns it takes up in the 'MSG1LEN,MSG2LEN...' definitions.

Go to the "Project" menu again, and select "Quickbuild" - check there are no errors, and you are then ready to program. I use a simple technique of inserting a broken-off strip of 5 pins from a strip of 0.1" header pins into the programmer, and then just touching the 5 pins whilst programming. This is a little fiddly, but as the erase or program cycle only takes a second or so, it is quite manageable. The arrow on the end pin of the programmer should align with the top pin of the PCB (NOT AS SHOWN IN THIS PHOTO - WHOOPS!) If you are experimenting, it is well worth soldering the strip of 5 pins onto the board until you have finished your changes. When you are ready to program, you will have to use the separate 'PICKIT2' utility supplied with the programmer, as for some reason, the MPLAB IDE doesn't support programming of the PIC16F57 directly. To do this, you need to specifify the family of PICs ("baseline"), and the particular part (16F57), before loading the Hex file created in the previous step, and then finally programming the chip. If all is successful, you should be able to insert the battery (positive side down), and press one of the buttons to see your message scroll along!
Matrix4.JPG
loading...
500x393 : FLD7SICFKD1LQT5 (0)
i
Matrix4.JPG

step 6Finishing Off

To encapsulate the prototype, I applied some double sided foam tape to the board, turned it upside down, and then cut the excess off. I then reverse-printed the graphic overlay on an OHP transparency sheet. By turning the sheet over, and attaching a white printer label, you can get the clear icons on the transparency to show up white. I also attached a sheet of thick polypropylene (made as a cover for binding documents) to the overlay using some adhesive spray before attaching to the front of the card and trimming off the excess. If you wanted to use the same graphic as mine, it is also available on this page as a PDF.
Matrix5.JPG
loading...
500x378 : FVPFFDTFKD1LQT4 (0)
i
Matrix5.JPGMatrix6.JPGMatrix7.JPGMatrix8.JPGMatrix9.JPG

step 7The Finished Product

The finished product is shown below. You can now relax, content that you have the world's most advanced business card (at least until I make my next one which will have a colour OLED screen!)
Matrix11.jpg
loading...
500x324 : FR4T0M5FKD1LQRF (0)
i

step 8The Future

If I produced these commercially, I would probably change a couple of things. Firstly I would change the CR2032 cell to a CR2016 as this is thinner, and then embed it within a space cut in the PCB. By using lower-profile components, the thickness of the card could probably be reduced to about 1/8th of an inch (rather than the current 1/4 inch). By using some of the new thin-film batteries, it might even be possible to make a flexible card, albeit at a higher price. A professionally-printed overlay and a custom die-cut replacement for the foam tape would see the cards assembled much more quickly, and look a little slicker too. Of course the PCBs would be manufactured professionally as well, and populated by a 'pick and place' robot to allow assembly to be sped up even further.

Make your own Lightning Globe

This instructable will show you how to make one of those cool lightning globes with about $5.00 worth of parts.

WARNING Just like my Monitor Hack instructable, this makes use of some very high voltage. It could be potentially lethal, especially if you are standing in a puddle of water.

Watch the video for the overview:

LightningBulbStill.png
loading...
560x420 : F8NSYH5F7DWNZOK (0)
i

step 1Supplies

Here's a list of supplies I used:

1. Large, clear light bulb
Not just any light bulb will work. It must be one that has been gas filled.

Typically, anything 60 watts or higher should work. Lower wattage bulbs typically have a vaccuum. 60 watt and higher usually have an argon nitrogen mix, which lights up nicely!

I found a 5 inch 60 watt bulb for about $2.49 at the hardware store.

2. Aluminum screen, painted black
The aluminum screen will be our ground to attract the high voltage.

Instead of shelling out a bunch of money for an entire roll of aluminum screening, just look for an HVAC vent with some right on the back.

I found the one below at the hardware store for about $1.50, and the screen was already painted black!

3. A cheap black plastic pot
This is going to be the holder for the globe. Since it will be used at night, it doesn't need to look pretty.

I found a black plastic pot for about $0.79, you guessed it, at the hardware store.

4. A high voltage power source
This is what makes the magic happen.

I used the same monitor as the one in my Electric Fence Monitor Hack Video

With people upgrading to LCDs like crazy these days, you can easily get a 15" monitor from someone for free. You might even talk them into paying you for removing the hideous eyesore from their humble abode.

WARNING: Color monitors put out close to 30,000 volts. This voltage can harm you and quite possibly kill you, depending on the depth of the water you are standing in or how old your pacemaker batteries are. Seriously, though, be careful.
SuppliesBulb.jpg
loading...
out:{ top: 0.08579088471849866, left: 0.3125, width: 0.4125, height: 0.09919571045576407, text:"Large clear light bulb. 60 watts or higher. This one is 5 inches in diameter, the biggest I could find at the hardware store." }
i
SuppliesBulb.jpgSuppliesAirVent.jpgSuppliesAirVentBack.jpgSuppliesPlasticPot.jpgSuppliesMonitor.jpg

step 2Prep the screen

The screen is our grounding plane for the high voltage. It will be wrapped around as much of the light bulb as possible, without causing unintended arcs.

Trim the screen as needed. You should be able to fold the screen in half and still be able to fit the bulb inside tightly.

The screen I used was painted black, so I scraped off some paint with an Exacto knife. Since we need to attach a wire to it, pick a good spot on the edge of the screen - right in the center.

You'll need to scrape paint off of both sides of the screen and on both edges.

Then fold the screen in half, poke the stripped ground wire through both pieces, wrap it around the edge as tightly as you can get it, and then solder the ground wire to itself.

Since the screen is aluminum, you won't be able to solder the wire directly to it. That's why it's very important to tighten the ground wire around the screen. Use pliers if you have to.
PrepScreen1.jpg
loading...
560x373 : FU0F5WAF7DWO004 (1)
i
PrepScreen1.jpgPrepScreen2.jpgPrepScreen3.jpgPrepScreen3a.jpgPrepScreen4.jpgPrepScreen5.jpg

step 3Fit the screen over the bulb

Next, I trimmed the screen on the top and bottom to be sure the high voltage wouldn't arc unintentionally.

Then I made several cuts evenly spaced around the screen so I could fold it to the shape of the globe.

To make it easier, you can make one cut the proper length, remove the bulb, then make the rest of the cuts. At that point, simply bend the screen flaps down and then slide the bulb inside. That will make it nice and tight.

Do the same for the top, and then use your hands to gently squeeze the screen around the globe so it's form-fitted.
FitScreen1.jpg
loading...
560x373 : FBGRC1BF7DWO01B (1)
i
FitScreen1.jpgFitScreen2.jpgFitScreen3.jpgFitScreen4.jpgFitScreen5.jpgFitScreen6.jpg

step 4Prep the stand

To prep the stand (cheap plastic pot), cut out a hole in the top the size of the light bulb stem. You'll also need to cut a slot on one side to allow the high voltage wire to pass through.

Cut a small hole in the side of the pot about four inches off the ground. The high voltage wire will pass through here, so it must be high enough that it won't try to arc to ground.

Feed the wire through the side hole, then through the top and attach it to the bulb.

Now slide the bulb into the pot and it's done.

It's not pretty to look at, and it's not supposed to be. It's for use at night.
PrepStand1.jpg
loading...
out:{ top: 0.36193029490616624, left: 0.3482142857142857, width: 0.3767857142857143, height: 0.32439678284182305, text:"Cut a hole for the bulb stem. This pot was the perfect size." }
i
PrepStand1.jpgPrepStand2.jpgPrepStand3.jpgPrepStand4.jpgPrepStand5.jpg

step 5Test it out!

Now it's time to hook it up and test it out!

Refer to the Monitor Hack Instructable for instructions on how to connect the aluminum wire to the anode. Be sure to pay attention to the part where you carefully discharge the high voltage!

The ground wire needs to go to ground, of course. The easiest place to attach the ground wire to is the inside of the monitor at the same place the high voltage was discharged to.

Turn it on and test it out!

If everything is nice and tight, there should be a great lightning show around all sides of the globe.

If it's arcing to the stem, you'll need to turn it off and trim the screen on the bottom some more.

Watch the video to see it in action:

TurnItOn1.jpg
loading...
560x373 : F3BQ06HF7DWO05V (1)
i
TurnItOn1.jpgTurnItOn2.jpgTurnItOn3.jpgTurnItOn3a.jpgTurnItOn4.jpg