Join Zahraa Khalil for an in-depth discussion in this video Initializing pins for the shift register, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] Okay so to start the coding for this part…I've provided you with a starter project for this section.…So go ahead and open 03_06_starter_project file…from the exercise files.…So, the exercise file looks like this one.…So, the very first thing that we need to do,…is we need to identify the three pins…that we connected to the shift register.…So, the very first one is constant integer,…is the dataPin…and we connected that to pin number eight…in our Arduino board.…
The second one is constant int,…the latchPin that lives in pin number 10.…And finally, the shift clock pin,…and I will name it as constant int clockPin,…and that one's connected to pin 11.…Okay, so the next part now, is trying to get the combination…in order to show the numbers.…So, this is the truth table for the common added LED…that we are using.…So, in order to get the binary number,…you simply take each of the combination…and place a zero B in front of it.…
You can check the website,…the Arduino website,…if you would like to know…how to enter it in a different format…
- 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.