Lavizares Plate No.1
Lavizares Plate No.1
Microprocessor System
Plate No. 1
Subject Teacher
Date Submitted
Score
Plate No. 1
Sample Output:
LCD OUTPUT:
Select the Data to Display Temperature Reading
1. Temperature 35 C
2. Soil Sensor
3. Heat/Flame Sensor
30 cb (kPa) 5 uA
II. Screenshot of the Circuit Diagram using Proteus.
The circuit diagram of the soil sensor and heat/flame sensor interfaced
with lcd using the pic16f877A microcontroller. It shows that I used a
default terminal for different pins to reduce complexity of the circuitry.
void main() {
double temp, moist, flame;
int celcius, moist_value, flame_value;
char display1[10], display2[10], display3[10];
PORTD=0x00;
TRISB = 0xFF;
Lcd_Init();
ADC_Init();
Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);
delay_ms(50);
while(1)
{
main:
Lcd_Out(1, 3, "Select Data");
Lcd_Out(2, 2, "1. Temperature");
Lcd_Out(3, -2, "2. Soil Sensor");
Lcd_Out(4, -2, "3. Heat/Flame");
}
}
IV. Sample Screenshot of the OUTPUT.
It shows the temperature reading who currently displayed in the LCD
which is 79 C.
V. Rubrics:
a. Functionality (50%)
b. Design of the Circuit Diagram (25%)
c. Presentability of the Circuit Diagram (15%)
d. Submitted Documents (10%)