Close

My First Charlieplexed Display

A project log for PewPew Standalone

A Python-based micro game console, optimized for game development workshops.

dehipudeʃhipu 08/12/2018 at 22:185 Comments

Once I got my matrix-driving code working on the PewPew 8.0, it was just a question of hacking a tri-state gpio pin switching function and some trivial modifications to get it to work with a charlieplexed display. At least it seems so, because it looks like it's working:

There is a slight problem with brightness — they are way too bright now to distinguish individual shades. Of course my phone camera got overloaded and did something funny with the colors, to the naked eye they are all blindingly red. I will need to tune the PWM somewhat.

I'm powering it with a bench power supply for testing, because the poor little coin cell only lasts a few minutes with the display on at full power — even though the bench supply claims it's only drawing 20mA total.

We will see what I can do with it, but it definitely looks promising.

Discussions

K.C. Lee wrote 08/13/2018 at 14:17 point

Bench supply can only see *average* current.  In reality your multiplexed display currents would have much higher peak current pulses.  High current x high internal resistance of coin cell = high voltage droop.

Use large values low ESR bulk capacitor would help to supplement the high current pulses.  You can figure out the value from the Q = CV equation.

Switching to the rechargeable version of the coin cell would help as they have much lower internal resistance.

  Are you sure? yes | no

deʃhipu wrote 08/13/2018 at 14:35 point

It's already a rechargeable version. The regular version wouldn't stand a chance.

I have a 2µF capacitor in there already.

  Are you sure? yes | no

K.C. Lee wrote 08/13/2018 at 14:54 point

2uF is hardly a large value.  Probably needing hundreds uF.

If you don't have a scope, the LED peak current can be approximate from battery voltage, battery internal resistance, driver internal resistance and LED forward voltage.

  Are you sure? yes | no

davedarko wrote 08/13/2018 at 12:38 point

that's actually a good start for a charlie-plexed matrix - too bright LEDs :)

  Are you sure? yes | no

deʃhipu wrote 08/13/2018 at 14:36 point

I guess the opposite problem would be much harder to solve

  Are you sure? yes | no