Contents
How does a relay work on an Arduino?
A 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. Controlling a relay module with the Arduino is as simple as controlling any other output as we’ll see later on.
What is the NC terminal on an Arduino relay?
To use the normally closed contacts, use the NC terminal. In the normally open configuration, when the relay receives a HIGH signal the 120-240V switch closes and allows current to flow from the C terminal to the NO terminal. A LOW signal deactivates the relay and stops the current.
What are the pins on the relay module?
The following figure shows the relay module pinout. 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 high-voltage side has two connectors, each with three sockets: common (COM), normally closed (NC), and normally open (NO).
Can a light bulb be connected to an Arduino?
For the light bulb, we MUST use another power source (high voltage and/or high current), which can burn Arduino. Therefore, we CANNOT connect the light bulb directly to Arduino’s pin. We need to use a relay between Arduino’s pin and light bulb to protect Arduino from high voltage/current. Please note: These are affiliate links.
Is there something wrong with my Arduino uno-4 Channel relay module?
So relay #4 will activate, then #3, then #2, and then #1, and all four are on when I reach 0. Is it something wrong with my code? I’ve checked and rechecked, and even checked with a different project where I connect the pins to LED’s.
When to use NC or NC in Arduino relay?
NC (Normally Closed): the normally closed configuration is used when you want the relay to be closed by default, meaning the current is flowing unless you send a signal from the Arduino to the relay module to open the circuit and stop the current.