Persistence of Vision Wand
by amandaghassaei in Circuits > Arduino
247555 Views, 608 Favorites, 0 Comments
Persistence of Vision Wand
Persistence of Vision (POV) Wands are a fun way to create interesting long exposure photographs and light displays. The wand consists of a single row of LEDs controlled by an Arduino Uno. When the wand is turned on it appears to be flickering in a random pattern, but if you move it quickly back and forth, you will see text or an image appear. This wand project is incredibly customizable, I've included all CAD files, firmware, build documentation, and schematics. Feel free to choose your own color LEDs, write personalized messages, and maybe even add something new to the project!
Parts list:
(1x) Arduino Uno REV 3 Radioshack #276-128
(20x) Amber Super-bright LED Indicator Radioshack #55050630
(1x) Arduino Proto Shield Radioshack #276-140
(1x) 9V Alkaline Battery Radioshack #23-866
(1x) Heavy-Duty 9V Snap Connectors Radioshack #270-324
(20x) 1/4 watt resistors (sample calculation below)
from the specs of the LEDs I used:
"Continuous forward current: 25mA"
"Forward voltage: 3V"
using the following relationship:
V(volts) = I(amps) * R(ohms)
rearranged to:
R = V / I
we can calculate the resistance as follows:
voltage across resistor = 5V - 3V = 2V
2V / 0.025A = 80ohms
I used 100 ohm resistors so that the LEDs wouldn't be operating at their maximum ratings. Check the datasheet of the LEDs you use to calculate these values.
I've attaching a fritzing document with a breadboard and schematic view of the circuit (and included them above) for reference.
Parts list:
(1x) Arduino Uno REV 3 Radioshack #276-128
(20x) Amber Super-bright LED Indicator Radioshack #55050630
(1x) Arduino Proto Shield Radioshack #276-140
(1x) 9V Alkaline Battery Radioshack #23-866
(1x) Heavy-Duty 9V Snap Connectors Radioshack #270-324
(20x) 1/4 watt resistors (sample calculation below)
from the specs of the LEDs I used:
"Continuous forward current: 25mA"
"Forward voltage: 3V"
using the following relationship:
V(volts) = I(amps) * R(ohms)
rearranged to:
R = V / I
we can calculate the resistance as follows:
voltage across resistor = 5V - 3V = 2V
2V / 0.025A = 80ohms
I used 100 ohm resistors so that the LEDs wouldn't be operating at their maximum ratings. Check the datasheet of the LEDs you use to calculate these values.
I've attaching a fritzing document with a breadboard and schematic view of the circuit (and included them above) for reference.
Downloads
Build a Support for Your Wand
The first thing you'll want to do is make a mount for your project. I laser cut a piece of acrylic into a wand shape, but you could use a piece of plywood, cardboard, or plastic. I've attached the adobe illustrator and eps files of the wand and correct hole 0.1" hole spacing for the LEDs and resistors; even if you don't have a laser cutter, these files still might be useful to print out as a template. Drill out the holes with a drill and a small drill bit. The rectangular holes at the bottom of the wand will be used for mounting a 9 volt battery.
Add Resistors
Thread the leads of all 20 resistors through their holes on the wand mount.
Solder Resistors
Each resistor is connected to an LED on one side and ground on the other. Bend one of the leads of each resistor so that they are touching each other and solder them all together in a row. Clip the excess metal from the leads. Leave the last lead unclipped so that it can be attached to a wire later.
Add Header Pins to Protoboard
Solder header pins to the pins connections on the arduino protoboard. Make sure you are soldering them on the correct side! For best results I recommend soldering the first and last pins first (as in figure 3), then check to see if the pins are straight and flat on the board (figure 4). If they need to be adjusted it will be much easier with only two pins soldered down. Once everything is lined up, solder the middle pins (figure 5).
Attach Toggle Switch
Solder the toggle switch onto the middle of the arduino proto-shield as shown in the images above. Solder a jumper wire between the side lead of the switch and the Vin pin on the proto-shield.
Attach Battery Connections
Solder the red lead of the battery connector to the middle pin of the switch. Solder the black lead of the battery connector to the ground pin of the protoshield.
Wire Up LEDs
Attach wires to each of the LEDs on the wand. As you solder each connection, clip the excess lead off the end of the LED (figure 3).
Connect LEDs to Arduino Shield
Strip the ends of each of the LED wires and connect to the pins of the arduino proto-shield. Be sure to follow the pin connections below correctly, I've also attached the breadboard diagram from fritzing (figure 3), the left-most LED is the top of the wand and the right is the bottom. In the schematic (figure 4) the left most LED is the bottom and and right most is the top. You can find the fritzing file below.
Pin connections:
Top of wand
1 Digital Pin 13
2 Digital Pin 12
3 Digital Pin 11
4 Digital Pin 10
5 Digital Pin 9
6 Digital Pin 8
7 Digital Pin 7
8 Digital Pin 6
9 Digital Pin 5
10 Digital Pin 4
11 Digital Pin 3
12 Digital Pin 2
13 Digital Pin 1
14 Digital Pin 0
15 Analog Pin 5
16 Analog Pin 4
17 Analog Pin 3
18 Analog Pin 2
19 Analog Pin 1
20 Analog Pin 0
Bottom of wand
Pin connections:
Top of wand
1 Digital Pin 13
2 Digital Pin 12
3 Digital Pin 11
4 Digital Pin 10
5 Digital Pin 9
6 Digital Pin 8
7 Digital Pin 7
8 Digital Pin 6
9 Digital Pin 5
10 Digital Pin 4
11 Digital Pin 3
12 Digital Pin 2
13 Digital Pin 1
14 Digital Pin 0
15 Analog Pin 5
16 Analog Pin 4
17 Analog Pin 3
18 Analog Pin 2
19 Analog Pin 1
20 Analog Pin 0
Bottom of wand
Connect to Ground
Strip both ends of a (preferably black) wire and connect the unclipped resistor lead to a ground (gnd) pin on the arduino shield.
Upload Firmware
Download the POV wand firmware below and upload it onto your arduino board. If you have trouble uploading be sure that nothing is connected to digital pins 0 and 1 and that you have selected the correct board and serial port under the Arduino/Tools menu.
This code stores a set of binary arrays onto the arduino that generate each letter in the alphabet. When the arduino reads the message you would like to display it compares each letter to one of its stored letters and then outputs the stored array column by column. You will insert your own message into the arduino firmware in a later step.
This code stores a set of binary arrays onto the arduino that generate each letter in the alphabet. When the arduino reads the message you would like to display it compares each letter to one of its stored letters and then outputs the stored array column by column. You will insert your own message into the arduino firmware in a later step.
Downloads
Attach Battery and Arduino Board
Use zip ties to secure battery and arduino to wand mount. Flip switch to power on and off. You should read the words HELLO WORLD on startup.
Create Your Own Messages
Figure one shows the line of text you will need to edit to create your own messages. Replace the worlds HELLO WORLD with any message in all caps with no punctuation. You can create your own characters and images by generating matrices of 1s and 0s, follow the example given in figure 2, the letter J.