nerowebdesign.blogg.se

Control high voltage devices arduino relay tutorial
Control high voltage devices arduino relay tutorial













control high voltage devices arduino relay tutorial

The high-voltage side has two connectors, each with three sockets: common (COM), normally closed (NC), and normally open (NO). The six pins on the left side of the relay module connect high voltage, and the pins on the right side connect the component that requires low voltage-the Arduino pins. The following figure shows the relay module pinout. There are other relay modules that are powered using 3.3V, which is ideal for ESP32, ESP8266, and other microcontrollers. This module should be powered with 5V, which is appropriate to use with an Arduino. There are other models with one, four and eight channels. This relay module has two channels (those blue cubes). Introducing the Relay ModuleĪ relay is an electrically operated switch that can be turned on or off, letting the current go through or not, and can be controlled with low voltages, like the 5V provided by the Arduino pins.Ĭontrolling a relay module with the Arduino is as simple as controlling any other output as we’ll see later on.

CONTROL HIGH VOLTAGE DEVICES ARDUINO RELAY TUTORIAL HOW TO

The example we’ll build shows how to control a relay module with an Arduino and a PIR motion sensor.īy the end of this tutorial, you should be able to control any electronics appliances with your Arduino using a relay module. We make a brief introduction to the relay module and build a simple project example with the Arduino. This article shows how to control mains voltage with the Arduino using a relay module.















Control high voltage devices arduino relay tutorial