The MKE-M05 Optocoupler Relay Module is an electronic device designed to provide electrical isolation between its input and output while allowing signal control. It uses an optocoupler, also known as an opto-isolator, to transfer signals via light, ensuring that high voltages on the output side do not affect the low voltage input side. This module is commonly used in applications where interfacing low voltage microcontrollers with high voltage circuits is necessary, such as controlling home appliances, industrial machines, and other high-power devices.
Pin Name | Description |
---|---|
Vcc | Power supply for the module (3.3V to 5V DC) |
GND | Ground connection |
IN | Input signal to trigger the relay |
NO | Normally Open contact of the relay |
COM | Common contact of the relay |
NC | Normally Closed contact of the relay |
// Define the relay control pin
const int relayPin = 7;
void setup() {
// Set the relay pin as an output
pinMode(relayPin, OUTPUT);
}
void loop() {
// Turn on the relay
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
// Turn off the relay
digitalWrite(relayPin, LOW);
delay(1000); // Wait for 1 second
}
Note: This example assumes that the IN pin of the MKE-M05 Optocoupler Relay Module is connected to digital pin 7 on the Arduino UNO. The relay will switch on and off every second.
Remember to always follow safety precautions when working with high voltage and current. This documentation is provided for educational purposes and should be applied by experienced individuals or under expert supervision.