
This circuit controls a DC motor using a 1-channel relay. The relay is powered by a DC power source, and it switches the motor on and off by connecting or disconnecting the motor's power supply.

The Relay 1 Channel (Manufacturer: Arduino, Part ID: MEGA) is an electromagnetic switch that allows you to control a single circuit using a low-power input signal. This component is widely used in applications where electrical isolation and high-power switching are required. It enables the opening or closing of a circuit, making it ideal for controlling high-voltage devices such as lights, motors, and appliances using microcontrollers like the Arduino.

This circuit controls a DC motor using a 1-channel relay. The relay is powered by a DC power source, and it switches the motor on and off by connecting or disconnecting the motor's power supply.

This circuit uses an IR sensor to control a 1 Channel 5V Relay Module, which is powered by a 9V battery. The IR sensor detects an object and sends a signal to the relay module to switch its state, enabling or disabling the connected load.

This circuit connects an ESP32 microcontroller to a 4-channel 5V relay module. The ESP32's digital pins (D19, D21, D22, D23) are used to control the relay channels (IN1, IN2, IN3, IN4) respectively. The circuit is designed to allow the ESP32 to switch external devices on and off via the relay module.

This circuit utilizes an Arduino UNO to control a 1 Channel 5V Relay Module, which in turn can switch a load on and off. The relay is activated by a digital signal from the Arduino on pin D2, and an LED is connected to indicate the relay's status, with a resistor limiting the current to the LED.
The Relay 1 Channel is designed to interface seamlessly with microcontrollers like the Arduino MEGA. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC |
| Trigger Voltage | 3.3V to 5V DC |
| Maximum Switching Voltage | 250V AC / 30V DC |
| Maximum Switching Current | 10A |
| Relay Type | SPDT (Single Pole Double Throw) |
| Isolation | Optocoupler-based isolation |
| Dimensions | 50mm x 26mm x 18mm |
| Weight | ~20g |
| Pin Name | Description |
|---|---|
| VCC | Connect to the 5V power supply from the microcontroller or external source. |
| GND | Ground connection. |
| IN | Signal input pin to control the relay (3.3V or 5V logic level). |
| COM | Common terminal for the relay switch. |
| NO | Normally Open terminal (connected to COM when the relay is activated). |
| NC | Normally Closed terminal (connected to COM when the relay is deactivated). |
VCC pin to a 5V power source and the GND pin to ground.IN pin to a digital output pin of your Arduino MEGA or another microcontroller.COM and NO terminals if you want the device to turn on when the relay is activated.COM and NC terminals if you want the device to turn off when the relay is activated.IN pin to activate or deactivate the relay.// Example code to control a 1-channel relay with Arduino MEGA
// Connect the relay's IN pin to digital pin 7 on the Arduino MEGA
#define RELAY_PIN 7 // Define the pin connected to the relay's IN pin
void setup() {
pinMode(RELAY_PIN, OUTPUT); // Set the relay pin as an output
digitalWrite(RELAY_PIN, LOW); // Ensure the relay is off at startup
}
void loop() {
digitalWrite(RELAY_PIN, HIGH); // Turn the relay on
delay(1000); // Keep the relay on for 1 second
digitalWrite(RELAY_PIN, LOW); // Turn the relay off
delay(1000); // Keep the relay off for 1 second
}
Relay Not Activating:
IN pin.Load Not Switching:
COM, NO, and NC terminals.Relay Clicking but No Output:
Microcontroller Resetting When Relay Activates:
Q: Can I use the relay with a 3.3V microcontroller like the Arduino Due?
A: Yes, the relay can be triggered with a 3.3V signal, but ensure the VCC pin is powered with 5V.
Q: Is the relay suitable for switching DC motors?
A: Yes, but you should use a flyback diode across the motor terminals to protect the relay from voltage spikes.
Q: Can I control multiple relays with one Arduino MEGA?
A: Yes, the Arduino MEGA has multiple digital pins, allowing you to control several relays simultaneously.
Q: What is the lifespan of the relay?
A: The relay has a mechanical lifespan of approximately 100,000 operations under normal conditions.