Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Automatic Light Control, Essays (university) of Physics

Automatic Light Control via micro controller

Typology: Essays (university)

2018/2019

Uploaded on 10/30/2019

ux-conquerer
ux-conquerer 🇮🇳

5

(1)

1 document

1 / 52

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
DAFFODIL INTERNATIONAL UNIVERSITY
DHAKA, BANGLADESH
PROJECT ON
AUTOMATIC LIGHT CONTROL BY USING MICROCONTROLLER BASED LDR
BY
FARZANA YASMIN
ID: 103-33-335
&
MD. AL MUHAIMIN SARKAR
ID: 102-33-219
SUPERVISED BY
RIFAT ABDULLAH AKHI
SENIOR LECTURER
FACULTY OF ENGINEERING
DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING
Daffodil International University
THIS REPORT PRESENTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS
FOR THE DEGREE OF BACHELOR OF SCIENCE IN ELECTRICAL AND ELECTRONIC
ENGINEERING”
JUNE 2014
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34

Partial preview of the text

Download Automatic Light Control and more Essays (university) Physics in PDF only on Docsity!

DAFFODIL INTERNATIONAL UNIVERSITY

DHAKA, BANGLADESH

PROJECT ON

AUTOMATIC LIGHT CONTROL BY USING MICROCONTROLLER BASED LDR

BY

FARZANA YASMIN

ID: 103-33-

MD. AL MUHAIMIN SARKAR

ID: 102-33-

SUPERVISED BY

RIFAT ABDULLAH AKHI

SENIOR LECTURER

FACULTY OF ENGINEERING

DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

Daffodil International University

“THIS REPORT PRESENTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF BACHELOR OF SCIENCE IN ELECTRICAL AND ELECTRONIC ENGINEERING” JUNE 2014

APPROVAL

This project titled Automatic light control by using microcontroller based LDR ”, submitted by Farzana Yasmin and Md. Al Muhaimin Sarkar to the Department of Electrical and Electronics Engineering, Daffodil International University, has been accepted as satisfactory for the partial fulfillment of the requirements for the degree of B.Sc. in Electrical and Electronics Engineering and approved as to its style and contents. The presentation has been held on.

BOARD OF EXAMINERS

_______________________

Professor Dr. M. Shamsul Alam Dean and Professor Department of EEE Faculty of Engineering Daffodil International University

_______________________

Dr. Md. Fayzur Rahman Professor and Head Department Of EEE Faculty of Engineering Daffodil International University

~ ii ~

DEDICATION

To the person who supported us through the hole life Thanks to our “Parents” and rest of our family

~ iii ~

ABSTRACT

This paper aims at designing and executing the advanced development in embedded systems for energy saving of lights. Nowadays, human has become too busy, and is unable to find time even to switch the lights wherever not necessary. The present system is like the lights will be switched on in the evening before the sun sets and they are switched off the next day morning after there is sufficient light on the outside. But the actual timing for these lights to be switched on are when there is absolute darkness. With this, the power will be wasted up to some extent. This paper gives the best solution for electrical power wastage. Also the manual operation of the lighting system is completely eliminated.

3. CHAPTER-3 DESCRIPTION OF CIRCUIT DIAGRAM

  • 2.7 Capacitor
  • 2.8 Diode
  • 2.9 Light Emitting Diode(LED)
  • 2.10 Relay
  • 2.11 Connector
  • 2.11a Pin Header Connector
  • 2.11b Temporary Connector
  • 2.12 ATMEGA8 Microcontroller
  • 2.12.1 Pin Description of ATMEGA8 Microcontroller
  • 3.1 Automatic Light Control Circuit Design
  • 3.2 Part-1(Power input circuit)
  • 3.3 Part-2(Operation in LDR and Microcontroller)
  • 3.4 Part-3(Output of relay)
  • 4.1 Parts List 4 .CHAPTER-4 PRODUCT COST & RESULTS
  • 4.2 Product Cost
  • 4.3 Advantages & Disadvantages
  • 4.3.1 Advantages
  • 4.3.2 Disadvantages
  • 4.4 Area of Applications
  • 4.5 Results And Discussions
  • Future Scope
  • Conclusion
  • References
  • Fig 1.1 Project Block-diagram FIGURE FIGURE NAME PAGE
  • Fig 2.1 LDR
  • Fig 2.1.1 Symbol of LDR
  • Fig 2.2 Practical LDR
  • Fig 2.3 12V DC adapter
  • Fig: 2.4 IC 7805 voltage regulator
  • Fig: 2.5 NPN transistor & symbol of NPN
  • Fig: 2.6 I-V characteristics curve of NPN transistor
  • Fig: 2.7 Resistor
  • Fig: 2.7.1 Symbol of Resistor
  • Fig: 2.7.1a Four Band Resistor color code
  • Fig: 2.7.1b Five & Six band Resistor color code
  • Fig: 2.8 Electrolytic Capacitor
  • Fig: 2.8.1 Ceramic Capacitor
  • Fig: 2.9 Diode
  • Fig: 2.10 LED with symbol
  • Fig: 2.11 Solid state relay
  • Fig: 2.11.1 Protection diode for relay
  • Fig: 2.12.1 Single female pin header
  • Fig: 2.12.2 Double male pin header
  • Fig: 2.12.3 Temporary connector
  • Fig: 2.13 ATMEGA8 Microcontroller
  • Fig: 2.13.1 Pin diagram of ATMEGA8 microcontroller
  • Fig: 3.1 Circuit diagram of automatic light system
  • Fig: 3.2 Power supply circuit
  • Fig: 3.3 Operation in LDR.
  • Fig: 3.3.1 Operation in ATmega8 Microcontroller
  • Fig: 3.4 Output of relay
  • Fig: 3.4.1 When relay NC (ON STATE)
  • Fig: 3.4.2 When relay NO (OFF STATE)
  • Fig: 4 Project on automatic light system

