From the course: Learning Arduino: Interfacing with Hardware
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Understanding the 7-segment LED truth table - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Hardware
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Overview of the 7-segment LED35s
-
(Locked)
The 7-segment LED component1m 24s
-
(Locked)
7-segment LED display types1m 42s
-
(Locked)
Checking a 7-segment LED type1m 32s
-
(Locked)
Wiring up the 7-segment LED4m 50s
-
(Locked)
Cycle through each LED directly5m 34s
-
(Locked)
Cycle through LEDs with a for loop2m 29s
-
(Locked)
Understanding the 7-segment LED truth table2m 7s
-
(Locked)
Coding 7-segment display showing numbers3m 21s
-
-
-
-