Play With Raspberry Pi ZERO and PHat

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.

play-with-raspberry-pi-zero-and-phat

I have also discovered a small led matrix 11×5 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

Step 1: Download the pHat Library

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

or

sudo apt-get install python3-scrollphat

Install the library on Python 2

Open a Terminal and type:

sudo pip2 install scrollphat

or

sudo apt-get install python-scrollphat

Step 3: Try to make the pHat sparkle

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

python graph.py

or

python3 cpuTemp.py

or

python meteoShare.py

See the result!

See other examples on GitHub

 

Read More:  Play With Raspberry Pi ZERO and PHat

Scroll to Top