From the course: Learning Arduino: Interfacing with Hardware
Wiring up the keypad - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Hardware
Wiring up the keypad
- [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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Introduction to the keypad interface2m 1s
-
Wiring up the keypad1m 57s
-
(Locked)
Optional review: IF statement1m 28s
-
(Locked)
Optional review: The switch...case statement1m 40s
-
(Locked)
Understanding two-dimensional arrays1m 58s
-
(Locked)
Setup the keypad library2m 10s
-
(Locked)
HelloKeypad4m 41s
-
(Locked)
Using the keypad with LEDs5m 6s
-
(Locked)
Combine the keypad and 7-segment LED5m 47s
-
(Locked)
Combine them all: LCD + keypad + LED4m 44s
-
(Locked)
-