The document discusses how relays work and describes a one-channel relay module that can be connected to an Arduino. A relay uses electromagnets to switch circuits on and off and has five pins - three for the device being controlled and two to power an electromagnet coil. The one-channel relay module allows an Arduino to control high-power devices and its wiring and pinout are described.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
58 views
Relay Module With Arduino
The document discusses how relays work and describes a one-channel relay module that can be connected to an Arduino. A relay uses electromagnets to switch circuits on and off and has five pins - three for the device being controlled and two to power an electromagnet coil. The one-channel relay module allows an Arduino to control high-power devices and its wiring and pinout are described.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18
Interface One Channel
Relay Module with
Arduino Creative Technologies 10 At the core of a relay is an electromagnet (a wire coil that becomes a temporary magnet when How Do electricity is passed through it). A relay can be thought of as an Relays Work? electric lever; you turn it on with a relatively small current, and it turns on another device with a much larger current. Here’s a small animation showing how a relay links two circuits together. To illustrate, think about two simple circuits: one with an electromagnet and a switch or sensor, and the other with a magnetic switch and a light bulb. Initially, both circuits are open, with no current flowing through them. When a small current flows through the first circuit, the electromagnet is energized, creating a magnetic field around it. The energized electromagnet attracts the second circuit’s contact, closing the switch and allowing a large current to flow. Relay Operation A relay typically has five pins, three of which are high voltage terminals (NC, COM, and NO) that connect to the device being controlled. The device is connected between the COM (common) terminal and either the NC (normally closed) or NO (normally open) terminal, depending on whether the device should remain normally on or off. Relay Operation Between the remaining two pins (coil1 and coil2) is a coil that acts as an electromagnet. Normally (initial position), the COM terminal is connected to the NC terminal and the NO terminal is open. When current flows through the coil, the electromagnet becomes energized, causing the switch’s internal contact to move. The COM then connects to the NO terminal, disconnecting from the NC terminal. When the current stops flowing through the coil, the internal contact is returned to its initial position, re-connecting the NC terminal to the COM and re- opening the NO terminal. To put it another way, the relay functions as a single-pole-double-throw switch (SPDT). One-Channel Relay Module Hardware Overview The one-channel relay module is designed to allow your Arduino to control a single high-powered device. It has a relay with a maximum current rating of 10A at 250VAC or 30VDC. Modules with two, four, and eight channels are also available. You can choose the one that best meets your needs. LEDs
The relay module contains two
LEDs. The power LED will light up when the module is powered on. The status LED will light up when the relay is activated. Output Terminal The high voltage terminals (NC, COM, and NO) of the relay are Block broken out to a screw terminal. The device you want to control can be connected across them. Control Pin On the other side of the module, there is an input pin IN for controlling the relay. This pin is 5V logic compatible, so if you have a microcontroller like an Arduino, you can drive a relay with any digital output pin. The input pin is active low, which means that a logic LOW activates the relay, and a logic HIGH deactivates it. Module Power The module operates on 5 volts and draws approximately 70 mA when the relay is activated. The module also includes a flyback diode that is connected in parallel with the relay coil to safely shunt current when the relay coil is de- energized. One-Channel Relay Module Pinout Wiring a One-Channel Relay Module to an Arduino Wiring a One-Channel Relay Module to an Arduino •Begin by connecting the module’s VCC pin to the Arduino’s 5V pin and the GND pin to ground. Connect digital pin #6 to the IN input pin. •You’ll also need to connect the relay module to the AC-powered device you want to control, in this case, a lamp. You’ll need to cut your live AC line and connect one end of the cut wire (coming from the wall) to COM and the other to NC or NO, depending on what you want your device’s initial state to be. "Unlock the power of control with Arduino and relay modules – where the digital meets the physical, and innovation sparks to life through the seamless dance of code and circuits."