Can you use Arduino as a switch?

Can you use Arduino as a switch?

You can use the Arduino to drive a relay that switches the high voltage circuit. There are relay boards and daughterboards (“shields”) for this purpose. As you are in a 230V AC country (or region) make sure the relay is not 110 V rated.

Which circuit can be controlled with Arduino?

5V Relay Module It runs on 5V and hence, can be powered using the Arduino itself. This particular module consists of a 5V Relay, a transistor, a Zener Diode, an Optocoupler IC, couple of LEDs, corresponding current limiting resistors, screw terminals and few male headers for connecting power and other inputs.

What is a plug in relay?

Plug-in relays are used when a machine or engine must control a circuit using a lower-power signal, or when several circuits must be controlled using one uniform signal, to keep electrical equipment running smoothly.

How is the Arduino connected to the power outlet?

The working of the project is pretty straight forward and is explained here. The connection between the Arduino and the power outlet is made through a 5V Relay Module. The switch provided on the power outlet box can be normally used to turn ON or OFF the appliance plugged in to the socket.

What can a switch be used for in Arduino?

The switch input can be used to control other electronic components. So, let’s use the LED installed in Arduino (pin 13) to turn on the LED when the switch is pressed, and turn it off when the switch is released. We use the same circuit as that used to connect only the switch to the pin as described earlier.

How does a 5V relay work on an Arduino?

We will install the 5V relay in-line with the positive (hot) wire of the 120-240V power outlet in the normally open configuration. The negative (neutral) wire and the ground wire will be connected directly from the power cord to the outlet. The 5V relay will turn on the current to the outlet whenever it receives a 5V signal from the Arduino.

Where is the control pin for the Arduino relay?

Coming to the relay, the 5V and GND pins for the relay module are given from the Arduino UNO. The control pin for the relay is connected to the pin 8 of Arduino. Finally, the power outlet box. We need to open the box and make connections. First connect neutral wire from the supply to neutral connector on the socket.