Questions tagged [keypad]
The keypad tag has no usage guidance.
42
questions
0
votes
1
answer
55
views
Unable to get keypad key in while loop [closed]
I'm a beginner into Arduino so I have a little problem where I'm trying to do a countdown on LCD using while loop but I'm also trying to get a key input inside that same while loop. Problem is that ...
0
votes
1
answer
54
views
Why is my variable giving the wrong value?
I'm making a program to show numbers in a WS2812 LED and TM1637. I'm also using a common 4x4 keypad.
The WS2812 LED is just DIY with 25 x 10. Only two values can be displayed in a LED matrix just now. ...
3
votes
1
answer
329
views
Problem when coding 4x4 keypad's key detection (without library)
Part of my current assignment involves reading the input from a 4x4 keypad connected to an Arduino UNO. While this may be done easily using <Keypad.h>, the project is being done with Tinkercad's ...
1
vote
0
answers
78
views
Automatic pet feeder with a simple menu type keypad
this is the sample code where the user enters A to set the number of times the pet needs to be fed. When I click A on the keypad it asks for the user to set the number. However, the keypad still ...
0
votes
1
answer
82
views
Making library for arduino
I'm learning library making on arduino , I want to make a library that works with arrays a user sets, e.g:
User sets array of int,
when a certain function is been called the library will check if ...
-1
votes
1
answer
168
views
4x3 keypad not providing any output and the output it does provide is incorrect
I am trying to figure out how to use a 4x3 keypad and just want to receive the key numbers I select on the serial monitor. The problem I am getting is that some of the keys I type don't give me any ...
0
votes
1
answer
711
views
No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)
This was supposed to be the code for automatic pet feeder
Got it from here1
The problem is that I always got a "No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)&...
-1
votes
2
answers
180
views
Char array filling with blanks
When I run this code, my pin and pinCheck arrays are not being filled with the results of keypad.getKey(). If I print the value at each index, the result is blank. As far as I can tell, I am either ...
1
vote
0
answers
165
views
Code question: LCD keypad Shield. How do I define the buttons?
I am trying to adapt a alarm clock sketch that used external buttons, but I would like to utilize a LCD Keypad Shield. The data sheet says all the buttons are on pin A0, so every button is "set ...
1
vote
1
answer
104
views
Connecting various devices to Arduino
I need to connect the following devices to an Arduino UNO board. The problem is that I run out of pins to be able to connect them all. Is there any way to do it?
ultrasonic sensor
yellow led
green ...
2
votes
1
answer
1k
views
Using CD74HC4067 16-Channel Analog Multiplexer Demultiplexer is not working as expected
I am working on a project that needs multiple digital signals and I am considering the CD74HC4067 (on a break-board) to work as a multiplexer. More specifically i am trying to build a keypad with ...
-1
votes
1
answer
239
views
How to make Arduino to read 1X4 keypad multiple times?
I want to use 1X4 membrane keypad to enter 3 working parameters for LED string controlled by Arduino mini. Keypad is attached to D2-D5 pins and LED is attached to pin 12. My objective is to set the ...
1
vote
0
answers
48
views
I can't show the button pressed on the GLCD ST7920?
I have a small project that i want to show my keypad pressed on my GLCD but when i pressed keypad, even on serial it is fines but on GLCD it can't show my characters. Could you tell me what the ...
2
votes
4
answers
838
views
My program is using too much memory
I work in a warehouse and I was tasked to make a device which will show the location of any product when Product ID is given. All of our product has 3 things. Product ID, Rack Number and Gap number.
...
2
votes
2
answers
788
views
Keypad pin as an interrupt (Wiring or programming)
I have this project of a "phone". It consists of:
Arduino DUE,
4x4 Keypad,
SD Data shield,
a phone receiver detect (on/off)
an Amp and a Speaker.
In the beginning, after the phone receiver ...
1
vote
1
answer
42
views
Arduino Keypad: the following key does not respond
I was wondering, by the time I press the following key, it does not return to the main_screen() function. How can I fix my code?
void loop()
{
int exit = 0;
char input = customKeypad.getKey(...
1
vote
1
answer
242
views
Alternative to a delay so it can be interrupted
I have task which includes a 30s delay in the void loop. During this delay I want to be able to press a key on a keypad and have a message displayed on the serial monitor as an emergency stop. Since ...
3
votes
0
answers
109
views
Keypad - Speaker - Interference
I am trying to build a system, that plays specific audios (.wav files) from a SD-Card, according to the key combination that has been pressed.
I am using:
4x4 Membrane
4 Ohm Speaker
MicroSD Card ...
1
vote
1
answer
210
views
Arduino keypad variables to serial port
I've been trying, for over a week now, to create a program that will store my keypad presses into variable, and with a press of an enter, it will switch to the next variable to store the presses. The ...
1
vote
0
answers
219
views
Why is my buzzer always on?
I wanted to make a buzzer go off when the distance measured by the ultrasonic sensor becomes more than 100cm. The things used in this project are a 4x4 keypad, an hc-sr04 ultrasonic sensor, and a ...
1
vote
1
answer
204
views
Help in personal alarm clock project, cant write time on seven segment display
I'm trying to make a type of Arduino alarm clock, which when the time I inputed is equals to the current time, a servo will turn on my lights. It basically consists of a Keypad, an RTC DS1307 and a ...
1
vote
2
answers
437
views
Keypad as game input device?
I have been trying to get a button matrix to work but im not experienced enough in programming.
I Have tried to read up but i don't know how to execute so some help would be greatly appreciated.
I ...
1
vote
3
answers
556
views
Formatting variables from a variadic function
I have a function that concatenates a print line, however I am having trouble getting some of the strings to format correctly.
Using Serial.print formats the output from keypad.getKey() correctly, ...
1
vote
0
answers
599
views
Displaying Keypad Input on TFT Display
For a project of mine I have always wanted to build an electronic load and I am mostly done. However I have found myself stuck at one part that I thought would be simple but has thus only caused ...
-1
votes
1
answer
71
views
Ultrasonic Sensor as Unlock Sensor
Is it possible to use ultrasonic sensors maybe HC SR04 type as unlock sensors? I'm figuring out if it can replace matrix keypad?
For example 6 HC SR04 are used to be an input sensor waiting for a ...
0
votes
1
answer
838
views
Can't get keypad to use Keyboard.write on an Arduino Uno
I've tried to use Keypad.h and Keyboard.h libraries to get my Arduino to use my Keypad for Keyboard input.
I'll start with working keypad code (which is pretty easy but it's my first post so I want ...
1
vote
0
answers
140
views
4x4 keypad stops reacting
I am having an issue with the a 4×4 keypad. It usually works fine but sometimes the keypad stops reacting or no key is pressed but it still shows a random keypress on the LCD. The only solution is to ...
0
votes
2
answers
706
views
How to exit while loop using keypad?
I can't seem to be able to escape a while loop using a keypad button. I've tried the solution from this thread: https://forum.arduino.cc/index.php?topic=79932.0
Here's my code:
void alarm(){
char ...
1
vote
0
answers
166
views
Problem with printing keypad input to the LCD in a while loop
this is my first post here, though I have been following this forum for a while (pun intended). I am trying to write a program for a machine that will drill holes in a metal rail, and cut the rail to ...
0
votes
1
answer
203
views
Switch Case Return , Return not printing
I am trying to get the value of a key pressed and set it to return a value to use in a loop. In the code below the Print(t) does not show anything
#include <Keypad.h>
const byte ROWS = 4; //...
0
votes
2
answers
51
views
Including keypad library removes sound from my piezo element
I am using the keypad library to include keypad and input numbers. when a specific number is entered a sound must be made.
However when I input using the serial monitor , sound is working. But when I ...
1
vote
0
answers
126
views
Completing an action on button release help with delaying to give other modules time to repond
I'm currently having problems with my code it has several modules within the main one is my current keypad one working of a mcp23017. what I needed it to do is count how long a key is pressed and upon ...
-1
votes
1
answer
308
views
Is there a way for keypad to stop the buzzer while it is running?
I am new to arduino, currently I am looking for a way to make the keypad able to stop the buzzer making a siren alarm when password are keyed in wrong and able to move into password screen by pressing ...
1
vote
2
answers
784
views
LCD screen won't stop printing the same characters twice
I'm hoping that someone might be able to help me figure out how to prevent my LCD from giving me double digits (i.e. 55, 66, 77 - instead of 5,6,7);
I have 2 functions that are printing, so I'm ...
1
vote
0
answers
525
views
Not Able to get INPUT_PULLUP pinmodes to work on multiple pins
I am working with an Arduino nano, and ic2 128x32 OLED display and a 1x4 membrane keypad. Problem is that only one of the 4 pins are detecting the button press. it's not the Arduino, I already was ...
0
votes
1
answer
288
views
how to use keypad button multiple integer value input [closed]
I have been working on water flow sensor which measures volume then i need to restrict the amount of water which disperse from depend on the user input form the keypad so how can i store the input ...
1
vote
0
answers
85
views
Keypad code not working
I am new I took a code of keypad in arduino. Arduino code is not working in setup area but if I place the same code in loop are it works why? Kindly guide me.
Here is the code.
#include <Keypad.h&...
1
vote
0
answers
127
views
How can if resolve this conflict between matrix keypad library and neopixel library?
I'm trying to use a 4x3 matrix keypad as a user interface to control parameters of a Neopixel strip control program.
I'm using Adafruit's Neopixel library and This Keypad library.
Both work fine on ...
0
votes
1
answer
433
views
Switch Statement stuck in loop
I am writing a code for a user to enter a 4 digit pin, then use this pin later to unlock a box. The loop is stuck between the "ready to unlock box" and "enter pin" it just keeps flipping between ...
-1
votes
1
answer
137
views
Does this sound like a good approach to decoding a dumb keypad?
The background:
I bought a "dumb" 8-pin 4x4 keypad for use in a project. (This one: https://www.sparkfun.com/products/14881
It has a wire connected to each row, and a wire connected to each column. ...
0
votes
2
answers
139
views
Servo starts to shake when I added SIM900.begin(19200);
Hello I'm working on this mini project. This project works this way, Whenever someone type wrong password, LCD will display "Access Denied" and send an alert to SMS using GSM module. I used 2 ...
0
votes
1
answer
899
views
Why does my 16x2 LCD displays weird letters and can't insert key from keypad?
I'm a newbie on Arduino here, and this is my first project on 16x2 LCD, 4x4 keypad and others. So, the story is, after I uploaded the program for my group's Arduino alarm clock to the Arduino board, ...