User:Ductapemaster521
This is a Wikipedia user page. This is not an encyclopedia article or the talk page for an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user whom this page is about may have no personal affiliation with any site other than Wikipedia. The original page is located at https://en.wikipedia.org/wiki/User:Ductapemaster521. |
This is my sample page...
Link to the UCSB College of Engineering
1. Student Demographics
2. Honors and Awards
CS department info
Chem E. department info
ECE department info
Materials Eng. department info
3. Intro
Draft of Charlieplexing article:
Charlieplexing is an efficient multiplexing technique developed by Charlie Allen at Maxim Integrated Products in which relatively few I/O pins on a microcontroller are used to drive a large number of LEDs. It is often used when driving LED displays. The method utilizes the tri-state logic capabilities of microcontrollers in order to gain efficiency over traditional multiplexing. Although it is more efficient, there are issues that cause it to be more complicated to design. These issues include duty cycle, current requirements and the forward voltages of the LED's.
Traditional Multiplexing
[edit]Display multiplexing is very different from multiplexing used in data transmission, although it has the same basic principles. In display multiplexing, the data lines of the displays are connected together in parallel to a common bus on the microconroller. Then, the displays are turned on individually and addresses when they turn on. This allows one to use fewer I/O pins than it would normally take to drive the same amount of displays directly.
When using Charlieplexing, n drive pins can drive n digits with n-1 segments. When simplified, it equates to n pins being able to drive n2-n segments or LED’s. Traditional multiplexing takes many more pins to drive the same amount of LED’s; 2n pins must be used to drive n2 LED’s.
Charlieplexing
[edit]Complementary Drive
[edit]Charlieplexing, in its simplest forum, works using a matrix of complementary pairs of LED’s. The simplest possible Charlieplexed matrix would look like this:
By applying a positive charge to pin 1 and grounding pin 2, LED 1 will light. Since LED’s do not conduct electricity in reverse, LED 2 will stay unlit. If we reverse the charges on pin 1 and pin 2, LED 2 will light and LED 1 will be unlit.
Expanding: Tri-state Logic
[edit]If we were to expand this circuit to accommodate 3 pins and 6 LED’s, it would look like this:
This presents a problem however. In order for this circuit to act like the previous one, we must disconnect one of the pins before applying charge to the remaining two. This can be solved by utilizing the tri-state logic properties of microcontroller pins. Microcontroller pins generally have three states, 5V, 0V and input. Input mode puts the pin into a high impedance state which, electrically speaking, “disconnects” that pin from the circuit, meaning little or no current will flow through it. This allows for the circuit to see any number of pins connected at any time, simply by changing the state of the pin. In order to drive the 6 LED matrix above, the two pins corresponding to the LED we wish to light are connected to 5V and 0V while the third pin is set in its input state. In doing so, we prevent current leakage out of the third pin, ensuring that the LED we wish to light is the only one lit.
By using tri-state logic, the matrix can theoretically be expanded to any size, as long as pins are available. Any LED can be lit by applying 5V and 0V to its corresponding pins and setting all of the other pins connected to the matrix to input mode.
Problems with Charlieplexing
[edit]Duty cycle
[edit]Because only one LED is let at any given time, Charlieplexing requires much faster display refreshing than a traditionally multiplexed display. In order for a display to not have any noticeable flicker, the duty cycle for each LED must be greater than 50Hz. With traditional multiplexing this usually isn’t a problem because each digit or set of LED’s is turned on individually. Thus, the minimum duty cycle of a display is the number of digits times 50Hz. For a 20 LED display arranged in a traditional 4x5 matrix, the duty cycle is only 200Hz. With a charlieplexed display, each LED is lit individually, thus the duty cycle must me at minimum the number of LED’s times 50Hz. For the same 20 LED display from above, arranged in a charlieplex matrix, the overall duty cycle is 1000Hz.[1]
Peak Current
[edit]Due to the increased duty cycle, the current requirement of a display increases much faster than it would with a traditionally multiplexed display. As the display gets larger, the average current flowing through the LED must be constant in order for it to maintain constant brightness, thus requiring the peak current to increase proportionally. This puts a limit to the size of the display, as when the peak current flowing through the LED’s when they’re turned on exceeds the LED’s ratings, Charlieplexing is not a possibility.
Complexity
[edit]Charlieplex matrices are much more complicated to lay out than are traditional multiplex matricies. This increases both cost of production and design time.
Forward Voltage
[edit]When using LED’s with different forward voltages, like when using different color LED’s, problems can exist where other LED’s will light when not wanted to.
If we look at the diagram above we notice that if LED 6 has a four volt forward voltage, and LED’s 1 and 3 have forward voltages of two volts or less, they will light when LED 6 is intended to, as their current path is shorter. This issue can easily be avoided by checking the forward voltages of the LED’s used in the matrix and checking for compatibility issues. Or, more simply, using LED’s that have the same forward voltage.[2][3][4]
Resources
[edit]- ^ Electronic Design article on Charlieplexing.
- ^ Maxim's appnote on Charlieplexing use in their chips.
- ^ This Instructables article explains both the theory and how to implement the design.
- ^ Don Lancaster's Tech Musings #152 is where the idea of Charlieplexing originated.