Professional Documents
Culture Documents
Lab 13
Lab 13
Lab 13
13
A. PSYCHOMOTOR
B. AFFECTIVE
Sr. Criteria Allocated Unacceptable Poor Fair Good Excellent Total
No. Marks Obtained
0% 25% 50% 75% 100%
2 Respond to 2 0 0.5 1 1.5 2
Questions
3 Lab Report 1 0 0.25 0.5 0.75 1
Experiment No. 13
Objective:
To understand interfacing of basic level sensors and LCD using advanced microcontrollers.
Apparatus Required:
Arduino board.
Arduino Controller.
Potentiometer.
Computer System.
Software Required:
Arduino Software
Proteus Professional 8
Theory:
Example:
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
delay(1);
}
Figure 13.1
Microprocessor Based Systems Lab 13
Procedure:
Lab Tasks:
1. Connect Potentiometer (Variable Resistor) with A0 pin of Arduino. Run the code and
observe output.
2. Connect Potentiometer (Variable Resistor) with A0 pin of Arduino. Change the code to
display actual analog voltages applied on A0 (0 to 5 volts) instead of Digital Values (0 to
1023) on LCD by using given formulas.
Microprocessor Based Systems Lab 13
Home Tasks:
1. Connect Potentiometer (Variable Resistor) with A0 pin of Arduino. Change the code to
display actual analog voltages applied on A0 (0 to 5 volts) instead of Digital Values (0 to
1023) by using given formulas. Show both analogue and digital value on LCD.
Microprocessor Based Systems Lab 13
Conclusion:
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________