9
Real Time Switch AUTO STREET LIGHT CONTROL USING REAL TIME CLOCK The main aim of the project is to develop a system which is operated based on the time for street light. The important consideration in the present field of Electronics and Electrical related technologies are Automation, Power consumption and cost effectiveness. Automation is intended to reduce manpower with the help of intelligent systems and Power saving is the main consideration forever as the source of the power(Thermal, Hydro etc.,)are getting diminished due to various reasons . The main goal of our project “AUTOMATIC STREET LIGHT CONTROLLER WITH RTC” is to control the switching of Street Lights automatically according to the timings like day time or night time. This allows us to realize the task efficiently and effectively without the intervention of human by making it automated and even we can avoid unnecessary wastage of power by switching it off at right time. This project is designed around a microcontroller which forms the heart of the project. In our project we are going to make use of a device called RTC which stands for Real Time Clock which provides the details such as day month year date and time according to which the street lights are made ON and OFF. The RTC is interfaced with

Real time switch

Embed Size (px)

Citation preview

Page 1: Real time switch

Real Time Switch

AUTO STREET LIGHT CONTROL USING REAL TIME CLOCK

The main aim of the project is to develop a system which is operated based on the time for street light.

The important consideration in the present field of Electronics and Electrical related

technologies are Automation, Power consumption and cost effectiveness.

Automation is intended to reduce manpower with the help of intelligent systems and

Power saving is the main consideration forever as the source of the power(Thermal,

Hydro etc.,)are getting diminished due to various reasons .

The main goal of our project “AUTOMATIC STREET LIGHT CONTROLLER WITH

RTC” is to control the switching of Street Lights automatically according to the timings like

day time or night time. This allows us to realize the task efficiently and effectively without the

intervention of human by making it automated and even we can avoid unnecessary wastage

of power by switching it off at right time.

This project is designed around a microcontroller which forms the heart of the project.

In our project we are going to make use of a device called RTC which stands for Real Time

Clock which provides the details such as day month year date and time according to which

the street lights are made ON and OFF. The RTC is interfaced with microcontroller to

communicate and hence to get the information such as time etc. and controls the switching

of street lights. The microcontroller communicates with RTC through a serial protocol called

I2C.

The control unit consists of a microcontroller with its associated circuitry. According

to this project, the day and night timings are found with the help of RTC and street lights are

switched accordingly. The hardware involved in the project is Power supply, Microcontroller,

RTC and street light.

Page 2: Real time switch

Real Time Switch

Hardware Components: Microcontroller

Power supply

RTC

Street Light

Software Tools:

● Keil micro vision

● Embedded C

● Express PCB

BLOCK DIAGRAM:

Page 3: Real time switch

Micro controller

POWER SUPPLY

STREET LIGHTS

RTC

LCD

RELAY

230 V

Real Time Switch

POWER SUPPLY:

Real time clock DS1307 interfacing Real time clock DS1307 interfacing with Arduino, in this article you will learn how to interface real time clock DS1307 with Arduino. What is real time? Why real time

Step Down

Transformer

Bridge

Rectifier

Filter

Circuit

Regulator section

Page 4: Real time switch

Real Time Switchclock is used? What is dedicated integrated circuit for real time clock? How to make digital clock using Arduino and integrated circuit DS1307? What are application of real time clock DS1307? Hardware connections of liquid crystal display 16 X 2 LCD and real time clock DS1303 with Arduino. How to use library of real time clock to display time and date on LCD? You will get answers of all your questions in this article.

Before reading this article you should have a basic knowledge about Arduino and its use. You should know how to interface LCD with Adriano and how to use input/ output ports of Arduino. If you don’t know how to do these things. I recommend you to go through following articles to get better understanding of this article. Because I have already posted articles on such things. For more information check following articles.

WHAT IS REAL TIME CLOCK? As it name suggests, real time clock is used to keep record off time and to display time. It is used in many digital electronics devices like computers, electronics watches, date loggers and situation where you need to keep track of time. One of the great benefits of real time clock is that it also keep record of time even if power supply is not available. Now the question is how can a electronics device like real time clock work without use of power supply. Because it have small power cell of about 3-5 volt inside which can work for years. Because real time clock consume minimum amount of power. There is many dedicated integrated circuits are available in market which is used to make real time clock by adding necessary electronic components. But in this article I will discuss DS1307 real time clock IC.

DS1307 IC FOR REAL TIME CLOCK:DS1302 is IC for real time clock which is used to count seconds, minutes, hours, days, and months and years. It use I2C communication protocol for communicating with other devices like in our case we are using Arduino. Arduino read values of time and date from DS1307 using I2C communication protocol. It also have feature to keep record of exact time in case of power failure. It is an 8 bit IC. It is used to make real time clock using some other electronic components. Pin configuration of DS1307 is given below:

Page 5: Real time switch

Real Time Switch

Pin number one and two is used for crystal oscillator. Crystal oscillator value usually used with DS1307 is 32.768k Hz.

Pin three is used for back up battery. Its value should be between 3-5 volt. Voltage more than 5 volt may burn DS1307 permanently. Back battery is used to keep track of time in case of power failure to DS1307. After getting power DS1307 shows correct time due to back up battery.

Pin 4 is ground pin of power supply. Pin 5 and 6 is used to communicate with other devices with the help of I2C

communication protocol. Pin 5 is serial data pin and pin 6 is serial clock. If you don’t know about I2C

communication, i recommend you to learn about it. Pin 8 is used for 5 volt power supply.

You need external components to connect with DS1307 to use it as a real time clock. Circuit diagram with necessary components is given below:

Page 6: Real time switch

Real Time Switch

In above circuit diagram there is no connection for power supply and ground at pin number four and eight. Don’t forget to to provide power supply of 5 volt to this circuit while making this circuit.

REAL TIME CLOCK DS1307 WITH ARDUINO:

Real time clock DS1307 with Arduino circuit is given below. Pin number 5 and 6 of DS1307 is connected with SCL and SDA pins of Arduino. If you have already gone through above mentioned article on LCD interfacing with Arduino and other basic articles to get know how of Arduino, you can easily understand following circuit.

Page 7: Real time switch

Real Time Switch

In today’s life the more wastage of energy. So to save the energy and control the energy, hence we

developed our project Street Light.