这是本文档旧的修订版!


4*4 matrix keyboard module

4*4 capacitive matrix keyboard, reading analog quantities and interpreting corresponding key values。

Working voltage: 3.3V~5V

analog sensor

Use PH-2.03P socket

The sensor matches Arduino, Micropython, etc.

serial numbernameFunction description
1VCC3V3~5V power supply positive pole
2GNDNegative pole of power supply
3SAnalog signal output

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

If you need to expand, you can contact the group owner in the QQ group for development

请输入您的评论. 可以使用维基语法:
 
  • developmentboard/4_4矩阵键盘模块.1731507104.txt.gz
  • 最后更改: 2024/11/13 14:11
  • admin