

The RelayMK by NJ (Manufacturer Part ID: REL) is a relay module designed to act as an electronic switch. It uses an electromagnet to mechanically operate a switch, enabling the control of high-voltage or high-current devices using low-voltage signals. This makes it an essential component for interfacing microcontrollers, such as Arduino, with devices like motors, lights, and home appliances.

![Image of [Circuit Design] RFID-Based Equipment Logger for DPWH : A project utilizing relaymk in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/c81f4194-7010-43d8-91fe-f2eb970df771.png)



![Image of [Circuit Design] RFID-Based Equipment Logger for DPWH : A project utilizing relaymk in a practical application](https://abacasstorageaccnt.blob.core.windows.net/cirkit/c81f4194-7010-43d8-91fe-f2eb970df771.png)


The following table outlines the key technical details of the RelayMK module:
| Parameter | Value | 
|---|---|
| Operating Voltage | 5V DC | 
| Trigger Voltage | 3.3V to 5V DC | 
| Maximum Load Voltage | 250V AC / 30V DC | 
| Maximum Load Current | 10A | 
| Relay Type | SPDT (Single Pole Double Throw) | 
| Isolation | Optocoupler-based isolation | 
| Dimensions | 50mm x 26mm x 18mm | 
| Weight | 15g | 
The RelayMK module has the following pin configuration:
| Pin Name | Description | 
|---|---|
| VCC | Connect to 5V DC power supply | 
| GND | Connect to ground | 
| IN | Control signal input (3.3V or 5V logic) | 
| Terminal Name | Description | 
|---|---|
| NO (Normally Open) | Connect to the load; remains open until relay is activated | 
| COM (Common) | Common terminal for the load | 
| NC (Normally Closed) | Connect to the load; remains closed until relay is activated | 
Below is an example of how to control a light bulb using the RelayMK module and an Arduino UNO:
// Define the pin connected to the relay module
const int relayPin = 7;
void setup() {
  // Set the relay pin as an output
  pinMode(relayPin, OUTPUT);
  
  // Ensure the relay is off initially
  digitalWrite(relayPin, LOW);
}
void loop() {
  // Turn the relay on (light bulb ON)
  digitalWrite(relayPin, HIGH);
  delay(5000); // Keep the light ON for 5 seconds
  
  // Turn the relay off (light bulb OFF)
  digitalWrite(relayPin, LOW);
  delay(5000); // Keep the light OFF for 5 seconds
}
Relay Not Activating
Load Not Turning On/Off
Relay Clicking but No Output
Microcontroller Resetting
Q1: Can I use the RelayMK with a 3.3V microcontroller like the ESP32?
A1: Yes, the IN pin is compatible with 3.3V logic levels. Ensure the module is powered with 5V.
Q2: Can I control multiple relays with one microcontroller?
A2: Yes, as long as each relay is connected to a separate digital output pin and the microcontroller can supply sufficient current.
Q3: Is the RelayMK suitable for switching DC motors?
A3: Yes, but ensure the motor's voltage and current do not exceed the relay's maximum ratings. Use a flyback diode for protection.
Q4: Can I use the RelayMK to control both AC and DC loads?
A4: Yes, the RelayMK supports both AC (up to 250V) and DC (up to 30V) loads. Always adhere to the specified ratings.