Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use relaymk: Examples, Pinouts, and Specs

Image of relaymk
Cirkit Designer LogoDesign with relaymk in Cirkit Designer

Introduction

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.

Explore Projects Built with relaymk

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino MKR WiFi 1010 Controlled Relay Switching Circuit
Image of Receptor lorawan: A project utilizing relaymk in a practical application
This circuit consists of an Arduino MKR WiFi 1010 microcontroller connected to a 5V relay. The Arduino is programmed to receive LoRa wireless communication signals and toggle the relay based on the received data, which controls the connection between the relay's Common terminal and either the Normally Open or Normally Closed terminal. The relay's activation is dependent on the specific message received ('button pressed'), which is intended to switch a connected external load on or off.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano RFID-Based Time Tracking System with LCD Display and Relay Control
Image of [Circuit Design] RFID-Based Equipment Logger for DPWH : A project utilizing relaymk in a practical application
This circuit is an RFID-based time tracking system that uses an Arduino Nano to interface with an RFID reader, an RTC module, an LCD display, a piezo buzzer, and a relay. The system logs and displays login and logout times, sounds a buzzer upon button press, and controls a relay to power an external device.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled RFID Access System with LCD Feedback and Visual Indicators
Image of SMART OKU PARKING USING RFID: A project utilizing relaymk in a practical application
This circuit features an ESP32 microcontroller interfaced with an RFID-RC522 reader, a 16x2 LCD screen with I2C communication, a buzzer, an IR sensor, and a 2-channel relay module. The ESP32 controls the relay module to switch external loads, possibly indicated by the pilot lamps, and can provide feedback or status on the LCD screen. The RFID reader and IR sensor are likely used for input or sensing purposes, while the buzzer can provide audio alerts or feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Automated Plant Watering System with Soil Moisture Sensing and RTC Scheduling
Image of penyiraman otomatis: A project utilizing relaymk in a practical application
This circuit features an ESP32 microcontroller connected to a soil moisture sensor, a DS1307 real-time clock (RTC), and a 5V relay module. The ESP32 reads the soil moisture level and can control the relay based on time or moisture data, while the RTC provides accurate timekeeping. The relay can be used to switch external devices, potentially for plant watering systems, and the ESP32 communicates with the RTC via I2C protocol (SDA/SCL lines).
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with relaymk

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Receptor lorawan: A project utilizing relaymk in a practical application
Arduino MKR WiFi 1010 Controlled Relay Switching Circuit
This circuit consists of an Arduino MKR WiFi 1010 microcontroller connected to a 5V relay. The Arduino is programmed to receive LoRa wireless communication signals and toggle the relay based on the received data, which controls the connection between the relay's Common terminal and either the Normally Open or Normally Closed terminal. The relay's activation is dependent on the specific message received ('button pressed'), which is intended to switch a connected external load on or off.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of [Circuit Design] RFID-Based Equipment Logger for DPWH : A project utilizing relaymk in a practical application
Arduino Nano RFID-Based Time Tracking System with LCD Display and Relay Control
This circuit is an RFID-based time tracking system that uses an Arduino Nano to interface with an RFID reader, an RTC module, an LCD display, a piezo buzzer, and a relay. The system logs and displays login and logout times, sounds a buzzer upon button press, and controls a relay to power an external device.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of SMART OKU PARKING USING RFID: A project utilizing relaymk in a practical application
ESP32-Controlled RFID Access System with LCD Feedback and Visual Indicators
This circuit features an ESP32 microcontroller interfaced with an RFID-RC522 reader, a 16x2 LCD screen with I2C communication, a buzzer, an IR sensor, and a 2-channel relay module. The ESP32 controls the relay module to switch external loads, possibly indicated by the pilot lamps, and can provide feedback or status on the LCD screen. The RFID reader and IR sensor are likely used for input or sensing purposes, while the buzzer can provide audio alerts or feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of penyiraman otomatis: A project utilizing relaymk in a practical application
ESP32-Based Automated Plant Watering System with Soil Moisture Sensing and RTC Scheduling
This circuit features an ESP32 microcontroller connected to a soil moisture sensor, a DS1307 real-time clock (RTC), and a 5V relay module. The ESP32 reads the soil moisture level and can control the relay based on time or moisture data, while the RTC provides accurate timekeeping. The relay can be used to switch external devices, potentially for plant watering systems, and the ESP32 communicates with the RTC via I2C protocol (SDA/SCL lines).
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home automation systems (e.g., controlling lights or fans)
  • Industrial control systems
  • Motor control circuits
  • IoT projects requiring high-power device control
  • Safety circuits for isolating high-voltage systems from low-voltage control systems

Technical Specifications

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

Pin Configuration and Descriptions

The RelayMK module has the following pin configuration:

Input Pins

Pin Name Description
VCC Connect to 5V DC power supply
GND Connect to ground
IN Control signal input (3.3V or 5V logic)

Output Terminals

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

Usage Instructions

How to Use the RelayMK in a Circuit

  1. Power the Module: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Control Signal: Connect the IN pin to a digital output pin of a microcontroller (e.g., Arduino UNO). The relay will activate when the control signal is HIGH.
  3. Load Connection:
    • Connect the device you want to control (e.g., a light bulb or motor) to the NO or NC terminal, depending on your desired behavior.
    • Connect the other end of the device to the COM terminal.
  4. Isolation: Ensure proper isolation between the low-voltage control circuit and the high-voltage load to prevent damage or hazards.

Important Considerations and Best Practices

  • Power Supply: Ensure the module is powered with a stable 5V DC supply.
  • Load Ratings: Do not exceed the maximum load voltage (250V AC / 30V DC) or current (10A).
  • Flyback Diode: If controlling an inductive load (e.g., a motor), use a flyback diode across the load to protect the relay from voltage spikes.
  • Safety: Always handle high-voltage connections with care. Disconnect power before making any changes to the circuit.
  • Logic Level Compatibility: The IN pin is compatible with both 3.3V and 5V logic levels, making it suitable for most microcontrollers.

Example: Connecting RelayMK to an Arduino UNO

Below is an example of how to control a light bulb using the RelayMK module and an Arduino UNO:

Circuit Diagram

  • Connect the RelayMK's VCC to the Arduino's 5V pin.
  • Connect the RelayMK's GND to the Arduino's GND pin.
  • Connect the RelayMK's IN pin to Arduino digital pin 7.
  • Connect the light bulb to the NO and COM terminals of the relay.

Arduino Code

// 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
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Relay Not Activating

    • Cause: Insufficient control signal voltage.
    • Solution: Ensure the IN pin receives a HIGH signal (3.3V or 5V) from the microcontroller.
  2. Load Not Turning On/Off

    • Cause: Incorrect wiring of the load to the relay terminals.
    • Solution: Verify the load is connected to the correct terminals (NO/NC and COM).
  3. Relay Clicking but No Output

    • Cause: Faulty relay or excessive load current.
    • Solution: Check the load's current and voltage ratings. Replace the relay if necessary.
  4. Microcontroller Resetting

    • Cause: Voltage spikes from the relay coil.
    • Solution: Add a flyback diode across the relay coil to suppress voltage spikes.

FAQs

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.