Introduction: Arduino - Nokia 5110 LCD Temperature Meter With the DS18B20

Picture of Arduino - Nokia 5110 LCD Temperature Meter With the DS18B20

Hello World! I made a Temperature meter with a Nokia 5110 LCD.

I added the librarys and i made a Image for the LCD background with a rounded border and temperature icon which

is added to the LCD5110_Graph Libary and is named borderRoundedIcon.c

Follow the Next step for The Schematic Code & Parts List.

Step 1: Schematic Code & Parts List.

Picture of Schematic Code & Parts List.

Just wire everything up like the schematic and upload the code.

Make sure you download and install the libraries first! You need them!

Put the pins on the LCD like following:

PIN1 on LCD ==>> PIN 12 on Arduino

PIN2 on LCD ==>> PIN 11 on Arduino

PIN3 on LCD ==>> PIN 10 on Arduino

PIN4 on LCD ==>> PIN 9 on Arduino

PIN5 on LCD ==>> PIN 8 on Arduino

PIN6 on LCD ==>> PIN 3.3 Volt on Arduino

PIN7 on LCD ==>> PIN 5 volt on Arduino

PIN8 on LCD ==>> PIN Ground on Arduino

Parts List.

  1. Arduino Uno, I used the robotdyn uno.
  2. DS18b20 Temperature Sensor.
  3. Nokia 5110 LCD
  4. Jumper wires MM/FF/MF.

Good luck!

Comments

АнатолийД (author)2016-06-09

Where is my bug?

C:\Temperature\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino: In function 'void loop()':

C:\Temperature\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:45:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

lcd.print("Temp.Celc.",17,5); //Comment when using Fahrenheit

^

sketch\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino.cpp.o: In function `loop':

C:\Temperature\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:36: undefined reference to `borderRoundedIcon'

