How to use LDR sensor with Relay in Burmese

preview_player
Показать описание
This video is for educational purpose.In this video you will learn how to turn DC bulb ON at night and OFF during the day.The bulb is optional either AC bulb or DC bulb.I use DC bulb for testing purpose only. The code is use digital output of the module to control light and use potentiometer.

Parts;

Wire Connection:
Uno Vcc - Bread board + (positive line)
Uno Gnd - Bread board _ (negative line)
Relay Vcc - Bread board + (positive line)
Relay Gnd - Bread board _ (negative line)
LDR Vcc - Bread board + (positive line)
LDR Gnd - Bread board _ (negative line)

LDR D0 - Uno digital pin 2
Relay in - Uno digital pin 3

Download the code and paste it to your sketch
Рекомендации по теме
welcome to shbcf.ru