Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Solid State Relay (Fotek SSR-25DA and SSR Modules)

Component guide · Intermediate · 3 min read

Solid State Relay (Fotek SSR-25DA and SSR Modules)

Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the Solid state relay isSolid state relay pinoutWiring the Solid state relayExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

A solid state relay (SSR) switches an AC load with a triac and an optocoupler instead of a moving contact, so it is silent and lasts far longer. The Fotek SSR-25DA takes 3 to 32 V DC in and switches up to 25 A at 24 to 380 V AC; G3MB-202P SSR modules switch about 2 A AC per channel. DA types switch AC only, never DC loads.

Key specs at a glance

SSR-25DA input
3 to 32 V DC, about 7.5 mA
SSR-25DA output
24 to 380 V AC, 25 A (with a heatsink)
SSR modules
G3MB-202P, 5 V input, 100 to 240 V AC, 2 A per channel
Switching
Zero-cross turn-on on most models
Leakage
A few mA when off (enough to glow some LED lamps)
Voltage drop
About 1 to 1.6 V when on, which makes heat
!Safety: Mains voltage can kill

This part is often wired to 230 V mains. Do all wiring with the plug pulled out, keep mains wires inside a closed box with strain relief, add a fuse, and never touch the board while it is plugged in. If you are new to mains wiring, have an electrician check it before you switch on.

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1Fotek Panel Solid State Relay₹253
  • Option 2Solid State Relay Module (SSR)₹129
  • Option 3Solid State Relay Module (Multi-Channel)₹1,002
01

What the Solid state relay is

SSRs suit heaters, 3D printer beds on mains, kilns, sous-vide cookers and lamps that switch often. Zero-cross switching turns the load on as the AC voltage passes zero, which cuts electrical noise.

An SSR gets hot: about 1 W per amp of load. The 25 A rating needs a large heatsink; without one, keep to about 5 A. Fake SSRs are common, so derate to half the label.

02

Solid state relay pinout

The pins on the Solid state relay and what each one does.

PinFunction
3 (+) / 4 (-)DC control input
1 / 2AC load terminals, in series with the live wire
Module DC+ / DC- / CH1...Module supply and inputs (active-low or active-high, see board)
Module output terminalsAC load, per channel
PinFunction
3 (+) / 4 (-)
DC control input
1 / 2
AC load terminals, in series with the live wire
Module DC+ / DC- / CH1...
Module supply and inputs (active-low or active-high, see board)
Module output terminals
AC load, per channel
03

Wiring the Solid state relay

Mains wiring must be done in an earthed enclosure with a fuse or MCB on the live wire and cable rated for the load. Have a qualified electrician check it. The ESP32's 3.3 V output drives the SSR-25DA input directly.

Solid state relay pinArduino UnoESP32
Input + (3)D9GPIO 26
Input - (4)GNDGND
Load 1 / 2Mains live to SSR to heater; heater neutral to mains neutralSame
Input + (3)
Arduino Uno:
D9
ESP32:
GPIO 26
Input - (4)
Arduino Uno:
GND
ESP32:
GND
Load 1 / 2
Arduino Uno:
Mains live to SSR to heater; heater neutral to mains neutral
ESP32:
Same
04

Example code

Caution

Do not use analogWrite() at 490 Hz on a zero-cross SSR: it can only switch at mains zero crossings (100 times a second at 50 Hz). Use a slow window of 1 to 2 seconds driven by a PID for temperature control.

Slow time-proportional heater control (1 s window) · Arduino C++Verify & upload in Electrolark
const int SSR = 9;
const unsigned long WINDOW = 1000;   // ms; zero-cross SSRs need slow PWM
float duty = 0.35;                   // 35 % power, set by your PID

void setup() { pinMode(SSR, OUTPUT); }

void loop() {
  unsigned long t = millis() % WINDOW;
  digitalWrite(SSR, t < duty * WINDOW ? HIGH : LOW);
}
05

Setup and tuning

Heatsink

fit the SSR on an aluminium heatsink with thermal paste for loads above about 5 A.

Derating

use an SSR rated at least twice the load current.

Inductive loads

motors and transformers need a random-turn-on SSR or a snubber.

Testing

an SSR may read open on a multimeter with no load; test with a lamp.

Failure mode

SSRs usually fail shorted (load stuck on), so add a thermal fuse or cut-out for heaters.

06

What you need

Shop this list5 of 8 found in our store · ₹1,950

  • Fotek Panel Solid State Relay: the part this guide coversFotek Panel Solid State Relay₹253
  • Solid State Relay Module (SSR): another version this guide coversSolid State Relay Module (SSR)₹129
  • Solid State Relay Module (Multi-Channel): another version this guide coversSolid State Relay Module (Multi-Channel)₹1,002
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • TO-220 aluminium heatsink: small loads; use a large finned heatsink above 5 AFind this part
  • Fuse holder: to fuse the switched loadFind this part
  • Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
07

Alternatives and when to choose them

  • ✓SSR or relay: when to choose each.
  • ✓5V relay module: mechanical relays that switch AC and DC.
  • ✓Optocouplers: the isolation inside an SSR.
08

Common mistakes to avoid

  • !Using a DA (AC output) SSR to switch a DC load.
  • !Running 25 A with no heatsink.
  • !Fast PWM on a zero-cross SSR.
  • !Relying on the SSR alone to stop an overheating heater.
09

Frequently asked questions

Can an SSR-25DA switch DC?

No. DA means DC input, AC output. Use a DD type or a MOSFET for DC loads.

Why does my LED lamp glow when the SSR is off?

Leakage current of a few mA. Add a small load or a resistor-capacitor across the lamp.

Can I dim a heater with it?

Yes, with slow time-proportional control over 1 to 2 seconds.

Does it need a heatsink?

Yes above about 5 A; it drops about 1.5 V, so 10 A makes 15 W of heat.

Can I use it with an ESP32?

Yes. The DC input works from 3 V, so a 3.3 V GPIO drives it directly.

Parts for this guide

  • Fotek Panel Solid State Relay
    ₹253View
  • Solid State Relay Module (SSR)
    ₹129View
  • Solid State Relay Module (Multi-Channel)
    ₹1,002View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • TO-220 Aluminium Heatsink 25mm
    ₹9View
  • Fuse Holder (Panel, PCB and HRC)
    ₹105View
  • Digital Multimeter
    ₹177View
Shop RelaysShop Relay Modules

Keep learning

ComparisonIntermediateSolid-State Relay vs Mechanical RelayA mechanical relay closes metal contacts with a coil, so it switches AC or DC with almost no voltage drop or leakage, but it clicks and wears out.3 min read · Switches, Relays & InputComponent guideBeginnerRelay ModulesA relay module is an electrically controlled switch that lets a microcontroller turn a separate circuit on or off, such as a 12 V pump or a mains lamp.4 min read · Switches, Relays & InputComponent guideIntermediateOptocouplersAn optocoupler contains an LED and a light-sensitive transistor in one package with no electrical connection between them.3 min read · Semiconductors & ICs

Sources

  • Fotek SSR series datasheet
  • Omron G3MB-202P datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Solid state relay isSolid state relay pinoutWiring the Solid state relayExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)5 items · ₹1,765

Fotek Panel Solid State Relay · Solid State Relay Module (SSR) · Solid State Relay Module (Multi-Channel) · Digital Multimeter · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Slow PWM: on for 35 % of each 1 s window. Good for heaters, not for motors.

SSR ON
Heater power35 %

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question