
This circuit features an ESP32-POE-ISO microcontroller connected to a 4-channel 30A 5V relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of high-power devices through the relay module.

The Relay 5V (250V, 30A) is an electromechanical switch designed to control high-power devices using a low-power control signal. It operates with a 5V DC signal to toggle the connection of circuits carrying up to 250V AC or DC at a maximum current of 30A. This makes it ideal for applications requiring isolation between the control circuit and the high-power load.

This circuit features an ESP32-POE-ISO microcontroller connected to a 4-channel 30A 5V relay module. The ESP32 controls the relay channels via its GPIO pins, allowing for the switching of high-power devices through the relay module.

This circuit features an ESP32 microcontroller interfaced with two 4-channel 30A 5V relays. The ESP32 controls the relays through its GPIO pins, enabling it to switch high-power loads on and off.

This circuit is designed for power distribution and safety control in an industrial setting. It features a main isolator and circuit breaker for power management, multiple PSUs for 5V, 12V, and 24V outputs, and a safety relay system that interfaces with E-stop buttons and a start switch to control a main contactor, ensuring safe operation and emergency power cut-off capabilities.

This circuit uses an ESP32 microcontroller to monitor current through two 5A current sensors and control a 2-channel relay module. The relays are used to switch 120V outlets, allowing the ESP32 to control the power supply to connected devices based on the current sensor readings.
The relay typically has 5 pins for SPDT models. Below is the pin configuration:
| Pin Name | Description |
|---|---|
| Coil+ | Positive terminal of the relay coil (connect to 5V DC control signal). |
| Coil- | Negative terminal of the relay coil (connect to ground). |
| Common (COM) | Common terminal for the load circuit. |
| Normally Open (NO) | Open circuit when the relay is inactive; closes when the relay is activated. |
| Normally Closed (NC) | Closed circuit when the relay is inactive; opens when the relay is activated. |
Note: For SPST relays, only the COM and NO pins are present.
Power the Relay Coil:
Connect the Load Circuit:
Control the Relay:
Below is an example of how to control the relay using an Arduino UNO:
// Define the relay control pin
const int relayPin = 7; // Connect this pin to the Coil+ terminal of the relay
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Ensure the relay is off initially
}
void loop() {
// Turn the relay on
digitalWrite(relayPin, HIGH); // Activates the relay
delay(5000); // Keep the relay on for 5 seconds
// Turn the relay off
digitalWrite(relayPin, LOW); // Deactivates the relay
delay(5000); // Keep the relay off for 5 seconds
}
Note: Use a transistor (e.g., 2N2222) or relay driver module if the Arduino cannot supply sufficient current to the relay coil.
Relay Not Activating:
Load Not Switching:
Voltage Spikes Damaging the Circuit:
Relay Overheating:
Q: Can I use this relay with a 3.3V control signal?
A: No, the relay requires a 5V control signal. Use a level shifter or transistor driver to step up the control voltage.
Q: Is the relay suitable for DC loads?
A: Yes, the relay can handle both AC and DC loads up to 250V.
Q: How do I know if the relay is activated?
A: Many relay modules include an LED indicator that lights up when the relay is activated. If using a bare relay, you can measure continuity between the COM and NO pins.
Q: Can I control multiple relays with one microcontroller?
A: Yes, but ensure the microcontroller can supply sufficient current or use relay driver modules for each relay.