control your home appliances using arduino and relay - small home appliances
Hi all, in this note we will use Arduino and relay modules to control the home appliances.
This instruction covers: How it works: in order to control your home appliance using Arduino and relays, we need to: connect all components according to the circuit diagram shown above.
In the wiring diagram above, pins VCC, GND, and In on the relay module may vary depending on your relay module.
So, reference data-
Your relay race.
For, connect the AC bulb properly to the relay: Please take appropriate precautions and care when connecting any wires to the power supply.
Upload the relay once you have everything connected.
Sketch your arduino.
Unlike the led, the relay turns off the circuit whenever the signal or input pin is connected to the GND. (
This may vary for other custom relay modules. )
So, "Digital Writing (13, LOW);
Turn on the light bulb.
At the same time, "digitalWrite (13, HIGH);
Turn off the light bulb.
The above code turns on the bulb for 5 seconds and then turns off the bulb for the next 5 seconds.
Now, just turn on the power of the Arduino and relay and you can see that the AC bulb is on and off.
Thanks for watching.