Pages: [1]   Go Down
Author Topic: Charlieplexing  (Read 511 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Team,
  I'm trying to learn how to charlieplex and I'm making a simple 3x3 matrix to try and learn how. My question is how do you control the matrix using Arduino? I have the LoL library but for something this small I'm not sure how to adapt it. Any help would be greatly appreciated!! Thanks!

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
Karma: 538
Posts: 27093
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to review your design & see what it takes to for highs & lows to make each individual LED turn on.
This may result in Off LEDs having high applied to both sides or low to both sides, or low their anode & high on their cathode ("reverse biased").

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at
Arduino for Teens available at

Offline Offline
Shannon Member
Karma: 206
Posts: 12179
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Start with 2 LEDs on 2 pins (remember the resistors on each pin),
Then 6 LEDs on 3 pins,
Then for 9 you extend this to 4 pins (normally 12 LEDs, so omit 3 of them...

[ I won't respond to messages, use the forum please ]

Poole, Dorset, UK
Offline Offline
Edison Member
Karma: 52
Posts: 2305
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want just 9 LED's you could just use 9 pins no need to get complex. The simplest way to get higher numbers is to use a shift register.


Pages: [1]   Go Up
Jump to: