Hand tools and fabrication machines
Charlieplexing is that driving lots of LEDs with only a few pins. And in this laboratory experiment we drive 6 LEDs using 3 pins. This method of Charlieplexing uses the tri-state logic capabilities of micro-controllers in order to gain efficiency over traditional multiplexing. This is another form of multiplexing.
As per the above given to the charlieplexed display the following set of routines were written. The following program worked according to the requirement where the LED blinked in the pattern starting from LED1 to LED6.
The formula for Charlieplexing is:
Where n is the number of pins used.
A lookup table was drawn out to identify the pin pattern to light up each LED individually.
PDDR: Port Data Driven Register.
A: Pin 2
B: Pin 3
C: Pin 4