Author Topic: LED Charlieplexing Question  (Read 3619 times)

0 Members and 1 Guest are viewing this topic.

Offline 8086Topic starter

  • Super Contributor
  • ***
  • Posts: 1084
  • Country: gb
    • Circuitology - Electronics Assembly
LED Charlieplexing Question
« on: March 05, 2011, 05:59:43 pm »
Hi all,

So I am using charlieplexing in a project because I have limited I/O, but I have a pretty basic issue that I can't get my head around.

Say I connect up some LEDs like this:



If I set Pin1 high, Pin2 as input, and Pin3 low, LED6 will light, but why won't LED1 and LED3 also light? They are in parallel with LED6.

I haven't actually tried this for myself yet as I am waiting for parts to arrive but this seems like quite a basic thing to not be understanding so I am quite concerned.

Any help appreciated :)
 

Offline dimlow

  • Frequent Contributor
  • **
  • Posts: 301
  • Country: gb
  • Likes to be thought of as
    • Dimlow Ponders
Re: LED Charlieplexing Question
« Reply #1 on: March 05, 2011, 06:50:42 pm »
Think about the current path and what resistances it encounters. Now if each LED was a pool of sticky stuff and you were the current swimming through it what way would you go ?
 

Offline 8086Topic starter

  • Super Contributor
  • ***
  • Posts: 1084
  • Country: gb
    • Circuitology - Electronics Assembly
Re: LED Charlieplexing Question
« Reply #2 on: March 05, 2011, 07:33:05 pm »
I see what you mean, that was my first thought, but why wouldn't the two LEDs just light with half the current of the single LED? I'm seeing a current divider here...
 

Offline ziq8tsi

  • Regular Contributor
  • *
  • Posts: 80
Re: LED Charlieplexing Question
« Reply #3 on: March 05, 2011, 08:50:08 pm »
I see what you mean, that was my first thought, but why wouldn't the two LEDs just light with half the current of the single LED? I'm seeing a current divider here...

The current would be divided if the LEDs obeyed Ohm's Law, like resistors do.  But they are semiconductors.

An LED has a minimum forward voltage, say 2V, below which there is negligible conduction.  The forward voltage increases only modestly with current.

For LED1 and LED3 to conduct in series, the voltage across them would have to be 4V.  But by that voltage, LED6 would be conducting a huge current.  So the current in LED6, and resulting voltage drop in the pin resistors, will ensure that the voltage across the series LEDs is nearer to 2V than 4V, and neither of them will conduct at all.
 

Offline Jon Chandler

  • Frequent Contributor
  • **
  • Posts: 539
    • Throw Away PIC
Re: LED Charlieplexing Question
« Reply #4 on: March 05, 2011, 11:13:15 pm »
Adding a bit to ziq8tsi's explanation:

The voltage across LED6 will be its forward voltage, say 2 volts.  The current through the resistors will be whatever it takes to drop the remaining 3 volts.

LED1 and LED3 are in series and will have the same voltage across them as LED6 which is 2 volts.  In order to turn on LED1 and LED3, the voltage across them would have to equal 2 x their Vf (4 volts) so they won't turn on.

If the LEDs aren't fairly close in Vf there may be some interesting results, where "interesting" isn't what you expect or want.  If LED6 is a white or blue LED and LED1 and LED3 are red LEDs, the Vf of LED6 may be enough to turn on LED1 and LED3.

 

Offline jtv4k

  • Newbie
  • Posts: 5
Re: LED Charlieplexing Question
« Reply #5 on: March 05, 2011, 11:25:47 pm »
Is your project limited to 6 LEDs? I've always found charlieplexing amazingly complicated (especially at higher LED counts). If all you're trying to do is individually address 6 LEDs with 3 ports, try something simple like a demultiplier.

It may seem simple (and possibly a bit nostalgic), but check out something like a 74138 chip. You'll have to find one that can sync the current you're trying to use (depending on LED color), but it only uses three ports and can drive up to 8 LEDs! Neat  :)
 

Offline 8086Topic starter

  • Super Contributor
  • ***
  • Posts: 1084
  • Country: gb
    • Circuitology - Electronics Assembly
Re: LED Charlieplexing Question
« Reply #6 on: March 06, 2011, 01:01:59 am »
Ah that makes sense :)

I am actually using 12 LEDs with 4 pins in my project.

Thanks :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf