AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR



Similar documents
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Construction and Application of a Computer Based Interface Card

Interfacing Analog to Digital Data Converters

Chapter 2 Logic Gates and Introduction to Computer Architecture

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

MICROPROCESSOR AND MICROCOMPUTER BASICS

Microprocessor & Assembly Language

Measuring Resistance Using Digital I/O

PART B QUESTIONS AND ANSWERS UNIT I

CHAPTER 11: Flip Flops

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

8051 MICROCONTROLLER COURSE

The components. E3: Digital electronics. Goals:

EasyPIC4 User s Manual

A Digital Timer Implementation using 7 Segment Displays

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

Build A Video Switcher. Reprinted with permission from Electronics Now Magazine September 1997 issue

ET-BASE AVR ATmega64/128

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Lecture N -1- PHYS Microcontrollers

8-Bit Microcontroller with Flash. Application Note. Using a Personal Computer to Program the AT89C51/C52/LV51/LV52/C1051/C2051

Conversion Between Analog and Digital Signals

LCM NHD-12032BZ-FSW-GBW. User s Guide. (Liquid Crystal Display Graphic Module) RoHS Compliant. For product support, contact

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

POCKET SCOPE 2. The idea 2. Design criteria 3

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Interfacing With Microprocessor

EMBEDDED SYSTEM BASICS AND APPLICATION

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand)

Interfacing To Alphanumeric Displays

SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

An Introduction to MPLAB Integrated Development Environment

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

Application Note 83 Fundamentals of RS 232 Serial Communications

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

Decimal Number (base 10) Binary Number (base 2)

Upon completion of unit 1.1, students will be able to

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

KTA-223 Arduino Compatible Relay Controller

Using Altera MAX Series as Microcontroller I/O Expanders

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Using The PIC I/O Ports

Controlling a Dot Matrix LED Display with a Microcontroller

Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

Input, Process and Output

The Programming Interface

AVR Butterfly Training. Atmel Norway, AVR Applications Group

Computer Automation Techniques. Arthur Carroll

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Wireless Security Camera

Programming Logic controllers

2.0 Command and Data Handling Subsystem

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Cell Phone Operated Land Rover

SIMPLE EPROM PROGRAMMER. EPROM Programmer Design. Hardware

Home Security System

FEATURES DESCRIPTION. PT6321 Fluorescent Display Tube Controller Driver

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

How to use AVR Studio for Assembler Programming

The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

DALLAS DS1233 Econo Reset. BOTTOM VIEW TO-92 PACKAGE See Mech. Drawings Section on Website

Micro-Step Driving for Stepper Motors: A Case Study

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

ADS9850 Signal Generator Module

Content Map For Career & Technology

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

Designing VM2 Application Boards

SPI. Overview and Use of the PICmicro Serial Peripheral Interface. Getting Started: SPI

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

Chapter 6: From Digital-to-Analog and Back Again

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

DEVELOPMENT OF PC BASED HOME ENERGY MANAGEMENT SYSTEM MUHAMAD KHAIRI BIN CHE YUSOFF UNIVERSITI MALAYSIA PAHANG

Pulse Width Modulation

III. BLOCK DIAGRAM. A) Power Supply

A Practical Guide to Free Energy Devices

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada

GLOLAB Universal Telephone Hold

Chapter 13. PIC Family Microcontroller

Digital to Analog and Analog to Digital Conversion

EvB 5.1 v5 User s Guide

Access Control Using Smartcard And Passcode

PolyBot Board. User's Guide V1.11 9/20/08

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

Switch board datasheet EB

Introducción. Diseño de sistemas digitales.1

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Automatic Street Light Control System Using Microcontroller

Transcription:

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR INTRODUCTION This Project "Automatic Night Lamp with Morning Alarm" was developed using Microprocessor. It is the Heart of the system. The sensors are made with help of LDR which are Light Dependent Resistors, whose Resistance is inversely proportional to the Light falling on it. The LDR converts the light energy into electrical energy and this variable electrical energy was converted into digital signal (0 or 1) by using the timer IC555. The Timer IC output goes low when light falls on the LDR and the timer IC output goes high when the LDR was placed in dark. OBJECTIVE 1) To learn and develop knowledge in designing the application by using the microprocessor. 2) To learn how to write an assembly language and combining with the hardware. 3) To learn how make a full report of project Microprocessor SYSTEM DESCRIPTION HARDWARE In this mini project, the components that has been used is 8255, IC 555,resistors, capacitors, LDR, Buzzer, LED and Transistor NPN. Light Dependent Resistors (LDR) is function as a sensor. It will detect when there is light or in we can say in the day. LDR then converts the light energy into

