Arduino Tutorial for Beginners 15 - Using 4×4 Keypad With Arduino

preview_player
Показать описание
Welcome to this video on Arduino Tutorial for Beginners. This video about Keypad 4x4.

This video shows how keypad works and how to receive key capture on keypad

Connect R1-R4 to Arduino pin 4-7
Connect C1-C4 to Arduino pin 8-11

Algorithm to capture keypad:
Check the column are changed status
Set the Rows Ri to LOW
Check that column are changed
if not - i++
if change - print out and set all rows to LOW

Code in library :

#include Keypad.h
Include keypad library

char hexaKeys[ROWS][COLS] = {
{'0','1','2','3'},
{'4','5','6','7'},
{'8','9','A','B'},
{'C','D','E','F'}
};
Change the key to match with your key

byte rowPins[ROWS] = {3, 2, 1, 0};
byte colPins[COLS] = {7, 6, 5, 4};
Change the rows and column to match with your rows/column

Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
Init Object customKeypad with information parameters

Assign capture receive from Keypad to customKey to check


Arduino programs, called “sketches”, are written in a programming language similar to C and C++. Many sensors and other hardware devices come with prewritten software – look on-line for sample code, libraries (of functions), and tutorials. Learn the Arduino platform and programming language to create robots, interactive art displays, electronic gadgets and much more.

#ProgrammingKnowledge #Arduino #ArduinoTutorial

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Love programming language and all technique of its

sudershank
Автор

Hi! I would like to thank you for your video. Here you connect one keypad but can we connect more? Two or three? If so do we need something like expanders to have more pins, eg. like PCF8574P - Expander I/O - 8 channels I2C DIP16 will be good for this? Best Regards!!

Michael-hngi
Автор

Please guide me how can i schedule live location in WhatsApp through 3rd party application development

realfacts