Join Zahraa Khalil for an in-depth discussion in this video Wiring up the keypad, part of Learning Arduino: Interfacing with Hardware.
- [Instructor] Alright, so let's do the wiring of the keypad to Arduino board. So, we are going to use the pins, two to five, in order to reserve for the rows, and then six, seven, eight, for the columns. So, this is the keypad we are using. And then I'm going to use pins two, all the way to eight. For the second part, we are going to use three LEDs, and we are going to use a keypad to control each one of them.
So I'm going to connect the LEDs for pin nine, 10, and 11. So for the LEDs I'm going to use a resistor and the value that I am going to use is 330 ohm. You can use any values between 200 and 500 if you don't have this specific one. So the red LED is going to be connected to pin nine.
The blue one is connected to pin 10. And finally, the yellow one is connected to pin 11. So note here that one side of the LED is connected to the pin, and the other side is connected to ground.
So we need to connect the ground, to the Arduino board. So now we've done the wirings, so let's cover some of the programming concept that we need for the keypad, before we start actually coding.
- 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.