From the course: Learning Arduino: Interfacing with Hardware
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Introduction to the keypad interface - Arduino Tutorial
From the course: Learning Arduino: Interfacing with Hardware
Introduction to the keypad interface
- [Narrator] A keypad is a common hardware interface so let's see how we can set up one with our Arduino board. The keypad type we're using is four by three which means four rows and three columns. Each point is a pushbutton arranged this way. Each pushbutton is an active low type. This is the arrangement for an active low pushbutton. We have a voltage source, VCC, and a resistor. We call the resistor a pull-up resistor, then a pushbutton connected to ground. And in order to read the value of the active low pushbutton we connect the controller pin between the pull-up resistor and the pushbutton. Active low simply means when the switch or the pushbutton is closed or pressed, it sends a low signal to the microcontroller. So as the name says it, when it's active, it sends a low signal. When the switch is not pressed, it sends a high signal. An active low pushbutton uses a pull-up resistor. It pulls up the value to high when it's…
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)
-