Relay
Controlling Relay 1CH with Arduino Uno
What is the Relay 1CH?
A single-channel relay module with opto-isolation, letting a microcontroller safely switch AC appliances or high-current DC loads.
Specifications
| Control side | 5 V DC, opto-isolated, ~15-20 mA when energized |
| Switching side | Up to 250V AC / 10A or 30V DC / 10A on the common SRD-05VDC-SL-C relay used on most of these boards |
| Trigger logic | Active LOW on most modules — a LOW signal closes the relay, HIGH releases it. Some boards are active HIGH, check the silkscreen or test with a multimeter first |
| Indicator | Onboard LED lights when the relay is energized |
Relay 1CH Pinout
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power, 5V DC, control side |
| 2 | GND | Ground, control side |
| 3 | IN | Signal input from the MCU — active LOW on most modules |
| 4 | COM | Common, switching side |
| 5 | NO | Normally open — connects to COM when energized |
| 6 | NC | Normally closed — connects to COM when de-energized |
If you're switching mains voltage, treat COM/NO/NC as a separate high-voltage circuit — keep it physically isolated from the 5V control side and never touch it while powered.
Setting Up Relay 1CH with Arduino Uno
Library
—
No library required — just a digital output pin
Wiring
| Component pin | Arduino Uno pin | Note |
|---|---|---|
| VCC | 5V | Powers the relay module's onboard optocoupler + coil driver |
| GND | GND | — |
| IN | Pin 7 | Most modules are active-LOW: writing LOW energizes the relay |
Example code
If you are switching mains voltage on the relay's dry contacts, that wiring is a separate, high-risk circuit — keep it isolated from the low-voltage side and, if in doubt, have someone qualified do the mains wiring.
Related Guides & Projects

Arduino Uno R3 Pinout: Every Pin Explained (Digital, Analog, PWM, Power)
Complete Arduino Uno R3 pinout reference: all 14 digital pins, 6 analog inputs, PWM, UART, SPI, I2C, AREF, and power rails explained with wiring tips and common mistakes.

Ultimate Arduino Mega 2560 Pinout Guide: Complete Power & I/O Reference
Master the Arduino Mega 2560 pinout. Detailed reference for all 54 digital pins, 16 analog inputs, PWM, UARTs, SPI, I2C, interrupts, and power. Includes a printable table and practical wiring tips.

Interfacing HC-SR04 Ultrasonic Sensor with Arduino
Measure distance accurately using ultrasonic sound waves and an Arduino Uno — no complex math, no expensive hardware.
HC‑SR04 Ultrasound Distance Measurement with Arduino – Parking Alert (LCD & Buzzer)
Learn HC‑SR04 ultrasound distance measurement with Arduino Uno. Build a parking alert system with 16x2 LCD and buzzer – shows distance and beeps faster as you approach.