这是本文档旧的修订版!
4*4 matrix keyboard module
Overview
4*4 capacitive matrix keyboard, reading analog quantities and interpreting corresponding key values。
Products real shot
Product parameters
Working voltage: 3.3V~5V
analog sensor
Use PH-2.03P socket
The sensor matches Arduino, Micropython, etc.
pin description
serial number | name | Function description |
---|---|---|
1 | VCC | 3V3~5V power supply positive pole |
2 | GND | Negative pole of power supply |
3 | S | Analog signal output |
Product Size
Tutorial
Arduino
Arduino library file downloadopen in new window
When using the sample code, the library files need to be placed in the same folder. (As shown below)
sample code
''/*! * WMNologo * 矩阵键盘 * */ #include "Matrix_buttons.h" // 创建对象 Matrix_buttons Matrix_buttons1; // 主程序开始 void setup() { Serial.begin(9600); } void loop() { //S信号线接入A0 Serial.println(Matrix_buttons1.get_follow_sensor(A0)); } ''
#result
The serial port prints the value corresponding to the matrix keyboard
Mind+
https://www.nologo.tech/assets/img/sensor/MatrixbitKeyBoard/MatrixbitkeyBoard4.png?nolink& Mixly
If you need to expand, you can contact the group owner in the QQ group for development
评论