Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
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)18,513
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
43 projects • 127 followers
Completed BSc at Electrical & Electronic Engineering (EEE) From United International University. Dhaka, Bangladesh
DIYables
0 projects • 80 followers
I would like to invite you to join and add your projects to DIYables platform https://www.hackster.io/diyables

Comments