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

How to Use Relay board for Micro:bit: Examples, Pinouts, and Specs

Image of Relay board for Micro:bit
Cirkit Designer LogoDesign with Relay board for Micro:bit in Cirkit Designer

Introduction

The Relay Board for Micro:bit by MonkMakes (Part ID: 1) is a versatile electronic module designed to enable the Micro:bit to control high-power devices. This relay board acts as an electrically operated switch, allowing the Micro:bit to toggle devices such as lights, motors, or other appliances on and off using low-power signals. It is an essential component for projects requiring the control of external devices that operate at higher voltages or currents than the Micro:bit can handle directly.

Explore Projects Built with Relay board for Micro:bit

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Controlled Smart Home Automation System with I2C LCD Feedback
Image of Home automation: A project utilizing Relay board for Micro:bit in a practical application
This circuit features an ESP32 microcontroller connected to a 4-channel relay module and a 20x4 LCD display with I2C interface. The ESP32 controls the relay channels to switch external devices and uses the LCD to display the status of each relay channel. The code includes Blynk IoT platform integration for remote control and monitoring, and the display provides a user interface for local status updates.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 Controlled 4-Channel Relay with Touchscreen Interface
Image of Display relay: A project utilizing Relay board for Micro:bit in a practical application
This circuit features an Arduino Mega 2560 microcontroller interfaced with a 4-channel relay module and an ILI9488 TFT LCD screen. The Arduino controls the relays via touch inputs on the LCD screen, allowing the user to toggle each relay on or off through a graphical interface.
Cirkit Designer LogoOpen Project in Cirkit Designer
WiFi-Enabled Environmental Monitoring System with Alert Notifications
Image of GAS LEAKAGE DETECTION: A project utilizing Relay board for Micro:bit in a practical application
This circuit features a NUCLEO-F303RE microcontroller board interfaced with several modules for sensing, actuation, and communication. It uses I2C communication to display data on an LCD screen, UART communication to interface with an ESP8266 WiFi module, and reads an MQ-2 gas sensor via an ADC pin. The microcontroller also controls a buzzer for audible alerts and a relay module for switching higher power loads, possibly in response to sensor readings or remote commands received over WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Wi-Fi Controlled Relay Switch
Image of nyoba: A project utilizing Relay board for Micro:bit in a practical application
This circuit uses an ESP32 microcontroller to control a 1-channel 5V relay. The ESP32 toggles the relay on and off every 5 seconds, allowing it to control an external device connected to the relay's output.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Relay board for Micro:bit

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 Home automation: A project utilizing Relay board for Micro:bit in a practical application
ESP32-Controlled Smart Home Automation System with I2C LCD Feedback
This circuit features an ESP32 microcontroller connected to a 4-channel relay module and a 20x4 LCD display with I2C interface. The ESP32 controls the relay channels to switch external devices and uses the LCD to display the status of each relay channel. The code includes Blynk IoT platform integration for remote control and monitoring, and the display provides a user interface for local status updates.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Display relay: A project utilizing Relay board for Micro:bit in a practical application
Arduino Mega 2560 Controlled 4-Channel Relay with Touchscreen Interface
This circuit features an Arduino Mega 2560 microcontroller interfaced with a 4-channel relay module and an ILI9488 TFT LCD screen. The Arduino controls the relays via touch inputs on the LCD screen, allowing the user to toggle each relay on or off through a graphical interface.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of GAS LEAKAGE DETECTION: A project utilizing Relay board for Micro:bit in a practical application
WiFi-Enabled Environmental Monitoring System with Alert Notifications
This circuit features a NUCLEO-F303RE microcontroller board interfaced with several modules for sensing, actuation, and communication. It uses I2C communication to display data on an LCD screen, UART communication to interface with an ESP8266 WiFi module, and reads an MQ-2 gas sensor via an ADC pin. The microcontroller also controls a buzzer for audible alerts and a relay module for switching higher power loads, possibly in response to sensor readings or remote commands received over WiFi.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of nyoba: A project utilizing Relay board for Micro:bit in a practical application
ESP32 Wi-Fi Controlled Relay Switch
This circuit uses an ESP32 microcontroller to control a 1-channel 5V relay. The ESP32 toggles the relay on and off every 5 seconds, allowing it to control an external device connected to the relay's output.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home automation projects (e.g., controlling lights or fans)
  • Robotics (e.g., activating motors or actuators)
  • IoT (Internet of Things) applications
  • Educational projects to demonstrate relay operation
  • Prototyping circuits that require high-power switching

