From the course: Learning Arduino: Interfacing with Hardware

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Understanding the 7-segment LED truth table

Understanding the 7-segment LED truth table - Arduino Tutorial

From the course: Learning Arduino: Interfacing with Hardware

Start my 1-month free trial

Understanding the 7-segment LED truth table

- [Narrator] Alright, so we've learned how to turn on or off the individual LEDs for the 7-Segment Display. Next, let's see how to display numbers and letters. In order to do so, let's generate the truth table for the 7-segment LED. For a common cathode, as mentioned previously, all pins are connected to ground, so their normal state is zero, low. If we want to make one of the LEDs turn on, then we need to set the anode side to one, high. So for example, if we want to show one, then the LED, the segments B and C, need to be on and the rest of the LEDs should be off. The same thing applies if you want to show number 2. Then LED A, B, G, E, D need to be on. And the same thing applies for the rest of the numbers. Since this is a common cathode device, we need to send high, a logic one, and everything else is zero. And this is what we call the truth table for our common cathode LED. So now let's examine the truth table for the common anode. For a common anode device, the anodes of LEDs…

Contents