The Unwritten Words :: Linux Newbie
My Stack :: Archives

LCD display with RPi and room temperature

Some time ago, I’ve bought a Nokia 5110 LCD display. I didn’t have much time to play with it, until this week. Since yesterday, I’ve been exploring the PCD8544 library for the display, and thanks to Xavier Berger’s RPi Monitor app and his bits of code, I’ve created my own project.

This consists of two applications that display my Raspberry’s and room temperature:

The Hardware

For this project, I’ve used:

The setup

The PCD8544 and Digital Thermometer can be installed in the breadboard as shown in the drawing bellow:

rpimonitor breadboard


Note: If you want to reproduce this assembly, check carefully the pin order, it may be different, as the PCD8455 board pinning differs from model to model. The one is based on the LCD from eBay link above.

Note: For the 1- Wire Digital Thermometer Sensor setup, head HERE.


The software

First of all, you have to install RPi-monitor to make the Python script work with your LCD screen. To do so, head to Xavier Berger’s git repository and follow instructions there. Next, install Python library for PCD8544 LCD from github and follow instructions from my previous post on the LCD.

Having installed the back-end, for the application, here comes the code for Raspberry Pi and room temperature!

Head to my github repository and

git clone

onto your Raspberry Pi. Enter the LCD-Monitor directory:

cd /path/to/your/LCD-Monitor

and run either the RPi-Monitor based app:

sudo python

or the standalone app:

sudo python

To run the app in background, add ‘&‘ (‘and’ symbol) after the terminal command. To stop it, type fg, hit [Enter] and [Ctrl] + C.

If you did everything well, you should see the screen display temperatures!

RPi-Monitor connected application:


Standalone application:

Follow up:

LCD Display with Raspberry Pi (Part I)

LCD Monitor (Part III)

11 Responses to “LCD display with RPi and room temperature”

  1. Brian Dunkery says:

    Very nice! I like it a lot! One more thing to make me buy a Raspberry myself ;)
    I was just wondering, the three cables – orange, yellow, and brown – where do they go and what are they for??? they’re not on the schematic picture…

    • Bart Bania says:

      oh, that’s just serial port connection, I’ve forgot to detach it for making the photo, not relevant for the project itself.
      get yourself a Pi, it’s combining business with pleasure :)

  2. Mark says:

    Keep it up mate! I’m waiting for more advanced project based on this setup. Looks really interesting!

  3. Donny says:

    I’ve got a question: why wouldn’t you set RPi-Monitor aside, and make it more simple, by obtaining the temperature data from the sensors themselves? I see the monitor, being a great tool, has some bugs, and it might make usage of your hardware unbearable. If I were you, I’d write the code from scratch, concentrating on the sensors themselves. You’ve got everything there, just use it in the right way.
    And heads up!

  4. kay says:

    is it REALLY your room temperature?! 25′C?
    whoa, it’s like 77 F! where do you live? Hawaii? ;)

  5. Jose says:

    Hello, first of all, nice job :)

    I have a question: in the first image and in the breadboard scheme, you have resistances between gpio connector and lcd, but in the last one there are not. Are they necessary?


    • Bart Bania says:

      Hi! thanks for the comment. as for the resistors, they’re not necessary, I even think obsolete when it comes to RPi. I was preparing this project to work with Arduino as well, there they’d be useful.
      but I got rid of them (won’t use this screen with Arduino) and left only the one on temperature sensor (this one IS necessary, however 4.7k is enough). as for the LCD, I only left the backlight resistor for safety reasons.

Leave a Reply

JOIN 7+ BILLION FABULOUS READERS: rss | email | twitter | +

Powered by Debian :: My Stack