How to Connect Relay to Arduino — Microdaz Blog

Ivan June
2 min readSep 11, 2021

--

It is a switch that is electrically operated by an electromagnet that uses a small current to drive a larger circuitry. Arduino cannot control circuits that operate at high voltages or high currents. By using relay with Arduino, isolation between the circuit being controlled and the control circuit can be provided.

It can be used to control high voltage electronic devices like fans, lights, heaters, and other household appliances.

In this lesson, you will learn how to build a relay with an Arduino connection.

Let’s Start!

STEP 1: Components for Relay connection with Arduino.

STEP 2: Arduino Relay Module Circuit Diagram.

  • Put in place the Relay module, resistor, diode and transistor on your breadboard
  • Connect the breadboard to your Arduino Board.
  • Use the Relay Module Circuit Diagram below.

STEP 3: Paste the Arduino Relay Connection code.

  • Copy the code on the bottom of this article and paste it on your Arduino IDE.
  • Press the Upload button on the Arduino IDE to execute the codes to your Arduino relay circuit.

CODE

https://microdaz.com/how-to-connect-relay-to-arduino/

Originally published at https://microdaz.com on September 11, 2021.

--

--