Charlieplexed Row of LED Lights, for the Arduino

by computergeek in Circuits > Arduino

52965 Views, 134 Favorites, 0 Comments

Charlieplexed Row of LED Lights, for the Arduino

100_4144.JPG
Circuit.png
 This is my instructable on charlieplexing a LED row/string with the arduino. I noticed that there weren't many instructables on charlieplexing using an arduino, so i made this. I tried to keep the project simple, but that didn't work very well. The soldering is complex, I wouldn't recommend this as a first time soldering project.

Here's some background on charlieplexing: en.wikipedia.org/wiki/Charlieplexing

I took about 80 pictures & not all of them made it into the main steps, but you can find them in step 9: Extra Pictures

If you have any comments, questions &/or suggestions please ask them!


 

Parts List:

100_4033.JPG
Circuit Diagram.png
Parts:
- 12 LED's; I'm using some 3 mm Red LED's
- 4, 270 Ohm resistors; You can use other values as well
- Perfboard/Veroboard; I used a piece 27 holes x 5 holes
- Wire; I used some 26 gauge, solid core wire
- Header pins (optional)
- Arduino

Tools:
- Soldering Iron
- Hot glue gun (optional)
- Helping hand (optional)

Solder the Anodes of the LED's

100_4053.JPG
100_4051.JPG
100_4054.JPG
100_4056.JPG
100_4057.JPG
100_4058.JPG
100_4060.JPG
100_4061.JPG
100_4062.JPG
100_4067.JPG
100_4069.JPG
100_4070.JPG
100_4074.JPG
100_4076.JPG
100_4077.JPG
100_4078.JPG
100_4079.JPG
There's not much to say about the next few steps, but there's a few main points I'll mention.
- The LED's anodes are soldered in groups of 3
- Make sure the 4 groups don't get joined together, but stay separate

The wires that connect the 4 groups are kind of shaped like a L.


Bend the Cathodes

100_4083.JPG
100_4080.JPG
Main Points:
- You should end up with 4 different rows
- Make sure each of the the 4 rows contain only 3 connections to the cathodes & only one from each group of LED

Solder the Cathodes

100_4082.JPG
100_4084.JPG
100_4086.JPG
100_4089.JPG
100_4096.JPG
100_4101.JPG
100_4102.JPG
100_4104.JPG
100_4105.JPG
100_4106.JPG
100_4107.JPG
100_4109.JPG
100_4112.JPG
100_4114.JPG
Circuit.png
Main Points:
Not much to say here just solder the 4 rows & make sure to avoid any bridges in the wires. You should have 4 rows that have only 3 connections to it, one from each group with one group not attached. I tried to make the schematic as close to the wiring as possible, so that might make what I'm talking about a little easier to understand. It's is the last picture on this step.

Install Resistors

100_4123.JPG
100_4115.JPG
100_4117.JPG
100_4121.JPG
100_4122.JPG
Circuit.png
This is a little confusing. Hope I explained it well enough. There are more pictures of this in step 9.

Resistor end connections:
1) One end connected to row 1. The other to group 4
2) One end connected to row 2. The other to group 3
3) One end connected to row 4. The other to group 2
4) One end connected to row 3. The other to group 1

Add the Control Wires

100_4123.JPG
100_4124.JPG
100_4125.JPG
100_4127.JPG
100_4128.JPG
100_4131.JPG
100_4132.JPG
100_4133.JPG
100_4134.JPG
100_4135.JPG
100_4136.JPG
100_4137.JPG
100_4138.JPG
100_4141.JPG
This is probably one of the easiest steps! All you are doing is soldering wires to the 4 groups.

I used some pieces of wire about 6 in long. They don't have to be different colors but it can be helpful if anything goes wrong & you need to debug the circuit. You don't need some header pins, but if you want some feel free to use them.

Coding the Arduino

Picture 3.png
Here's some basic steps to program your arduino.

1) Download the source code from below
2) Open the file in the Arduino IDE
3) Press the "Upload to I/O Board" button
4) Once the program is uploaded it will start running

Note:You may need to change a few things in the "const int ledPins[12][2] ={" array if the led's turn on, out of order.


I tried to add a good amount of comments to the code, but if you have any questions, please ask them.

Have Fun!!!

100_4144.JPG
This shouldn't be to hard, but it might be

If you have any comments, questions &/or suggestions please ask them!


Extra Pictures

100_4052.JPG
100_4055.JPG
100_4059.JPG
100_4064.JPG
100_4065.JPG
100_4118.JPG
100_4066.JPG
100_4068.JPG
100_4071.JPG
100_4073.JPG
100_4080.JPG
100_4081.JPG
100_4087.JPG
100_4088.JPG
100_4091.JPG
100_4099.JPG
100_4100.JPG
100_4103.JPG
100_4113.JPG
100_4116.JPG
100_4120.JPG
100_4126.JPG
100_4129.JPG
100_4130.JPG
Well, I'm not sure if I when a little overboard with the pictures, But here's the rest of the pictures if you need something clarified. If you have any questions feel free to ask them.

Pictures 1-9: Installing the LED's
Pictures 10-13: Bending the cathodes
Pictures 14-18: soldering the cathodes
Pictures 19-20: Installing the resistors
Pictures 21-23: Installing the control wires