Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ON
Submitted By
CIRCUIT DIAGRAM:
COMPONENT SPECIFICATION:
100Ὠ RESISTOR (3)
330 Ὠ RESISTOR(8)
THREE DIGIT SEVEN SEGMENT DISPLAY(Common anode)
IC LM35
2N2222 NPN TRANSISTOR (3)
ARDUINO BOARD
BREAD BOARD
JUMPERS AND WIRES
PROJECT DESCRIPTION:
The main objective of this project is to design a simple three digit digital thermometer using
arduino.Thermometer readings can be measured from 0°C to 99.9°C. Three terminal analog
temperature sensor LM35 is used as the sensor here. LM35 can measure temperatures
between -55°C to +155°C. The supply voltage range is from 4V to 30V DC and the current
drain is 60uA. The LM35 is available in TO-92 package and it is very easy to use. The output
voltage of the arduino increases 10mV per °C rise in temperature. That means if 25 °C is the
temperature, then output voltage of the sensor will be 250mV. Circuit diagram of the digital
thermometer using arduino and LM35 is as shown in the figure 1.
Temperature sensor LM35 is connected to the arduino through the analog input pins. A0 pin
of the arduino serves as the supply voltage source for LM35 and A2 pin of the arduino serves
as the ground. Arduino reads the voltage output of the LM35 through the analog input pin A1.
Digit driver transistors Q1, Q2 and Q3 are interfaced to the digital pins 1, 2 and 3 of the
arduino respectively. Multiplexed segment lines ‘a’ to dp(decimal point) are interfaced to the
digital pins 5 to 12 of the arduino respectively. Resistors R9, R10 and R11 limit the base
current of the corresponding transistors. Resistors R1 to R8 limit the current through the
corresponding segments.
An Arduino board historically consists of an Atmel 8-, 16- or 32-bit AVR microcontroller
with complementary components that facilitate programming and incorporation into other
circuits. An important aspect of the Arduino is its standard connectors, which let users
connect the CPU board to a variety of interchangeable add-on modules termed shields. Some
shields communicate with the Arduino board directly over various pins, but many shields are
individually addressable via an I²C serial bus so many shields can be stacked and used in
parallel.
A handful of other processors have also been used by Arduino compatible devices. Most
boards include a 5 V linear regulator and a 16 MHz crystal oscillator. An Arduino's
microcontroller is also pre-programmed with a boot loader that simplifies uploading of
programs to the on-chip flash memory, compared with other devices that typically need an
external programmer. [3]
ALGORITHM:
1. The LM35 senses the temperature and converts it into an output voltage that is
linearly proportional to the temperature.
2. For every 1º change in temperature the voltage changes by 10mV
3. The corresponding output voltage is available at analog pin A0 of the arduino.
4. The analogRead function will read the voltage at the analog input pin A0 and converts
it into a digital value between 0 and 1023.
5. In order to display the temperature in °C, the corresponding digital value is multiplied
5
by 1023 .
6. The power transistors are used to drive the seven segment displays and the
corresponding temperature is obtained.
OUTPUT:
Figure 3
Figure 4
REFERENCES:
[1] www.circuitstoday.com
[2] www.ntu.edu.sg
[3] www.wikipedia.org