5V DC input (connect to a 5V power source)
5V DC input (connect to a 5V power source)
Ground (connect to ground)
Input signal (connect to a digital output from a microcontroller, Arduino, or Raspberry Pi)
Output terminal (connect to the high-power device you want to control)
Operating Characteristics
-20C to 75C
-40C to 85C
20% to 80% RH
Applications
| The 5V 1 Channel SSR Module is suitable for a wide range of applications, including |
Industrial automation
Home automation
IoT projects
Robotics
LED lighting control
Motor control
Pump control
Safety Precautions
Ensure the module is used within the specified operating temperature and humidity range.
Avoid overvoltage and overcurrent conditions to prevent damage to the module.
Use proper wiring and insulation to prevent electrical shock or fire hazards.
Follow proper safety procedures when working with high-power devices.
By following the guidelines and precautions outlined above, the 5V 1 Channel SSR Module can provide reliable and efficient control of high-power devices in a variety of applications.
5V 1 Channel SSR Module DocumentationOverviewThe 5V 1 Channel SSR (Solid State Relay) Module is a low-cost, compact, and widely used IoT component that allows you to control AC loads using a microcontroller or other digital devices. It is suitable for a wide range of applications, including home automation, industrial control, and robotics.Pinouts and ConnectionsVCC: 5V power supply input
GND: Ground connection
IN: Input signal pin (TTL level, active high)
NO ( Normally Open ): Output pin for the AC load
NC ( Normally Closed ): Output pin for the AC loadFeatures5V input signal compatible with most microcontrollers
Supports AC loads up to 2A
Isolation between input and output circuits
Low power consumption
Compact size and easy to useCode Examples### Example 1: Basic On/Off Control using ArduinoIn this example, we will use an Arduino Uno to control a lamp connected to the SSR Module.Hardware ConnectionConnect the VCC pin of the SSR Module to the 5V pin of the Arduino Uno
Connect the GND pin of the SSR Module to the GND pin of the Arduino Uno
Connect the IN pin of the SSR Module to digital pin 2 of the Arduino Uno
Connect the NO pin of the SSR Module to one terminal of the lamp
Connect the other terminal of the lamp to AC power (e.g., wall outlet)Arduino Code
```c
const int ssrPin = 2; // choose a digital pin on the Arduinovoid setup() {
pinMode(ssrPin, OUTPUT);
}void loop() {
digitalWrite(ssrPin, HIGH); // turn the lamp on
delay(1000);
digitalWrite(ssrPin, LOW); // turn the lamp off
delay(1000);
}
```
### Example 2: Home Automation using ESP32 and Blynk AppIn this example, we will use an ESP32 board to control a fan connected to the SSR Module remotely using the Blynk app.Hardware ConnectionConnect the VCC pin of the SSR Module to the 5V pin of the ESP32 board
Connect the GND pin of the SSR Module to the GND pin of the ESP32 board
Connect the IN pin of the SSR Module to digital pin 12 of the ESP32 board
Connect the NO pin of the SSR Module to one terminal of the fan
Connect the other terminal of the fan to AC power (e.g., wall outlet)ESP32 Code (Blynk Library)
```c
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>char auth[] = "Your_Blynk_Authorization_Token";
char ssid[] = "Your_WiFi_SSID";
char pass[] = "Your_WiFi_Password";const int ssrPin = 12; // choose a digital pin on the ESP32BlynkTimer timer;void setup() {
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
pinMode(ssrPin, OUTPUT);
timer.setInterval(1000, controlFan);
}void controlFan() {
int fanState = digitalRead(0); // read the state of a virtual pin in Blynk app
if (fanState == HIGH) {
digitalWrite(ssrPin, HIGH); // turn the fan on
} else {
digitalWrite(ssrPin, LOW); // turn the fan off
}
}void loop() {
Blynk.run();
timer.run();
}
```
Note: In this example, you need to replace the `Your_Blynk_Authorization_Token`, `Your_WiFi_SSID`, and `Your_WiFi_Password` placeholders with your actual Blynk app token and WiFi credentials. Additionally, you need to create a virtual pin in the Blynk app and configure it to send digital signals to the ESP32 board.