Join Zahraa Khalil for an in-depth discussion in this video Coding 7-segment display showing numbers, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] All right, so now since we're using…the same common anode from Sigmadel AD…we're going to keep the same wiring for it,…and I know to use the same file that we used…in a previous example.…So we are going to keep the code from line 2…all the way to line 9, because we are keeping…the identifying pins and also we're keeping…the code for line 13 to line 18…as we are identifying the pins to be an output.…Now let's start coding to show zero.…
To show zero, I need LED A, B, C, D, E, F to be on.…So we're setting low for these LEDs.…So I'm going to keep code 23 to 27 to turn off LEDs…to start with and let's erase everything we had before.…To just kind of start from the beginning.…Alright, so usually like to add a delay before I start…the next letter so I'll add a delay of one second.…
And I'll start coding to display zero.…So for display zero, digital write and then I specify…the LEDs that I want the to be on and I'm sending low.…Okay, so I'm going to copy and paste the same code…but I'm just changing the pins that I want them to be on.…
- Interfacing with an LCD screen
- Wiring and coding the LCD interface
- Displaying random numbers on the LCD
- Interfacing with a seven-segment LED component
- Cycling through LEDs
- Using a shift register to interface with a seven-segment LED
- Interfacing with a keypad
- Combining the LCD, keypad, and LED
Skill Level Intermediate
The devices used38s
1. Interface with an LCD
2. Interface with a 7-Segment LED Directly
3. Interface with a 7-Segment LED Using a Shift Register
4. Interface with a Keypad
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.