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! ]

CHIP Computer Project: CPU Temperature Monitor with OLED display SSD1306
Tagged on:                                                                                                                         

4 thoughts on “CHIP Computer Project: CPU Temperature Monitor with OLED display SSD1306

  • November 19, 2016 at 4:32 pm

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

  • March 27, 2017 at 4:13 am

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

  • January 1, 2018 at 5:49 pm

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

  • January 25, 2018 at 11:42 pm

    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.


Leave a Reply

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