What is a Relay?
A relay is a circuit element that switches in electrical circuits. It allows users to control the flow of electricity at desired times by passing a signal current through it, thereby completing the circuit. Relays and relay modules are used in circuits for safety purposes, to perform specific operations under desired conditions, and to open and close circuits at specific time intervals.
What are Relay Modules?
Using Relays with Arduino
Relay modules have pins for VCC, GND, and signal input on their front. You can easily power 5V relay modules with the 5V pin on the Arduino. For the signal input, you can send signals from sensors to the relay from the Arduino or directly from the sensors, based on the data you receive. The connection should be made as shown in the image below.
This process only activates the relay but does not provide power to the product we want to operate. At the back of the relay are terminal inputs for NO (Normally Open), COM (Common), and NC (Normally Closed). By making connections to these terminals as shown in the image, the product is put into operation.
Smart Relay Modules
Smart relays receive their signals directly from the sensors located on them and do not require additional programming.
In the image, there is a
Ldr Light-controlled Relay Module. This module directly receives data from the ldr light sensor attached to it. Power is supplied to the relay from the Vcc and Gnd terminals at the front. The connection of the product is made as shown in the image above, as with all relay modules. The sensitivity of light is adjusted with the trim potentiometer.
43681|41847|39692|38489|38646|38512