In many articles about segment leds multiplexing I saw authors used one pin for one indicator. So if I have 2 indicators I should use 2 pins, but it's wasting of pins! I have only 1 pin for showing one of two indicators at a time. And know what? I have made a little schematics which can let me do it! I have used a NOT logic gate made of transistors.
Schematics:

How it works: When switch (SW1) at lower position Q1 (PNP) turns on and let current flow to SL1 and SL1 lights up. When switch at higher position Q2 (NPN) turns on and work as NOT gate for Q3 (PNP) which gets low signal and turns on, as Q1 when switch at lower position, and SL2 lights up. For my project I will put segment leds indicators in place of leds on picture and instead of switch I will connect wire to a pin on micro-controller.
That's all for today. Next I will write a program to control multiplexing and show digits and letters on alpha-numeric segment led indicators. Stay tuned.
No comments:
Post a Comment