Author Topic: Perplexed by Charlieplexing  (Read 1838 times)

0 Members and 1 Guest are viewing this topic.

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 550
  • Country: gb
Perplexed by Charlieplexing
« on: November 05, 2018, 03:47:08 pm »
So, I've looked into Charlieplexing (CP) as suggested by a contributor and I love it!

I have made simple sets of discrete LEDs light according to the principles of CP but have now hit a snag.

I want to use CP for 7-seg displays but with the common anode (or cathode) the individual digits can't be "split-up" to be paired.

What do people do?
You can release yourself but the only way to go is down!
RJD
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Perplexed by Charlieplexing
« Reply #1 on: November 05, 2018, 09:05:38 pm »
So, I've looked into Charlieplexing (CP) as suggested by a contributor and I love it!

I have made simple sets of discrete LEDs light according to the principles of CP but have now hit a snag.

I want to use CP for 7-seg displays but with the common anode (or cathode) the individual digits can't be "split-up" to be paired.

Don't do Charlieplexing. Just do regular multiplexing. Use 7 micro/FPGA output pins for the individual segment signals (cathode for common anode displays). Segments 0 on all digits are driven by a common pin. Then the anodes are driven by individual pins, one active at a time.
 

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 550
  • Country: gb
Re: Perplexed by Charlieplexing
« Reply #2 on: November 07, 2018, 03:44:33 pm »
Ah yes but my goal is to operate a four digit, 7-seg display with a microcontroller in an 8-pin package.

Don't ask me why, it's just my thang!  :horse:
You can release yourself but the only way to go is down!
RJD
 

Offline matseng

  • Frequent Contributor
  • **
  • Posts: 563
  • Country: se
    • My Github
Re: Perplexed by Charlieplexing
« Reply #3 on: November 07, 2018, 03:56:27 pm »
We charlieplex the entire display and not the individual digits.  It won't give you as good gains as with loose leds at any arbitrary number of displays . But you can drive 8 displays with just 9 pins from the mcu. See my old ancient instructable about the subject at https://www.instructables.com/id/Charlieplexing-7-segment-displays/
 
The following users thanked this post: oPossum, newbrain

Offline PerranOakTopic starter

  • Frequent Contributor
  • **
  • Posts: 550
  • Country: gb
Re: Perplexed by Charlieplexing
« Reply #4 on: November 07, 2018, 05:15:20 pm »
Brill, cheers I'll have a look.
You can release yourself but the only way to go is down!
RJD
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9935
  • Country: us
Re: Perplexed by Charlieplexing
« Reply #5 on: November 07, 2018, 06:32:21 pm »
Ah yes but my goal is to operate a four digit, 7-seg display with a microcontroller in an 8-pin package.

Don't ask me why, it's just my thang!  :horse:

Since you can't use reverse polarity as in CP, you are pretty much stuck to at least 7 pins for the segments plus additional pins for digit selection.  I don't see parallel connections happening with an 8 pin controller.

But you can use a serial driven 7 segment display which just uses 2 pins and the SPI protocol.  It would take 3 pins if you decided to control SS'

https://www.sparkfun.com/products/11441
 
The following users thanked this post: PerranOak


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf