You are on page 1of 13

A Project On

Three device interfacing using 8051- Microcontroller

[Session 2011-2012]

Guide Name: Ms. Garima Mathur Head , Dept. of ECE Mrs. Pratibha Soni Lecturer, Dept. of ECE

Submitted by: Harsh Yadav (EC08043) Abhilav Shrivastav (EC08090) Anup vijay (EC09)

(Group No. : 16)

Department of Electronics & Communication, Jaipur Engineering College, Kukas,

Jaipur-303101

INTRODUCTION
Many applications need to measure and/or monitor the physical quantities like temperature, pressure, light intensity etc. The sensors used to measure the physical quantities give the output in analog form, which are converted to digital through an ADC for further processing. This circuit demonstrates the principle and operation of interfacing ADC0808 with three LDR. The output of the sensor is displayed on the LCD. The external clock needed by the ADC0808 is provided by the controller using interrupt. The output is displayed on the LCD. The circuit is divided into four parts: LDR, ADC, 8051 microcontroller and LCD. Its applications could be measuring and monitoring the light intensity level.

CIRCUIT DIAGRAM

Components & Discription


ADC0808:- is an 8 bit analog to digital converter with eight input analog channels, i.e., it can take eight different analog inputs. The input which is to be converted to digital form can be selected by using three address lines. The voltage reference can be set using the Vref+ and Vref- pins. The step size is decided based on set reference value. Step size is the change in analog input to cause a unit change in the output of ADC. The default step size is 19.53mV corresponding to 5V reference voltage. ADC0808 needs an external clock to operate unlike ADC0804 which has an internal clock. The ADC needs some specific control signals for its operations like start conversion and bring data to output pins. When the conversion is complete the EOC pins goes low to indicate the end of conversion and data ready to be picked up. AT89C51:- is an 8-bit microcontroller and belongs to Atmel's 8051 family. AT89C51 has 4KB of Flash programmable and erasable read only memory (PEROM) and 128 bytes of RAM. Temperature Sensor :- These sensors use a solid-state technique to determine the temperature. They use the fact as temperature increases, the voltage across a diode increases at a known rate. (Technically, this is actually the voltage drop between the base and emitter - the Vbe - of a transistor. By precisely amplifying the voltage change, it is easy to generate an analog signal that is directly proportional to temperature.

16x2 LCD.

LCD with one microcontroller

Pin No. Pin no. 1 Pin no. 2 Pin no. 3 Pin no. 4 Pin no. 5 Pin no. 6 Pin no. 7 Pin no. 8 Pin no. 9 Pin no. 10 Pin no. 11 Pin no. 12 Pin no. 13 Pin no. 14

Name VSS VCC VEE RS R/W EN D0 D1 D2 D3 D4 D5 D6 D7

Description Power supply (GND) Power supply (+5V) Contrast adjust 0 = Instruction input 1 = Data input 0 = Write to LCD module 1 = Read from LCD module Enable signal Data bus line 0 (LSB) Data bus line 1 Data bus line 2 Data bus line 3 Data bus line 4 Data bus line 5 Data bus line 6 Data bus line 7 (MSB)

LCD with 2 microcontroller

Pin No. Pin no. 1 Pin no. 2 Pin no. 3 Pin no. 4 Pin no. 5 Pin no. 6 Pin no. 7 Pin no. 8 Pin no. 9 Pin no. 10 Pin no. 11 Pin no. 12

Name D7 D6 D5 D4 D3 D2 D1 D0 EN1 R/W RS VEE

Description Data bus line 7 (MSB) Data bus line 6 Data bus line 5 Data bus line 4 Data bus line 3 Data bus line 2 Data bus line 1 Data bus line 0 (LSB) Enable signal for row 0 and 1 (1stcontroller) 0 = Write to LCD module 1 = Read from LCD module 0 = Instruction input 1 = Data input Contrast adjust

Pin no. 13 Pin no. 14 Pin no. 15 Pin no. 16

VSS VCC EN2 NC

Power supply (GND) Power supply (+5V) Enable signal for row 2 and 3 (2ndcontroller) Not Connected

Microcontroller AT89C2051

ADC0808

You might also like