electrical energy and this variable electrical energy was converted into digital signal ( 0 or 1) bu using timer IC555. The Timer IC output goes low (0) when light falls on the LDR and the timer IC output goes high when the LDR was placed in dark. SOFTWARE SCOPE The scope of this project is to design an automatic night alarm with morning alarm using microprocessor. The program of this alarm was used the assembly language and implement to the hardware. The alarm is controlled by IC 555. This alarm is available which, due to the output of timer IC 555. It is because LDR will converts the light energy into electrical energy and this variable electrical energy was converted into digital signal ( 0 or 1) by using timer IC555. The result is the Buzzer will functioning according to the alarm. HARDWARE DESIGN 1. Component used IC555 LDR LED RESISTOR CAPACITOR BUZZER

2. SCHEMATIC DESIGN

FLOW CHART

1. 8255 PERIPHERAL INTERFACING - PPI INTERFACING (8255) Peripheral Interfacing is considered to be a main part of Microprocessor, as it is the only way to interact with the external world. The interfacing happens with the ports of the Microprocessor. The main IC's which are to be interfaced with 8085 are: 1. 8255 PPI 2. 8259 PIC 3. 8251 USART 4. 8279 Key board display controller

5. 8253 Timer/ Counter 6. A/D and D/A converter interfacing. It has 40 pins and requires a single +5V supply. PROGRAMMABLE PERIPHERAL INTERFACE - INTEL 8255 Pins, Signals and internal block diagram of 8255: The INTEL 8255 is a device used to parallel data transfer between processor and slow peripheral devices like ADC, DAC, keyboard, 7-segment display, LCD, etc. The 8255 has three ports: Port-A, Port- B and Port-C. Port-A can be programmed to work in any one of the three operating modes mode-0,

mode-1 and mode-2 as input or output port. Port-B can be programmed to work either in mode-0 or mode-1 as input or output port. Port-C (8-pins) has different assignments depending on the mode of port-a and port- B. If port-a and B are programmed in mode-0, then the port-c can perform any one of the following functions. As 8-bit parallel port in mode-0 for input or output. As two numbers of 4-bit parallel ports in mode-0 for input or output. The individual pins of port-c can be set or reset for various control applications. If port-a is programmed in mode- 1/mode-2 and port-b is programmed in mode-1 then some of the pins of port-c are used for handshake signals and the remaining pins can be used as input/ output lines or individually set/reset for control applications. The read/write control logic requires six control signals. These signals are given below. 1.RD (low): This control signal enables the read operation. When

this signal is low, the microprocessor reads data from a selected I/O port of the 8255A. 2. WR (low): This control signal enables the write operation. When this signal goes low, the microprocessor writes into a selected I/O port or the control register. 3. RESET: This is an active high signal. It clears the control register and set all ports in the input mode. 4. CS (low), A0 and A1: These are device select signals. They are, Interfacing of 8255 with 8085 processor: A simple schematic for interfacing the 8255 with 8085 processor is shown in fig. PIN DESCRIPTION - INTEL 8255 Pin Description Data lines RESET CS RD WR. Reset input Chip select Read control Write control

A, A i PA, - PA 0 PB 7 - PB 0 PC, - PC 0 Internal address Port-A pins Port-B pins Port-C pins V C c +5V OV (GND) The internal block diagram of 8255 is shown in fig: Internal Devices Ai Port A 0 0 PoitB 0 1 Port C 1 0 Control Register 1 1 Block diagram of 8255:

The 8255 can be either memory mapped or I/O mapped in the system. In the schematic shown in above is I/O mapped in the system. Using a 3-to-8 decoder generates the chip select signals for I/O mapped devices. The address lines A4, A5 and A6 are decoded to generate eight chip select signals (IOCS-0 to IOCS-7) and in this, the chip select IOCS- 1 is used to select 8255.

The address line A7 and the control signal IO/M (low) are used as enable for the decoder. The address line A0 of 8085 is connected to A0 of 8255 and A1 of 8085 is connected to A1 of 8255 to provide the internal addresses. The data lines D0-D7 are connected to D0-D7 of the processor to achieve parallel data transfer. The I/O addresses allotted to the internal devices of 8255 are listed in table. Internal Decoder input Binary Address Input to address Device and enable pins of 8255 Address A 7 \ A 5 A 4 A i A 2 A ( A, PoivA 0 0 0 1 x x 0 0 10 Port-B 0 0 0 t x x 0 1 11 Port-C 0 0 0 1 x x 1 0 12 Control 0 0 0 1 X x 1 I t3 Register Note : Don't care "x" is considered as zero. 2. Resistor A resistor is a two-terminal electrical or electronic component that resists an electric current by

producing a voltage drop between its terminals in accordance with Ohm's law R = V/I The electrical resistance is equal to the voltage drop across the resistor divided by the current through the resistor. Resistors are used as part of electrical networks and electronic circuits