Comments on: Arduino Membrane Keypad Tutorial https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 12 Jan 2024 04:45:21 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Ulerbulu https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-883491 Fri, 12 Jan 2024 04:45:21 +0000 http://randomnerdtutorials.com/?p=9202#comment-883491 Hi Santos,

How do I display the keypad that has been pressed to the ESP webserver, apart from displaying the keypad output on the serial monitor?

void loop(){
char key = keypad.getKey(); // Create a variable named key of type char to store the characters pressed
if (key){ // If the key variable contains characters
Serial.print(“Key pressed: “);
Serial.println(key)
if (key >= ‘0’ && key <= ‘9’) { // act on numeric keypress
inputString += key;
}
else if (key == ‘#’) { // press # to enter
if (inputString.length() > 0) {
Serial.println(inputString);
}
}
else if (key == ‘*’) {
inputString = “”; // clear input
}
}

}

With the code snippet above, when I press buttons 1 2 3 4 then I press #, the inputString will display “1234” on the serial monitor on the Arduino. When I press 0 0 0 and #, the inputString wil display “1234000” on the serial monitor.

But I also want these characters to appear as text on the webserver, how do I do that?

]]>
By: Rixz https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-861755 Thu, 21 Sep 2023 13:20:10 +0000 http://randomnerdtutorials.com/?p=9202#comment-861755 Hi Santos,

Can I change line 12 and 13 to match the pins of the keypad?
This is such simple and great tutorial!

]]>
By: Marz https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-842549 Sat, 24 Jun 2023 07:44:23 +0000 http://randomnerdtutorials.com/?p=9202#comment-842549 Can you redo this with a port expander and I2C Please? I have tried other tutorials and they dont work with the latest library versions. I know if you guys do it you will do it properly 🙂

]]>
By: Paul https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-714715 Wed, 29 Dec 2021 08:50:54 +0000 http://randomnerdtutorials.com/?p=9202#comment-714715 Can you please update this tutorial to show how to use ISR interrupt routines, as keypads become unresponsive in more complex projects?

]]>
By: Rui Santos https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-262237 Wed, 22 Jul 2015 19:15:56 +0000 http://randomnerdtutorials.com/?p=9202#comment-262237 In reply to Aurel.

A keyboard with only 7 buttons? or you mean 7 rows? Here’s documentation on that subject: playground.arduino.cc/Main/I2CPortExpanderAndKeypads

]]>
By: Rui Santos https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-262226 Wed, 22 Jul 2015 19:00:56 +0000 http://randomnerdtutorials.com/?p=9202#comment-262226 In reply to cristian alcantara espinosa.

I’m sorry I only speak Portuguese and English…

]]>
By: Rui Santos https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-262225 Wed, 22 Jul 2015 19:00:38 +0000 http://randomnerdtutorials.com/?p=9202#comment-262225 In reply to Afeef Ansi.

Thank you!

]]>
By: cristian alcantara espinosa https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-262208 Wed, 22 Jul 2015 14:38:33 +0000 http://randomnerdtutorials.com/?p=9202#comment-262208 mencata traqbajar con al duino

]]>
By: Afeef Ansi https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-262207 Wed, 22 Jul 2015 14:38:07 +0000 http://randomnerdtutorials.com/?p=9202#comment-262207 Great what you have done !

]]>
By: Aurel https://randomnerdtutorials.com/arduino-membrane-keypad-tutorial/#comment-262118 Tue, 21 Jul 2015 15:25:17 +0000 http://randomnerdtutorials.com/?p=9202#comment-262118 How can I make such a keyboard and 7 buttons with i2c? schematics and code details. Let’s say a 15 * 2 lcd i2c still on :))
thanks

]]>