LIST OF TABLE

TABLE TABLE NAME PAGE

Table 1 PORTB pin description 23 Table 2 PORTC pin description 23 Table 3 PORTD pin description 24

©Daffodil International University 2

1.2 PROJECT BLOCK DIAGRAM

The system basically consists of a LDR, Power supply, Transistor, Relays and Microcontroller.

Fig. 1.1: Block diagram of automatic light system.

1.3 BLOCK DIAGRAM DESCRIPTION

The block diagram of automatic light system as shown in fig.1, using the LDR we can operate the lights. When the light is available then it will be in the OFF state and when it is dark the light will be in ON state, it means LDR is inversely proportional to light. When the light falls on the LDR it sends the commands to the microcontroller that it should be in the OFF state then it switch OFF the light. All this command are sent to the controller then according to that the device operates. We use a relay to act as an ON/OFF switch.

Regulated power supply

LDR

MICROCONTROLLER

TRANSISTOR RELAY

LAMP

©Daffodil International University 3

CHAPTER-

HARDWARE IMPLEMENTATION

2.1 DESCRIPTION OF COMPONENTS

In this project the list of hardware components used are given below:

 LDR (Light dependent resistor)  Power supply  Voltage regulator  ATmega8 Microcontroller  Transistor  Capacitor  Resistor  Diode  LED(Light emitting diode)  Relay  Connector

2.2 LIGHT DEPENDENT RESISTOR

LDRs or Light dependent resistors are very useful especially in light/dark sensor circuits. Normally the resistance of an LDR is very high, sometimes as high as 1000000 ohms, but when they are illuminated with light resistance drops dramatically. Electronic onto sensors are the devices that alter their electrical characteristics, in the presences of visible or invisible

©Daffodil International University 5

provide free access to external light. Practical LDRs are available in variety of sizes and packages styles, the most popular size having a face diameter of roughly 10mm. practical LDR is shown in below figure.

Fig. 2.2: Practical LDR

2.2.1 RECOVERY RATE

When an LDR is brought from a certain illuminating level into total darkness, the resistance does not increase immediately to the dark value. The recovery rate is specified does not increase immediately to the dark value. The recovery rate is specified in k ohm/second and for current LDR types it is more than 200K ohm/second. The recovery rate is much greater in the reverse direction, e.g. going from darkness illumination level of 300 lux, it takes less than 10ms to reach a resistance which corresponds with a light level of 400 lux. A LDR may be connected either way round and no special precautions are required when soldering.  Darkness: Maximum resistance, about 1 Mohm.  Very bright light: Minimum resistance, about 100 ohm. The LDR is a variable resistor whose resistance decreases with the increase in light intensity. Two cadmium sulphide (cds) photoconductive cells with spectral response similar to that of the human eye. The cell resistance falls with increasing light intensity. Some of its features:

 High reliability.  Light weight.  Wide spectral response.  Wide ambient temperature range.

©Daffodil International University 6

2.3 POWER SUPPLY

The 12V adapter is connected to the power jack to give the power supply to the relay. Another 220V power supply connected to the load. To make a 5V Dc regulated power supply we connected a voltage regulator which give the power supply to the ATmega8 microcontroller and peripheral items. In the ATmega8 microcontroller the VCC pin is 7th^ and GND pin is 8th. Two led is also interface to show the status of the power. The 12V adapter image shown in below figure.

Fig. 2.3: 12V Dc adapter.

2.4 VOLTAGE REGULATOR

Usually, we start with an unregulated power supply ranging from 9volt to 12volt DC. To make a 5volt power supply, IC 7805 voltage regulator as shown in figure has been used.

©Daffodil International University 8

The areas of operation for a transistor switch are known as the Saturation Region and the Cut-off Region. This means then that we can ignore the operating Q-point biasing and voltage divider circuitry required for amplification, and use the transistor as a switch by driving it back and forth between its “fully-OFF” (cut-off) and “fully-ON” (saturation) regions as shown below.

Fig. 2.6: I-V characteristics curve of NPN transistor.

The pink shaded area at the bottom of the curves represents the “Cut-off” region while the blue area to the left represents the “Saturation” region of the transistor. Here the operating conditions of the transistor are zero input base current (IB), zero output collector current ( IC ) and maximum collector voltage ( VCE ) which results in a large depletion layer and no current flowing through the device. Therefore the transistor is switched “Fully-OFF”. When the transistor will be biased so that the maximum amount of base current is applied, resulting in maximum collector current resulting in the minimum collector emitter voltage drop which results in the depletion layer being as small as possible and maximum current flowing through the transistor. Therefore the transistor is switched “Fully-ON”. Then the transistor operates as a

©Daffodil International University 9

“single-pole single-throw” (SPST) solid state switch. With a zero signal applied to the Base of the transistor it turns “OFF” acting like an open switch and zero collector current flows. With a positive signal applied to the Base of the transistor it turns “ON” acting like a closed switch and maximum circuit current flows through the device.

2.6 RESISTOR

A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. Resistors act to reduce current flow, and, at the same time, act to lower voltage levels within circuits. The current through a resistor is in direct proportion to the voltage across the resistor's terminals. This relationship is represented by Ohm's law:

where I is the current through the conductor in units of amperes, V is the potential difference measured across the conductor in units of volts, and R is the resistance of the conductor in units of ohms (symbol: Ω).

Fig. 2.7: Resistor. Fig. 2.7.1: Symbol of resistor. Fig. 2.7FFFF