C:\Temperature\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:36: undefined reference to `borderRoundedIcon'

collect2.exe: error: ld returned 1 exit status

exit status 1

Works well, thanks except that negative temperatures obscure the last digit.

My Nokia display has different pinout, but works when connected correctly.

АнатолийД (author)2016-10-06

Hi. I added the line "OneWire ds (2);" and then it worked. More added a line "lcd.setContrast (65);" it adjust the contrast. In the scheme added resistor 4,7kOm, without indications have been not correct.

АнатолийД (author)2016-10-05

The sketch added 2 lines. Now everything is working.

Hi, i remeber you saying it did not work, but for others and me it did. But im glad you fixed it. What exactly did you change?

АнатолийД (author)2016-10-05

/*

Author: Danny van den Brande, ArduinoSensors.nl. BlueCore Tech.

Hello world! this is a example project for the DS18b20 on a old Nokia 5110 LCD Display.

*/

#include <OneWire.h>

#include <DallasTemperature.h>

#include <LCD5110_Graph.h>

#define ONE_WIRE_BUS 2

LCD5110 lcd(8,9,10,12,11);

OneWire ds(2);

extern unsigned char SmallFont[];

extern unsigned char BigNumbers[];

extern uint8_t borderRoundedIcon[];

char TempCelciusFahrenheit[6];

OneWire oneWire(ONE_WIRE_BUS);

DallasTemperature sensors(&oneWire);

float tempC = 0;

float tempF = 0;

void setup(void)

{

lcd.InitLCD();

sensors.begin();

}

void loop(void)

{

lcd.setContrast(65);

lcd.clrScr();

lcd.drawBitmap(0, 0, borderRoundedIcon, 84, 48);

sensors.requestTemperatures();

tempC = sensors.getTempCByIndex(0);

tempF = sensors.toFahrenheit(tempC);

// convertToString(tempF); //these are Fahrenheit, uncomment when using degrees.

convertToString(tempC); //These are degrees, comment when using Fahrenheit.

lcd.setFont(BigNumbers);

lcd.print(TempCelciusFahrenheit,22,14); // You can set position of the text here.

lcd.setFont(SmallFont);

lcd.print("Temp.Celc.",17,5); //Comment when using Fahrenheit

// lcd.print("Temp.Fahr.",17,5); //Uncomment when using Celcius

lcd.update();

delay(1000);

}

void convertToString(float number)

{

dtostrf(number, 3, 1, TempCelciusFahrenheit);

}

АнатолийД made it! (author)2016-10-05

Hello, I'm finally launched your Projects. But I had to sketch add the missing lines in the scheme lacked resistor. That revised scheme.

АнатолийД made it! (author)2016-06-14

Currently I uploaded on Arduino example of their library LCD5110_Graph-Librari. But your project does not work :((

АнатолийД made it! (author)2016-06-14

This is my LCD display, it is also the examples working properly.

RaulG48 (author)2016-06-13

Hello i have the same problem that АнатолийД exactly the same.

I try whit different library, érase all library, install it again, to change some pins 11 and 12 etc... But i dont have any image in the lcd. But if i use one Sample of the nokia 5510_graph the lcd works perfect, ( with the 4 examples).

In you tube is placed another tutoríal similar:

http://youtu.be/ga_1dqGjsbo

But i have the same problem, no image.

Anyone know what is wrong or any idea for why dosnt work this two arduino practices?

Thanks for your help.

vandenbrande (author)RaulG482016-06-14

Show a picture of the pinout of the LCD you use. I noticed there are different nokia screens

RaulG48 (author)vandenbrande2016-06-14

this is my lcd. It works well with the examples of the library 5510_graph.

vandenbrande (author)RaulG482016-06-14

Show a picture of the pinout of the LCD you use. I noticed there are different nokia screens

АнатолийД (author)2016-06-13

I will continue to study.

АнатолийД (author)2016-06-13

I do not understand why do not work. I'm just learning Arduino. I can not connect properly LCD5110? but examples of LCD5110_Graph-Librari work properly! Hence the connection is correct. Background LCD5110 have a, but there is no image.

АнатолийД (author)2016-06-12

unfortunately it does not work. Arduino pro mini and sensor 18s20 checked to be working. Your Projects does not work. :(( I can not understand. The screen is clear, the picture does not appear.

Well i dont understand why it does not work for you, but it works for others and works for me. The picture does not appear? do you have it in the right map?

АнатолийД made it! (author)2016-06-12

Here is an example of the work of the library LCD5110_Graph

АнатолийД (author)2016-06-12

I tried to to fill in "Examples of user libraries" LCD5110_Graph. This is a library you are using for your project. Examples have earned, the screen is working properly, the correct connection. But your project does not start, a blank screen. ......What to do next?

АнатолийД (author)2016-06-09

did not work :(. Tomorrow I will try again. Arduino in writing, the screen lights up, but the image does not appear

АнатолийД (author)2016-06-09

Thank you for the quick response! Update the ZIP archive

Ok Fixed it

yes will do

АнатолийД (author)2016-06-09

All figured out! You have a file name (LCD5110_Graph -Library.zip) needlessness gap Graph -Library -------- Graph-Library

Sorry i missed the previous comment... But your right i should remove the space.

rename it to this.----> LCD5110_Graph_Library.zip <--- rename it to this.

АнатолийД (author)2016-06-09

Arduino 1.6.9 swears on LCD5110_Graph -Library. Why?

Do you have this library?

#include <LCD5110_Graph.h>

When you add a library LCD5110_Graph -Library It gives this error, It may be because I have is the software in Russian? And therefore not suitable font encoding !?

Error:

"LCD5110_Graph -Library" The library can not be used.

Library names must contain only letters and numbers.

(ASCII only with no spaces) and can not start with a digit

I try to compile your sketch in Arduino 1.6.9 but I have an error. Arduino pro mini is not connected. I just checked the sketch.

I have such a library, but also an error with it. Sorry for my English, Russian, and I am writing through an interpreter. :(

I'm using Arduino pro mini ATmega 328 (5v. 16 Mhz), LCD screen connected to the Arduino through resistance .

sketch\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino.cpp.o: In function `loop':

C:\Temperatura\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:35: undefined reference to `borderRoundedIcon'

C:\Temperatura\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:35: undefined reference to `borderRoundedIcon'

collect2.exe: error: ld returned 1 exit status

exit status 1

Ошибка компиляции для платы Arduino Pro or Pro Mini.

About This Instructable

3,784views

19favorites

License:

Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
Add instructable to: