Mahamudul Karim KhondakerDIYables
Published

Using A Temp Sensor With Arduino TMP36 Temperature Sensor

Arduino was born at Ivrea Interaction Design Institute as an easy tool for fast prototyping aimed at students w/o electronics background.

BeginnerShowcase (no instructions)17,431
Using A Temp Sensor With Arduino TMP36 Temperature Sensor

Things used in this project

Story

Read more

Schematics

temperature-tmp36-1024x664_sgiZRePOzV.png

Code

Arduino Code

Arduino
https://plus.google.com/u/0/+MahamudulKarimKhondaker/posts/XqQNThGAJk6
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
float temp;
int tempPin = 0;
void setup(){
lcd.begin(16, 2);
Serial.begin(9600);}
void loop(){
temp = analogRead(tempPin);
temp = temp * 0.48828125;
Serial.print("TEMPRATURE = ");
Serial.print(temp);
Serial.print("*C");
Serial.println();
lcd.setCursor(0, 0);
lcd.print("TMP=");
lcd.print(temp);
lcd.print("C");
delay(1000);}

Credits

Mahamudul Karim Khondaker

Mahamudul Karim Khondaker

43 projects • 119 followers
Completed BSc at Electrical & Electronic Engineering (EEE) From United International University. Dhaka, Bangladesh
DIYables

DIYables

0 projects • 6 followers

Comments