In this tutorial, we will see how we can interface one channel relay module with ARIES v3 board. The Single Channel Relay Module is used to control high voltage, high current load such as motor, solenoid valves, lamps and AC load.

One Channel Relay Module

A relay is an electromagnetic switch operated by a relatively small current that can control much larger current. The single-channel relay module comprises of components that make switching and connection easier and act as indicators to show if the module is powered and if the relay is active or not. It uses an electric current to open or close the contacts of a switch. This is usually done using the help of a coil that attracts the contacts of a switch and pulls them together when activated, and a spring pushes them apart when the coil is not energized.

Prerequisites

Components Required

  • ARIES v3.0 Board
  • USB type C to USB type A cable
  • DC Relay Module
  • Jumper Wires

Circuit Diagram

RelayARIES v3 board
GNDGND
VCC3V3
INPGPIO-0
Connection pins of Relay module & ARIES v3.0 Board

Procedure

Open and set up the Arduino IDE as described in Getting Started with ARIES v3.0.

  • Make sure you have selected ARIES v3 Board from Tools -> Board -> VEGA Processor: ARIES Boards -> ARIES v3
  • Select Tools -> Flash Mode -> Enabled
  • Select Programmer as VEGA FLASHER from Tools -> Programmer -> VEGA FLASHER
  • Also select appropriate port from Tools -> Port -> COM* (ARIES Board)

Now, Open Files -> Examples -> Under Examples for ARIES v3 -> GPIO-> DC_Relay_Demo

Finally Upload the code to ARIES board

Output

GREEN LED on the relay module will ON/OFF when the Relay is ON/OFF.

Open the serial monitor at 115200 baud rate to view the relay status as “Relay ON” or “Relay OFF”.

Demonstration

By mydhily

Leave a Reply

Your email address will not be published. Required fields are marked *