Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
abiodun1991
Published © LGPL

Application of DS18B20 with Arduino with LCD

This Project is to display the value of DS18B20 with LCD and Arduino Uno

AdvancedFull instructions provided196
Application of DS18B20 with Arduino with LCD

Things used in this project

Hardware components

Resistor 10k ohm
Resistor 10k ohm
×1
Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

10 Pc. Jumper Wire Kit, 5 cm Long
10 Pc. Jumper Wire Kit, 5 cm Long

Custom parts and enclosures

ds18b20 project display

Schematics

circuit

Code

CODE

Arduino
#include <Wire.h>
//#include <LCD.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Addr, En, Rw, Rs, d4, d5
void setup() {
//Serial.begin(9600); //setting the baud rate at 9600
//Ethernet.begin(mac,ip);
lcd.begin(16,2);
    lcd.backlight();
    lcd.setCursor(0, 0);
   // lcd.print("Hello world!");
    lcd.setCursor(0, 1);
  //  lcd.print("Row number: ");
    lcd.setCursor(12, 1);
//    lcd.print("2");

}
void loop() {
int sensorValue1 = analogRead(A0);
float tempvalue = sensorValue1 *(60.0/1023.0);
Serial.print("Temperature = ");
Serial.println(value);
 lcd.clear();
  lcd.print("Temp= ");
  lcd.print(value);
   lcd.print(" 0C");

String loggingvalue = (String(value));
log_db(loggingvalue);
delay(10000);
}   

Credits

abiodun1991
6 projects • 3 followers
Contact

Comments

Please log in or sign up to comment.