loading

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.

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!

<p>Where is my bug?</p><p>C:\Temperature\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino: In function 'void loop()':</p><p>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]</p><p> lcd.print(&quot;Temp.Celc.&quot;,17,5); //Comment when using Fahrenheit</p><p> ^</p><p>sketch\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino.cpp.o: In function `loop':</p><p>C:\Temperature\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:36: undefined reference to `borderRoundedIcon'</p><p>C:\Temperature\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:36: undefined reference to `borderRoundedIcon'</p><p>collect2.exe: error: ld returned 1 exit status</p><p>exit status 1</p>
<p>Works well, thanks except that negative temperatures obscure the last digit.</p><p>My Nokia display has different pinout, but works when connected correctly.</p>
<p>Hi. I added the line &quot;OneWire ds (2);&quot; and then it worked. More added a line &quot;lcd.setContrast (65);&quot; it adjust the contrast. In the scheme added resistor 4,7kOm, without indications have been not correct.</p>
<p>The sketch added 2 lines. Now everything is working.</p>
<p>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?</p>
<p>/*</p><p>Author: Danny van den Brande, ArduinoSensors.nl. BlueCore Tech.</p><p>Hello world! this is a example project for the DS18b20 on a old Nokia 5110 LCD Display.</p><p> */</p><p>#include &lt;OneWire.h&gt;</p><p>#include &lt;DallasTemperature.h&gt;</p><p>#include &lt;LCD5110_Graph.h&gt;</p><p>#define ONE_WIRE_BUS 2</p><p>LCD5110 lcd(8,9,10,12,11);</p><p>OneWire ds(2);</p><p>extern unsigned char SmallFont[];</p><p>extern unsigned char BigNumbers[];</p><p>extern uint8_t borderRoundedIcon[];</p><p>char TempCelciusFahrenheit[6];</p><p>OneWire oneWire(ONE_WIRE_BUS);</p><p>DallasTemperature sensors(&amp;oneWire);</p><p>float tempC = 0;</p><p>float tempF = 0;</p><p>void setup(void)</p><p>{</p><p> lcd.InitLCD(); </p><p> sensors.begin(); </p><p>}</p><p>void loop(void)</p><p>{ </p><p> lcd.setContrast(65);</p><p> lcd.clrScr();</p><p> lcd.drawBitmap(0, 0, borderRoundedIcon, 84, 48); </p><p> sensors.requestTemperatures();</p><p> tempC = sensors.getTempCByIndex(0);</p><p> tempF = sensors.toFahrenheit(tempC); </p><p>// convertToString(tempF); //these are Fahrenheit, uncomment when using degrees.</p><p> convertToString(tempC); //These are degrees, comment when using Fahrenheit.</p><p> lcd.setFont(BigNumbers);</p><p> lcd.print(TempCelciusFahrenheit,22,14); // You can set position of the text here.</p><p> lcd.setFont(SmallFont);</p><p> lcd.print(&quot;Temp.Celc.&quot;,17,5); //Comment when using Fahrenheit</p><p>// lcd.print(&quot;Temp.Fahr.&quot;,17,5); //Uncomment when using Celcius</p><p> lcd.update(); </p><p> delay(1000);</p><p>}</p><p>void convertToString(float number)</p><p>{</p><p> dtostrf(number, 3, 1, TempCelciusFahrenheit);</p><p>}</p>
<p>Hello, I'm finally launched your Projects. But I had to sketch add the missing lines in the scheme lacked resistor. That revised scheme.</p>
<p>Currently I uploaded on Arduino example of their library LCD5110_Graph-Librari. But your project does not work :((</p>
<p>This is my LCD display, it is also the examples working properly.</p>
<p>Hello i have the same problem that <a href="/member/АнатолийД" rel="nofollow">АнатолийД</a> exactly the same.</p><p>I try whit different library, &eacute;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).</p><p>In you tube is placed another tutor&iacute;al similar:</p><p><a href="http://youtu.be/ga_1dqGjsbo" rel="nofollow">http://youtu.be/ga_1dqGjsbo</a></p><p>But i have the same problem, no image.</p><p>Anyone know what is wrong or any idea for why dosnt work this two arduino practices?</p><p>Thanks for your help.</p>
<p>Show a picture of the pinout of the LCD you use. I noticed there are different nokia screens</p>
<p>this is my lcd. It works well with the examples of the library 5510_graph.</p>
<p>Show a picture of the pinout of the LCD you use. I noticed there are different nokia screens</p>
<p>I will continue to study.</p>
<p>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.</p>
<p>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.</p>
<p>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?</p>
<p>Here is an example of the work of the library LCD5110_Graph</p>
<p>I tried to to fill in &quot;Examples of user libraries&quot; 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?</p>
<p>did not work :(. Tomorrow I will try again. Arduino in writing, the screen lights up, but the image does not appear</p>
<p>Thank you for the quick response! Update the ZIP archive</p>
<p>Ok Fixed it</p>
<p>yes will do</p>
<p>All figured out! You have a file name (LCD5110_Graph -Library.zip) needlessness gap Graph -Library -------- Graph-Library</p>
<p>Sorry i missed the previous comment... But your right i should remove the space.</p><p>rename it to this.----&gt; LCD5110_Graph_Library.zip &lt;--- rename it to this.</p>
<p>Arduino 1.6.9 swears on LCD5110_Graph -Library. Why?</p>
<p>Do you have this library?</p><p>#include &lt;LCD5110_Graph.h&gt;</p>
<p>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 !?</p><p>Error:</p><p>&quot;LCD5110_Graph -Library&quot; The library can not be used.</p><p>Library names must contain only letters and numbers.</p><p>(ASCII only with no spaces) and can not start with a digit</p>
<p>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.</p>
<p>I have such a library, but also an error with it. Sorry for my English, Russian, and I am writing through an interpreter. :( </p><p>I'm using Arduino pro mini ATmega 328 (5v. 16 Mhz), LCD screen connected to the Arduino through resistance .</p><p>sketch\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino.cpp.o: In function `loop':</p><p>C:\Temperatura\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:35: undefined reference to `borderRoundedIcon'</p><p>C:\Temperatura\DS18B20_Temperature_sensor_with_NOKIA5110_Lcd/DS18B20_Temperature_sensor_with_NOKIA5110_Lcd.ino:35: undefined reference to `borderRoundedIcon'</p><p>collect2.exe: error: ld returned 1 exit status</p><p>exit status 1</p><p>Ошибка компиляции для платы Arduino Pro or Pro Mini.</p>

About This Instructable

3,114views

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 »
More by vandenbrande:Arduino - LCD 20x4 Water LEVEL MONITOR HC SR04 Arduino - NRF24L01 2.4Ghz Wireless Relay Switch RGB led STRIP control Arduino Android BLUETOOTH - SMD5050  
Add instructable to: