Microcontrolled Nametag

This tutorial will show you how to add an ATtiny85 microcontroller to your name tag, giving you the ability to get a variety of different lighting effects, as well as turn the name tag off at the push of a button. For using the ATtiny13a, please see this older post.

Step 1. Make the New Circuit in EAGLE

This is not a step you actually have to do, as we provide you with an .stl file for printing, but we'll briefly touch on this step so you know how to make and modify this circuit.  Figure 1 shows a picture of the ATtiny name tag schematic and board files that we made in EAGLE.  For more info on using EAGLE, see our previous "Making an LED Name Tag" tutorial. The circuit consists of four sets of 15 LEDs, each connected to a different output pin from the ATtiny.  There is also a pushbutton switch between the ATtiny microcontroller RESET and GND pins to enable switching between various programs in the microcontroller.  If you'd like to mess around with the design of this circuit, feel free to download the necessary files here: attiny_nametag_eaglefiles.zip.

 

Figure 1. Schematic (left) and Layout (Right) of the ATtiny Name Tag.

Figure 1. Schematic (left) and Layout (Right) of the ATtiny Name Tag.

Step 2.  Convert the Circuit to an .stl File and print.

Following the steps outlined in our "Making an LED Name Tag" tutorial, we converted the .brd file to a png image, and converted this image to an .svg file in Inkscape. Finally, we imported this .svg file into Blender for extrusion in the Z-direction.  The basic circuit came out fine, but when we  tried to add more virtual blocks of material to hold the pushbutton and ATtiny in place, we had some issues with all the layers showing up in Cura.  So instead, we imported the .svg file into Autodesk 123D, another free 3D modeling tool.  Figure 2 shows the 2D circuit image and the final 3D model of the circuit in Autodesk.  After joining the circuit to the extra 1-mm-thick blocks of material we added, we exported the final 3D model as an .stl file, and loaded it into Cura to convert it into gcode using our Cura printing profile.   The ATtiny nametag image, autodesk file, and .stl file are available for download here:  attiny_nametag_modelfiles.zip.

Figure 2. PNG image (Left) and Autodesk 3D Model (Right) of the ATtiny circuit.

Figure 2. PNG image (Left) and Autodesk 3D Model (Right) of the ATtiny circuit.

Step 3. Program your ATtiny 85.

In order to program the ATtiny85, we started by following this very helpful instructable that will show you how to (1) setup the Arduino as the programmer, (2) wire up the Arduino to the ATtiny85 for programming, and (3) program the ATtiny85 through Codebender.  We found it was not necessary to use the recommended capacitor, so give it a try anyway if you don't have a capacitor laying around.

After following the instructable, you should now know how to use the embedded codebender code below to program your ATtiny 85 with the nametag sketch. 

Step 4.  Assemble the ATtiny name tag.

Figure 3 shows the printed name tag circuit before and after adding the LEDs, battery connector, pushbutton, and ATtiny.  The video below shows the operation of the name tag.  Similar to the process outlined in this video, we used a solder reflow station to slightly melt the Electrifi filament, allowing us to stick down the components in a matter of minutes.    After connecting a lithium ion polymer batter to the circuit, you should be able to cycle through the various effects by pushing down the switch.  We added a tiny amount of silver paste down on each ATtiny pad with an needle to improve the electrical contact with the chip and get more consistent performance.  Be careful not to make an electrical connection between the two pads when adding silver paste.  Here is a list of the things you will need to make this name tag:

1. An ATtiny85 microcontroller.

2. A pushbutton switch.

3. Silver paste, product number 12640. (This is the best one we can find)

You'll also need the same items that were used for the LED name tag project:

1. Some 3528 LEDs.

2. An Adheisve-backed Pin.

3.  A connector or some solid-core wire to connect to a battery.

4. A lithium polymer rechargeable battery.  Different batteries seem to come with different connectors, so you can either stick wire into the connector and tape it together, or cutoff the existing connector, strip the ends of the wire, solder a new connector onto the end, and cover the connection with some heat shrink tubing or electrical tape.

5. Wire strippers

6. A solder reflow station.

7. Tweezers.

8. Tape. 

9. A multimeter is also handy but optional.

10. Foam board

Figure 3. Left: Image of the printed ATtiny nametag circuit.  Note the thicker pads for holding the pushbutton and ATtiny in place.  Right:  Image of final assembled ATtiny nametag.

Figure 3. Left: Image of the printed ATtiny nametag circuit. Note the thicker pads for holding the pushbutton and ATtiny in place. Right: Image of final assembled ATtiny nametag.