CIRCUITKAR
ProductsBlogToolsAboutContact
CIRCUITKAR

Components for Builders.

IG

Explore

  • Products
  • Blog
  • Tools & Calculators
  • About
  • Contact
  • Track Order

Payments

Secured by Razorpay

UPI, Cards, Net Banking & Wallets supported at launch.

ยฉ 2025 Circuitkar. GST Registered. Silvassa, India.

All articles
relayrelay-modulehome-automationesp32switchingmains

How to Choose the Right Relay Module

Circuitkar Team ยท 4 May 2026

How to Choose the Right Relay Module

Relay modules are among the most commonly bought and most commonly wrong-purchased components in electronics. People grab a 4-channel relay board without checking the coil voltage, the trigger logic, or the load rating โ€” and then spend hours debugging. This guide covers every variable that matters.

How Many Channels Do You Need?

Relay modules come in 1, 2, 4, 8, and 16 channel variants. The most popular for home automation is the 4-channel relay board โ€” enough for four lights or fans in a room. For an entire flat, an 8-channel board makes sense.

Key point: each relay on a standard board draws ~70โ€“90 mA when energized. An 8-channel board with all relays ON draws ~700 mA on the 5V coil supply. Make sure your 5V power source can handle this current. Many beginners run 8-channel boards from the Arduino 5V pin, which maxes out at 500 mA โ€” this causes brownouts and random relay behavior.

Coil Voltage: 5V vs 3.3V

Standard relay modules use 5V coils. The ESP32 and ESP8266 operate at 3.3V logic and their GPIO pins supply only ~12 mA at 3.3V โ€” not enough to directly drive a 5V relay coil.

These modules solve this with a transistor driver (usually S8050 or BC547) on each channel: the 3.3V GPIO drives the transistor base, the transistor pulls the 5V coil. This works provided VCC (the coil supply) is 5V from your USB or power supply, not from the ESP32's 3.3V output.

Optocoupler-isolated boards add a PC817 or similar opto between GPIO and the transistor, completely separating the control and load sides electrically. These are safer for mains-voltage switching projects.

Active HIGH vs Active LOW

This trips up beginners constantly. Most relay modules sold in India are active LOW: the relay energizes when the GPIO pin is driven LOW (0V) and de-energizes when HIGH (3.3V). This means relays are ON at boot when GPIO pins float or default LOW โ€” a safety hazard for mains-connected loads.

Check the module label or product page. Active HIGH modules energize on HIGH signal and are safer as a default. If you have an active LOW board, initialize all relay pins as HIGH in your setup() function before configuring them as outputs.

Contact Ratings: What the "10A 250VAC" Label Means

The relay contact rating on standard blue boards (SRD-05VDC-SL-C relays) is typically 10A at 250VAC or 10A at 30VDC. This is the maximum switching capacity.

In practice, derate by 30โ€“40% for inductive loads (motors, pumps, solenoids): treat a 10A relay as a 6โ€“7A relay for motors. Never switch an AC motor directly with a relay unless you add a snubber circuit (a 100nF/275VAC capacitor + 100ฮฉ resistor across the contacts) to suppress the voltage spike when the motor turns off.

For resistive loads (bulbs, heaters): the 10A rating is accurate. A 1000W bulb at 230VAC draws ~4.3A โ€” a standard relay handles this with margin.

Mechanical Relay vs Solid State Relay (SSR)

Mechanical relays are cheap (โ‚น80โ€“200 for a 4-channel board), work at any switching frequency up to ~10 Hz, produce an audible click, and have a lifespan of ~100,000 operations.

Solid State Relays (SSRs) have no moving parts, switch silently, handle up to 50 Hz switching, and last much longer. They are better for heating elements, dimmers (with a TRIAC-based SSR), and situations where silent operation matters. A single-channel 40A SSR costs โ‚น300โ€“500. They require a heatsink for high current loads.

For a home automation project switching lights and fans a few times per day: mechanical relay is fine. For a PID temperature controller switching a heater 10 times per second: use an SSR.

Wiring a Relay Module to ESP32: The Right Way

  1. Connect relay board VCC to the 5V supply (not ESP32's 3.3V output)
  2. Connect relay board GND to common GND (shared with ESP32 GND)
  3. Connect relay board IN1 to ESP32 GPIO (e.g., GPIO 26)
  4. For isolated boards, also connect JD-VCC to 5V supply separately
  5. Wire your AC load through the relay COM and NO (Normally Open) contacts

Never run AC mains wiring near your low-voltage breadboard. Use terminal blocks and properly rated cable (1.5 mmยฒ minimum for 10A mains loads).

Recommended Modules

  • For beginners/home automation: 4-channel relay board, 5V coil, optocoupler isolated, active LOW โ€” โ‚น120โ€“180
  • For ESP32 directly: 3.3V compatible relay board or use a 4-channel board with transistor buffering
  • For industrial use: DIN rail mount relay modules with screw terminals
  • For heating/dimming: 40A SSR with heatsink

Browse relay modules at Circuitkar โ€” we carry both standard 4-channel boards and optocoupler-isolated variants.

Share: X LinkedIn

Related Articles

Relay Modules for Industrial Control: What to Know Before Buying

Contact ratings, isolation requirements, DIN rail options, SSR vs mechanical for industrial use โ€” the buying guide for professionals.

ESP32 for Small Factory Automation: A Practical Starter Guide

How small Indian manufacturers are using ESP32 for basic factory monitoring and control โ€” real use cases, limitations, and what it costs to get started.

Home Automation Bill of Materials: Complete Component List with Prices

Full BOM for a 3-room smart home โ€” every component, quantity, price range, and total cost estimate for a DIY home automation installation.