Umer Practical 1
Umer Practical 1
Objective:
In this practical using the potentiometer as an analog input in Arduino Uno to observe the
measure value of Resistor and different Temperatures
Apparatus:
Potentiometer
Arduino UNO R3 board
Bread board
Jumper wires
Arduino IDE
Theory:
A thermistor is a specialized resistor whose electrical resistance varies significantly with
temperature. There are two main types: negative temperature coefficient (NTC) and positive
temperature coefficient (PTC). In NTC thermistors, resistance decreases as temperature rises,
while PTC thermistors exhibit an increase in resistance with temperature.
The basic principle of a thermistor lies in its property of exhibiting a significant change in
electrical resistance in response to changes in temperature. Thermistors are typically made
from semiconductor materials with characteristics that cause their resistance to vary
nonlinearly with temperature.
Circuit Diagram:
Fig 1 :Measurement with LDR
Procedure:
Write the code on Arduino Ide software for the required information and instruction.
Connect the Arduino Board to the laptop and upload the Program.
Connect the thermistor ,potentiometer, and a fixed resistor in a voltage divider configuration
Connect the voltage divider to an Arduino analog input pin.
Read the analog voltage using Arduino's analogRead() function.
Use the analog voltage and the Arduino's ADC resolution to calculate the thermistor resistance.
Code:
const int analogPin = A0; // Analog pin connected to the voltage divider
void setup() {
Serial.begin(9600);
void loop() {
Serial.print(sensorValue);
Serial.print(thermistorResistance);
Serial.println(temperature);
delay(1000);
return temperature;
Conclusion:
In conclusion, the practical application of a thermistor circuit with a potentiometer and resistor
allows for temperature sensing through variations in resistance. The potentiometer enables
calibration, adjusting the circuit for accurate temperature readings. This simple yet versatile
setup finds applications in temperature measurement and control systems, providing a cost-
effective and adaptable solution for diverse environments.