Solid state relay SSR-40DA (AC load) with ESP32

Supply 3-32 V Bus GPIO
3(+)4(-)12

Pins and ESP32 wiring

PinRoleESP32 pinNotes
3(+)Input (the ESP32 drives it)D25Control + (3 to 32 V DC). Takes about 10 mA: HIGH = load on
4(-)GroundGNDControl -
1Not wired to the ESP32—AC load terminal. Mains voltage is dangerous. Does not switch DC loads
2Not wired to the ESP32—AC load terminal

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

Starter code (Arduino)

void setup() { pinMode(25, OUTPUT); }  // 3(+)

void loop() {
  digitalWrite(25, HIGH);
  delay(500);
  digitalWrite(25, LOW);
  delay(500);
}

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.