4*4 Matrix Keyboard Module
Overview
The 4*4 capacitive matrix keyboard reads the analog quantity to determine the corresponding key value.
Product Photo
![](/assets/img/sensor/MatrixbitKeyBoard/MatrixbitkeyBoard2.png)
Product Parameters
- Operating voltage: 3.3V~5V
- Analog sensor
- Using PH-2.03P socket
- The sensor is compatible with Arduino, Micropython, etc.
Pin Description
Number | Name | Functional Description |
---|---|---|
1 | VCC | 3V3~5V positive power supply |
2 | GND | Negative power supply |
3 | S | Analog signal output |
Product Dimensions
![](/assets/img/sensor/MatrixbitKeyBoard/MatrixbitkeyBoard1.png)
User Guide
Arduino
Download the Arduino library file
When using the sample code, the library file needs to be placed in the same folder. (As shown in the figure below)
Sample Code
/*!
* WMNologo
* Matrix Keyboard
*
*/
#include "Matrix_buttons.h"
// Create an object
Matrix_buttons Matrix_buttons1;
// The main program starts
void setup() {
Serial.begin(9600);
void loop() {
// The S signal line is connected to A0
Serial.println(Matrix_buttons1.get_follow_sensor(A0));
Result
The corresponding value of the matrix keyboard is printed in the serial port
Mind+
Download the Mind+ extension library (Please download the Mind+Uno extension library when downloading. Currently, only the Uno motherboard is supported. If you need expansion, you can contact the group owner in the QQ group for development)
Mixly
If you need expansion, you can contact the group owner in the QQ group for development.
Troubleshooting
For more questions and interesting applications, please visit the forum or join the QQ technical exchange group: 522420541