
1. Introduction
2. Schematic
4P Pushbutton Module-HS-KEY4-L SchematicClick to view
Module Parameters
Pin Name | description |
|---|---|
G | GND (Negative Power Input) |
V | VCC (Positive Power Input) |
1 | Digital Signal Pin |
2 | Digital Signal Pin |
3 | Digital Signal Pin |
4 | Digital Signal Pin |
Power Supply Voltage: 3.3V / 5V
Connection method: PH2.0 terminal wire
Installation method: Modular fixed
4, Circuit Board Size

5 of Arduino IDE example program
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Arduino IDE Library Download and Import Tutorial:Click to view
Example program (UNO development board):
volatile int led;
volatile int light;
volatile int vaule;
void setup(){
Serial.begin(9600);
led = 6;
light = 0;
vaule = 0;
//ledๆฅD6๏ผๅไฝๆจกๆๆ้ฎๆจกๅๆฅA0
pinMode(A0, INPUT);
}
void loop(){
vaule = analogRead(A0);
Serial.println(vaule);
analogWrite(led, light);
if (vaule < 565 && vaule > 555) {
//ๅ
ณ็ฏ
light = 0;
} else if (vaule < 640 && vaule > 630) {
//ๅพฎไบฎ
light = 15;
} else if (vaule < 720 && vaule > 710) {
//ไบฎ
light = 100;
} else if (vaule < 860 && vaule > 850) {
//้ๅธธไบฎ
light = 255;
}
}6, ESP32 Python Example (for Mixly IDE/Misashi)
Choose the development board Python ESP32 [ESP32 Generic(4MB)] and upload in code mode
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial for Mixly IDE ESP32 library:Click to view
Example program (ESP32-Python):
ๅพ
ๆดๆฐ...7, Mixly example program (graphical language)
Example program (UNO development board):Click to download
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial of Mixly IDE Arduino library:Click to view

Example Program (ESP32 Development Board):Click to download
Attention: If prompted with an error message about the library file during program upload, please import the library file first!
Download and import tutorial for Mixly IDE ESP32 library:Click to view
Image pending update...
8. Setting up the Test Environment
Arduino UNO Test Environment Setup
Prepare Components:
HELLO STEM UNO R3 DEVELOPMENT BOARD *1
HELLO STEM UNO R3 P EXPANSION BOARD *1
USB TYPE-C DATA CABLE *1
LED module (HS-F08L) *1
4-Digit Push Button Module (HS-KEY4-L) *1
PH2.0 3P dual headed terminal line *1
PH2.0 6P dual head terminal line *1
Circuit wiring diagram:

ESP32 Test Environment Setup
Prepare Components:Pending update...
Circuit wiring diagram:Pending update...
9, Video tutorial
Video tutorial:Click to view
10, Test results
Arduino UNO test results:
After the device is connected to the wire, burn the above program to the UNO-R3 PRO development board and then connect the power supply. Pressing different buttons will also change the brightness of the LED.