From the course: Learning Arduino: Interfacing with Hardware

Wiring up the keypad - Arduino Tutorial

From the course: Learning Arduino: Interfacing with Hardware

Start my 1-month free trial

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.

Contents