1.Product Introduction
The 4×4 touch keyboard module is an input device used to input data into a computer or other electronic device. Each key of this keyboard is a capacitive touch design, with a layout of four rows and four columns, and each key represents a specific character. When a finger touches a key, it causes a corresponding change in the capacitance of the touch key. Once the detection circuit connected to the key detects this capacitance change, it outputs information that the corresponding key has been pressed.
Application reference: password doors, calculators, ATM machines, mobile phones, etc.
2.Parameter Specification
Parameter | Value//Description |
---|---|
Operating voltage | 3.3V~5V |
Operating temperature | -40°C~+85°C |
Communication method | I2C |
Size | 5.6cm*7.8cm |
3.Wiring Diagram
Hint
Expansion board is attached to esp32 controller board.
4×4Touch Keyboard | ESP32 |
---|---|
SCL | SCL |
SDA | SDA |
VCC | 5V |
GND | GND |
4.Sample Code
1#include <ACB_KeyBoard_I2C.h>
2ACB_KeyBoard_I2C kb;//Create a touch keyboard object
3
4void setup() {
5
6 Serial.begin(115200);
7}
8
9void loop() {
10 char customKey = kb.getKey();//Get the value of a key
11 if(customKey){ //Waiting for a key touch
12 Serial.print(customKey);
13 delay(500);
14 }
15
16 }
17
18
5.Test Result
After you have successfully connected the circuit according to the wiring diagram and successfully uploaded the correct program, when you touch and press a key, the serial port monitor will print the corresponding key value.
6.Related Resources
7.Get One Now
B2B Business: info@acebott.com
1.Product Introduction
The 4×4 touch keyboard module is an input device used to input data into a computer or other electronic device. Each key of this keyboard is a capacitive touch design, with a layout of four rows and four columns, and each key represents a specific character. When a finger touches a key, it causes a corresponding change in the capacitance of the touch key. Once the detection circuit connected to the key detects this capacitance change, it outputs information that the corresponding key has been pressed.
Application reference: password doors, calculators, ATM machines, mobile phones, etc.
2.Parameter Specification
Parameter Value//Description Operating voltage 3.3V~5V Operating temperature -40°C~+85°C Communication method I2C Size 5.6cm*7.8cm 3.Wiring Diagram
Hint
Expansion board is attached to esp32 controller board.
4×4Touch Keyboard ESP32 SCL SCL SDA SDA VCC 5V GND GND 4.Sample Code
1#include <ACB_KeyBoard_I2C.h> 2ACB_KeyBoard_I2C kb;//Create a touch keyboard object 3 4void setup() { 5 6 Serial.begin(115200); 7} 8 9void loop() { 10 char customKey = kb.getKey();//Get the value of a key 11 if(customKey){ //Waiting for a key touch 12 Serial.print(customKey); 13 delay(500); 14 } 15 16 } 17 185.Test Result
After you have successfully connected the circuit according to the wiring diagram and successfully uploaded the correct program, when you touch and press a key, the serial port monitor will print the corresponding key value.
6.Related Resources
7.Get One Now
B2B Business: info@acebott.com