Temperature Sensor Using Arduino
Temperature Sensor Using Arduino
Temperature Sensor Using Arduino
ELECTIVE I
ASSIGNMENT NO: 02
Title: Understanding the connectivity of Raspbeery pi/Adurnio board circuit with temperature
sensor. Write an application to read the environment temperature. If temperature crosses a threshold
value, generate alerts using LEDs.
Objectives:
Outcomes:
Temperature is observed using temperature sensor and display the result on serial monitor.
Theory:
Introduction To Arduino
Arduino is an open-source platform used for building electronics projects. Arduino consists of both a
physical programmable circuit board (often referred to as a microcontroller) and a piece of software,
or IDE (Integrated Development Environment) that runs on your computer, used to write and upload
computer code to the physical board. Accepts analog and digital signals as input and gives desired
output.
LED
Device ATmega328 Pin Arduino Pin Description
LED1 PB2 10 Common Cathode
LED
LED2 PB3 11 Common Cathode
LED
LED3 PB4 12 Common Cathode
LED
LED4 PB5 13 Common Cathode
LED
The LM35 is an integrated circuit sensor that can be used to measure temperature with an
electrical output proportional to the temperature (in oC), i.e. it generates a electrical
voltage which is proportional to temperature. The LM35 does not require any calibration
or trimming. The LM35 gives a linear output of 10 mV per degree Centigrade (10mV/ oC)
change in temperature. It operated from -55 oC to 155 oC temperature range. Note: To
use the LM35 temperature sensor on the MicroATmega328 board the switch SW23
must be connected in position 1-2.
Program
Write down code which we have implemented in practical and paste screenshot which we have done
in practical.