Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Controlled Solenoid Valve with Relay Switching

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Solenoid Valve with Relay Switching

Circuit Documentation

Summary of the Circuit

This circuit is designed to control a plastic solenoid valve using an ESP32 microcontroller and a 1-channel 5V relay module. The ESP32 is powered by a 2x 18650 battery pack. The relay module acts as an intermediary, allowing the ESP32 to control the high-power solenoid valve safely. The ESP32's GPIO pin is used to trigger the relay, which in turn controls the power to the solenoid valve. The ground connections are shared among the ESP32, the relay module, and the battery pack to complete the circuit.

Component List

ESP32 (30 pin)

1 Channel 5V Relay Module

2x 18650 Battery Pack

Plastic Solenoid Valve

Wiring Details

ESP32 (30 pin)

1 Channel 5V Relay Module

2x 18650 Battery Pack

Plastic Solenoid Valve

Documented Code

There is no code provided for the microcontroller in this circuit. The ESP32 would typically be programmed to control the relay module by setting GPIO pin D23 as an output and toggling it to activate the relay, which would in turn control the solenoid valve. However, without the actual code, we cannot provide further documentation on the software aspect of this circuit.