CHIP Computer Project: CPU Temperature Monitor with OLED display SSD1306

Dear friends welcome back! Today we are going to connect an OLED display
to the CHIP computer in order to monitor its CPU temperature in real time. Let’s start! Hey guys, I am Nick and welcome to
a channel that is all about DIY electronics projects with Arduino, Raspberry Pi, ESP8266
and other popular boards. Today’s project is this: I have connected
an I2C OLED display to the CHIP single board computer and I print the temperature of the
CPU on it in real time! It is a very easy project to build and it
can be easily ported to support the Raspberry Pi as well. Let’s see how to build this project. I received the CHIP single board computer
about a year ago. It is an impressive board, it costs $9 and
it offers a 1GHz CPU, 512MB of RAM wifi Bluetooth and many more things. You can watch my review of the CHIP computer
by clicking on the card here. As you can see the CHIP computer is a lot
smaller than the Raspberry Pi 3 board and of course it costs a lot less. One year later, the software developed for
the CHIP computer is mature and we can easily build some projects with it. For this project we also use this small monochrome
OLED display. It is one of my favorite displays because
it is very easy to use since it use the I2C interface which only needs to connect two
wires. The cost of this display is around $6. You can find links for both parts in the description
of the video. In order to connect the OLED display to the
CHIP computer we only have to connect 4 wires. The GND pin of the display goes GND, Vcc goes
to the 3.3V output of the display, SCL pin of the display goes to the SCK pin of the
CHIP computer and lastly the SDA pin of the display goes to the SDA pin of the CHIP computer. It is very nice to have the pins labeled on
the CHIP computer isn’t it? It makes things easier. Maybe the Raspberry Pi needs to follow the
same tactic with their boards. Now, let’s move on the software side of
the project. At first we have to install some libraries. First run these two commands in order to update
the installed packages of the CHIP to their latest version. At last, a GPIO library is ready for the CHIP
so we can easily use the GPIO pins of the board from our code. It is the CHIP_IO library. In order to install it we follow the Python
2.7 steps that are provided on the library’s github page. You can find links for all the libraries in
the description below. After the installation of the CHIP_IO is complete
we have to install the Adafruit_Python_GPIO library. This library was developed for the Raspberry
Pi but it is now modified to support the CHIP as well. With this library we can use libraries that
are developed for the Raspberry Pi with the CHIP! Great! In order to install the library we have to
follow the instructions that can be found on github page of the library. After the installation is complete we are
almost ready. We only have to install a library for the
display! We install a library developed for the Raspberry
Pi from the user rm-hull. We follow the installation procedure as descripted
on the page. We run these commands:
$ sudo apt-get install i2c-tools python-smbus python-pip libfreetype6-dev
$ sudo pip install pillow $ sudo pip install image
$ sudo apt-get install python-imaging and then manually download the library and
we install it with the command: $ sudo python install
That’s it, all the libraries are now installed and we use the GPIO pins and the OLED display. I have developed a simple Python program that
reads the temperature of the CPU and prints it on the display. The value on the display is updated every
5 seconds. I have named the program
and I have placed the file on the desktop. In order to run it, at the console we write
the following two commands: cd Desktop in order to navigate to the desktop
and sudo python
That’s it, the program will print the temperature in the console and it will display it on the
display as well. The code reads the temperature of the CPU
using this command. We read the output of the command and we print
the temperature on the display. As you can see, the code is very simple it
is about 20 lines of code. As always you can find the code of the project
in a link in the description of the video. In order the program to be more useful, I
added a cron job so the program to load automatically when the CHIP boots up. We run the following command:
sudo crontab –e we enter the following line to the file:
@reboot python /home/chip/Desktop/ &
and we save the file. Now if we boot up the CHIP we can see that
the temperature is displayed on OLED screen automatically and it updates every 5 seconds. Now that the GPIO pins of the CHIP computer
are easily accessible by software with the GPIO library we can use CHIP in our projects. As you can see it is a great little board,
the cost of it is very low, only $9 and I think it is a great alternative to the Raspberry
Pi. I would love to hear your opinion about this
project. Do you want to build a similar project with
the Raspberry Pi as well? Please post your comments below. Thanks! If this is your first time here, I would love
to have you subscribed. In this channel I post videos about DIY projects
every Saturday. I love making things and I believe that anyone
can make things, anyone can become a maker. That’s why I created this channel, in order
to share my knowledge with the community and learn from the community. I hope you will join us. Until next Saturday, Watch, Learn, Build! [ Translating these subtitles? Add your name here! ]


  • Doon Rider Maharsh

    Hello sir huge fan of yours

  • Thanks for the great videos

  • can you talk about the ham radio Shield?

  • Vincent Wiedermann

    Thank you for listening to my comment. ("Please make a project with C.H.I.P")

  • Heads up to anyone following this tutorial, I did not modify the Readme for my Adafruit_GPIO port to the CHIP (as I want to have it merged into Adafruits' repo). The Readme has you cloning the main Adafruit repo, not mine. Replace the git clone step in the Readme steps with the following:

    git clone

    Disclosure: I'm the maintainer of CHIP_IO and the CHIP's Adafruit_GPIO port. If you have issues with either of those 2 libraries, don't hesitate to submit bug reports to the respective repos.

  • Have you heard of the Orange Pi Zero? It just came out and has a similar price point as the chip an ($10 including shipping)

  • hi Nick great video. I'm a bit of noob, can you explain the difference between CHIP and Rpi. It looks like the CHIP is a Rpi Zero with wifi? Thanks.

  • Hello, can you make a project in which you control a speaker with an arduino, even though the speaker gets external battery power (so it can be louder). Thanks in advance.

  • Nice! I want one now 🙂

  • Thank you for the email listing for your recommendations on displays I follow all your videos top marks and thank you Bob in the UK

  • Isn't it necessary to use pullup resistors for SDA and SCL?

  • how can i do this with by desktop computer ? how can transmit the temperature out ?

  • Алексей Гулин

    It's a pity that this video is not about arduino.

  • Φίλε μου φοβερή η δουλειά που κανείς και μας μαθαίνεις όλα αυτά τα projects.μηπως θα μπορούσες να κανείς το ίδιο βίντεο αλλά για Arduino? Σε ευχαριστώ.

  • Hi, thank you for sharing your project. this helped me learn alot! Can you share any advise on how to read numerical values from a rs485 pins? I would like to import my solar inverter KW values.

  • not working.

Leave a Reply

Your email address will not be published. Required fields are marked *