From the course: Learning Arduino: Interfacing with Hardware
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Combine the keypad and 7-segment LED - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Hardware
Combine the keypad and 7-segment LED
- [Instructor] Alright, for this part, we are going to use the seven segment LED with a keypad. So I'm going to use the same wiring that I did previously, so I'll go ahead and connect the pins that are coming in from the shift register. So the databank goes to pin number eight, then 10, and then, finally, the last one is to 11. For the keypad, I'm going to connect it to the pins over at this side. So pins 22 all the way to 34. Finally, I'm going to connect the positive and negative... So that the five-volt goes in here, and then the ground to the other side. So I'm going to go ahead and start coding. So you can open the file, that's 04_09_Keypad_7SegLED_Start in project. So you can see the code from line two all the way to line 18 is corresponding to the keypad. It's very similar to what we did in the previous example. The only difference is in line 15 and 16. You can see that here, it corresponds to the pins that we…
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)
-