Play With Raspberry ZERO PHat




Introduction: Play With Raspberry ZERO PHat

About: I’m degree in Psychology in 2001, with a thesis in Artificial Intelligence. I’m working on Smart Object, IoT and Interactive Design. I’m developing autonomously my projects. I make autonomously programs in A...

Raspberry Pi zero is a smallest version of Raspberry Pi. The Raspberry Pi is not a comestible kind, but is a Microcomputer. A single board computer that have CPU, RAM, HD, all connections like USB, HDMI etc.

I have also discovered a small led matrix 11x5 by Pimoroni, the pHat. This is a small and pretty led matrix that with this little pretty Raspberry Pi, the Raspberry Pi zero, make a very kindly object. A led scrolling led matrix, that you can program in Python.

I show you where to buy the Raspberry Pi, where buy the pHat, and how to install the library and the code for work with the pHat matrix.

On Amazon you can buy the

1. pHat

or Unicorn Hat

2. Raspberry Pi

The Raspberry Pi Zero is available only on Pimoroni

Raspberry Pi Zero

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Download the PHat Library

After the soldering step, you can connect the pHat to your Raspberry Pi zero.

In the Terminal window, type:

sudo raspi-config

put the password (default is raspberry)

1. Go to Advanced Options

2. Select i2c

3. Enable the i2c port

Install the library on Python 3

Open a Terminal and type:

sudo pip3 install scrollphat


sudo apt-get install python3-scrollphat

Install the library on Python 2

Open a Terminal and type:

sudo pip2 install scrollphat


sudo apt-get install python-scrollphat

Step 2: Connect the PHat and Try the Code

You can download the three files on your Raspberry Pi. The graph file generate a random lines on your pHat, the tempCpu, show the CPU temperature of your Raspberry Pi zero, and the show the local meteo condition.

If you want use meteo file you must install the pyown library by terminal:

sudo pip install pyown

After you must provide a valid API key by using pyown library. The weather service you're going to use in this resource is called OpenWeatherMap. It's a completely free service, and has an easy-to-use API. You're going to need your own account though, so click on the link to go to the website:

Step 3: Try to Make the PHat Sparkle

In the Terminal window, go to the same folder where are file, and type:






See the result!

See other examples on GitHub

Arduino Contest 2016

Participated in the
Arduino Contest 2016

Make it Glow Contest 2016

Participated in the
Make it Glow Contest 2016

Be the First to Share


    • Arduino Contest 2020

      Arduino Contest 2020
    • First Time Author Contest

      First Time Author Contest
    • Space Challenge

      Space Challenge