433 MHz receiver (XY-MK-5V) with ESP32
Supply 5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VCC | Power | VIN | 5 V only (4.5 to 5.5 V) |
| DATA | Output (the part drives it) | D25 | Data output at 5 V level: use a voltage divider before the ESP32 |
| DATA2 | Not wired to the ESP32 | — | Same signal as DATA (joined on the board) |
| GND | Ground | GND |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
This module is sold for 5 V. Its outputs may be 5 V: use a level shifter or a voltage divider on ESP32 inputs.
Starter code (Arduino)
void setup() {
Serial.begin(115200);
pinMode(25, INPUT); // DATA
}
void loop() {
Serial.println(digitalRead(25));
delay(100);
}
Sources
- XY-MK-5V 433 MHz receiver module datasheet, Pins VCC, DATA, DATA, GND; supply 5 V DC
Try it in 3D in BoardPilot
Related parts
1x4 membrane keypad (4 keys)4x3 membrane keypad (12 keys)4x4 membrane keypad5-way navigation button module74HC165 input shift registerArcade button 30 mm with LED
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.