Join Zahraa Khalil for an in-depth discussion in this video Cycle through each LED directly, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] Okay, so the very first thing…when we do the coding for the seven segment LED…is to identify the pins.…So I'll go ahead and start the Pin A.…So in the Pin A I'll add it as a constant integer.…And then I'll name it as ledPinA,…and this one is connected to Pin 2 in the Arduino board.…I'll do the same thing for the other pin,…so constant integer ledPinB,…and it's connected to Pin 3 in the Arduino board.…
So I'm going to go ahead and copy the other pins.…So C is connected to 4.…D is connected to 5.…E to 6.…G to 7.…
And finally, F to 8.…So here we've identified…what are the pins that's connected to each one of the LED.…The second step is setting up the pins to be an output.…So we do this in the void setup by setting up the pinMode.…So now since we have identified the pins at the beginning,…so I can just go ahead and write down the name for Pin 2.…
And then I identify this as an OUTPUT.…So I'll do the same thing for the rest of the pins.…Okay, and then just change the pin.…So one thing that I want you to make sure…
- 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
Learning Arduino: Pulse Width Modulationwith Rae Hoyt1h 16m 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.