ESP32 KY-019 5V Relay Module

KY-019 5V Relay Module image

KY-019

Protocol: Digital

Overview

The KY-019 is a 5V relay module that enables microcontrollers to control high-voltage devices. It supports both AC and DC loads, making it suitable for various automation and control applications.

About KY-019 5V Relay Module

The KY-019 5V Relay Module allows microcontrollers like Arduino and ESP32 to control high-voltage devices. It operates on a 5V signal and can switch AC loads up to 250V at 10A or DC loads up to 30V at 10A. The module features a single-channel relay with both normally open (NO) and normally closed (NC) contacts, providing flexibility in controlling connected devices. An onboard LED indicates the relay’s status, lighting up when the relay is active.

Where to Buy

KY-019 5V Relay Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Operating Voltage 5V DC
Control Signal Voltage 5V DC
Maximum AC Load 250V AC at 10A
Maximum DC Load 30V DC at 10A
Dimensions 53 x 18 x 20 mm
Weight 16 g

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • Pin (-): Connects to ground (GND).
  • Pin (+): Connects to VCC (5V).
  • Pin (S): Connects to the control signal from the microcontroller.

Wiring with ESP32

  • KY-019 Pin (-): Connect to ESP32 GND.
  • KY-019 Pin (+): Connect to ESP32 5V.
  • KY-019 Pin (S): Connect to a digital GPIO pin on ESP32 (e.g., GPIO5).

Troubleshooting Guide

Common Issues

❌ Relay Not Activating

⚠️ Unstable Relay Operation

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-019 5V Relay Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.