Control AC light using Arduino AVISHKAR
1 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
A R DUNI O , DI Y S T U FF S
MA Y OO G H G I R IS H
A P R IL 2 7, 201 6
The first tutorial everyone suggest in arduino is Blinking a LED.
Today I will show you how to control a AC light/appliance with the
same Blink sketch
Controlling AC light or appliance with arduino is simple as
blinking a LED using arduino.
All you need to is take proper care while doing this project
because here we are dealing with AC current (230V is more than
enough to kill you).So beware
5V Relay
Arduino
BC547 transistor
1n4007 Diode
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
2 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
AC Bulb
Bulb Socket
screw terminal connector
Relays are switches that open and close circuits
electromechanically. They control one electrical circuit by opening
and closing contacts in another circuit
A relay have 5 pins namely COIL A, B, NO, NC, COM
There are 5 Pins in a relay. Two pins A and B are two ends of a
coil that are inside the relay. The coil gets energized whenever
current passes through it.
NC = Normally Closed, is connected to pin
when the relay coil is
not energized.
NO = Normally Open, is left disconnected when relay coil is not
magnetized and is connected COM when the relay coil is energized.to
pin
when the relay coil is not energized.
COM = Common, At no input state, the COM is connected to NC. When
the operating voltage is applied to relay coil gets energized and
the COM changes contact to NO
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
3 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
5V Relay needs about 200mA current at 5V. But the digital pins of
arduino
provides only 20 mA current. So arduino can not drive the
relay directly.So as amplifier we need to used a transistor to
drive the relay
The relay coil cannot change its current instantly, diode provides
a path for the current when the coil is switched off. Otherwise, a
voltage spike will occur causing arcing on switch contacts or
possibly destroying switching transistors
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
4 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
The circuit is very simple and small, there is only few thing to
place.
Wire as per the below given schematics
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
5 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
6 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
This is a illustration of the circuit
There is not need to download any code you have the code within the
software just upload the Blink Sketch and watch the AC light
blinking as a
LED blinks
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
7 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
8 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
This is just basic tutorial on interfacing Relay with arduino
This project can improved to higher level like Home automation
using smartphone,Clap switch and much more
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
9 of 10
230V
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
AC
Ardunio
Avishkar
DIY
Relay
26,725 hits
04/01/2017 03:55 PM
Control AC light using Arduino AVISHKAR
10 of 10
https://igniteinnovateideas.wordpress.com/2016/04/27/control-ac-light-u...
Control AC light using
Arduino
Arduino Bluetooth Basic
Tutorial
Hand gesture controled
robot
Mayoogh
Girish is
a
Mobile Operated
Robot
Maker from India,
SHRINK
YOURto
ARDUINO
passionate
DIY
PROJECTS
hacks,
electronics,
robotics stuffs
Doing B. Tech at Christ
University
Founder of Avishkar
04/01/2017 03:55 PM