Technical Specifications

The following table outlines the key technical details of the Relay Board for Micro:bit:

Specification Details
Manufacturer MonkMakes
Part ID 1
Operating Voltage 3.3V to 5V
Trigger Voltage 3.3V (compatible with Micro:bit GPIO)
Maximum Switching Voltage 240V AC / 30V DC
Maximum Switching Current 10A
Relay Type SPDT (Single Pole Double Throw)
Dimensions 50mm x 40mm x 20mm
Weight 20g

Pin Configuration and Descriptions

The relay board has the following pin connections:

Pin Name Description
1 VCC Power input (3.3V to 5V). Connect to the Micro:bit's 3V pin.
2 GND Ground connection. Connect to the Micro:bit's GND pin.
3 IN Signal input. Connect to a GPIO pin on the Micro:bit to control the relay.
4 COM (Common) Common terminal of the relay switch.
5 NO (Normally Open) Normally open terminal. Connect to the device to be powered when the relay is active.
6 NC (Normally Closed) Normally closed terminal. Connect to the device to be powered when the relay is inactive.

Usage Instructions

How to Use the Relay Board in a Circuit

  1. Connect the Relay Board to the Micro:bit:

    • Connect the VCC pin of the relay board to the 3V pin on the Micro:bit.
    • Connect the GND pin of the relay board to the GND pin on the Micro:bit.
    • Connect the IN pin of the relay board to a GPIO pin on the Micro:bit (e.g., Pin 0).
  2. Connect the External Device:

    • Identify whether the device should be connected to the NO (Normally Open) or NC (Normally Closed) terminal based on your application.
    • Connect one terminal of the device to the COM pin and the other terminal to either NO or NC.
  3. Power the Circuit:

    • Ensure the Micro:bit is powered via USB or a battery pack.
    • If the external device requires a separate power source, connect it appropriately.
  4. Control the Relay:

    • Use the Micro:bit to send a HIGH signal (3.3V) to the IN pin to activate the relay and switch the connected device.

Important Considerations and Best Practices

  • Isolation: Ensure proper electrical isolation when working with high-voltage devices to avoid damage or injury.
  • Current Ratings: Do not exceed the relay's maximum current rating of 10A.
  • Flyback Diode: The relay board includes a built-in flyback diode to protect the Micro:bit from voltage spikes caused by the relay coil.
  • GPIO Pin Current: The Micro:bit GPIO pins can safely drive the relay board without additional components.

Example Code for Micro:bit

Below is an example of how to control the relay board using the Micro:bit:

from microbit import *

Define the GPIO pin connected to the relay board

relay_pin = pin0

while True: # Turn the relay ON for 2 seconds relay_pin.write_digital(1) # Send HIGH signal to activate the relay sleep(2000) # Wait for 2 seconds

# Turn the relay OFF for 2 seconds
relay_pin.write_digital(0)  # Send LOW signal to deactivate the relay
sleep(2000)  # Wait for 2 seconds

Troubleshooting and FAQs

Common Issues and Solutions

  1. The relay does not activate:

    • Ensure the VCC and GND pins are properly connected to the Micro:bit.
    • Verify that the IN pin is receiving a HIGH signal (3.3V) from the Micro:bit.
    • Check the power source for the Micro:bit and ensure it is sufficient.
  2. The connected device does not turn on/off:

    • Confirm that the device is correctly connected to the COM and NO or NC terminals.
    • Ensure the external device's power source is properly connected and functional.
  3. The relay clicks but the device does not respond:

    • Verify the voltage and current requirements of the connected device.
    • Ensure the relay's maximum ratings (240V AC / 30V DC, 10A) are not exceeded.
  4. Micro:bit resets when activating the relay:

    • This may occur if the relay draws too much current. Use a separate power supply for the relay board if necessary.

FAQs

Q: Can I use the relay board with other microcontrollers?
A: Yes, the relay board is compatible with other microcontrollers that operate at 3.3V or 5V logic levels, such as Arduino or Raspberry Pi.

Q: Is the relay board safe for high-voltage applications?
A: The relay board is designed to handle up to 240V AC, but proper precautions must be taken when working with high voltages to ensure safety.

Q: Can I control multiple relay boards with a single Micro:bit?
A: Yes, you can control multiple relay boards by connecting each board's IN pin to a separate GPIO pin on the Micro:bit.

Q: Does the relay board make noise when switching?
A: Yes, the relay produces a clicking sound when it switches states, which is normal for mechanical relays.