Skip to content

Raspi Hats

Pan-Tilt Hat

A Pimoroni Pan-Tilt HAT can be purchased here.

The Pan-Tilt HAT github repo is here

The Python API is described here.

Raspbian Installation

Python 2:

pi@raspberrypi:~ $ sudo apt-get install python-pantilthat

Python 3:

pi@raspberrypi:~ $ sudo apt-get install python-smbus
pi@raspberrypi:~ $ sudo apt-get install python3-pantilthat

Enable the I2C bus with raspi-config. Select Interfacing Options and then enable I2C.

pi@raspberrypi:~ $ sudo raspi-config

Unicorn Hat

A Unicorn HAT can be purchased here

The Unicorn HAT github repo is here.

Examples are here.

Raspbian Installation

Python 2

sudo apt-get install python-pip python-dev
sudo pip install unicornhat

Python 3

sudo apt-get install python3-pip python3-dev
sudo pip3 install unicornhat

If you get an error message Can't open /dev/mem: Permission denied, then run the program with sudo.

If you get random LEDs blinking, make sure the sound is routed to HDMI by adding these two lines to /boot/config.txt and rebooting:


Display-O-Tron Hat

A Display-O-Tron can be purchased from here

The Display-O-Tron github repo is here.

A Getting Started is here

A Reference is here

Tutorials are here

Examples are here.

Raspbian Installation

Install the driver with:

curl -sS | bash