Join Zahraa Khalil for an in-depth discussion in this video The shiftOut command, part of Learning Arduino: Interfacing with Hardware.
- Okay, so for the command that we're using…in order to code the shift register, is a shiftOut command.…ShiftOut command simply shifts out bits of data…one at a time, so starting from either…the most significant, or the least significant.…The command has the following syntax:…so you start with a dataPin, clockPin,…and then the bitOrder if you're doing…most significant or least significant,…and finally, the data.…So let's go ahead and do the coding for it.…
Okay, so this is the shiftOut.…Then we write down the dataPin, clockPin.…Now in the bit order,…it's either most significant or least significant.…The way we did the wiring was for…the most significant bit,…so we go with most significant bit first,…and then finally the data that we'd like to show.…And in our case, we're trying to show the numbers…that you see in line nine to ten.…So I'm going to go ahead and write down the array name.…
So now since I want to show the numbers from zero to nine,…so I want to go through the array,…I want it to go through index zero, one, two, three.…
- 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.