Single-Pin MCU Gets Three Colors From Two-Color LED

July 7, 2003
There's a need in many applications to indicate more than two states from a single LED. One obvious solution is to employ an LED with more than two colors. But such LEDs require more than one control pin to produce these colors. The simple...

There's a need in many applications to indicate more than two states from a single LED. One obvious solution is to employ an LED with more than two colors. But such LEDs require more than one control pin to produce these colors.

The simple circuit shown in the figure can be used to obtain three colors from a dual color (red, green) LED. Moreover, it only uses a single pin from a microcontroller (MCU) or any other programmable device. The circuit's operation can be explained as follows: When the control pin goes High, the LED glows red. When the pin goes Low, the LED glows green. The trick to getting the third color is by programming the control pin to have a clock frequency of around 1 kHz. This causes the LED to alternately change its state from red to green, effectively producing an orange color.

Sponsored Recommendations

Highly Integrated 20A Digital Power Module for High Current Applications

March 20, 2024
Renesas latest power module delivers the highest efficiency (up to 94% peak) and fast time-to-market solution in an extremely small footprint. The RRM12120 is ideal for space...

Empowering Innovation: Your Power Partner for Tomorrow's Challenges

March 20, 2024
Discover how innovation, quality, and reliability are embedded into every aspect of Renesas' power products.

Article: Meeting the challenges of power conversion in e-bikes

March 18, 2024
Managing electrical noise in a compact and lightweight vehicle is a perpetual obstacle

Power modules provide high-efficiency conversion between 400V and 800V systems for electric vehicles

March 18, 2024
Porsche, Hyundai and GMC all are converting 400 – 800V today in very different ways. Learn more about how power modules stack up to these discrete designs.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!