From the course: Learning Arduino: Interfacing with Hardware

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Combine the keypad and 7-segment LED

Combine the keypad and 7-segment LED - Arduino Tutorial

From the course: Learning Arduino: Interfacing with Hardware

Start my 1-month free trial

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…

Contents