Set up your Pimoroni Unicorn Hat on Raspberry Pi

Updated 19 June 2017

The Pimoroni Unicorn HAT lets you add 64 dazzling RGB LEDs to your Raspberry Pi, and makes for a sickeningly colourful display. I'll show you how to get yours set up, and we'll have a go at modifying an example script.

This tutorial is similar to Pimoroni's own, but we'll address some issues many encounter when trying to set up a Unicorn hat.

All you need is a Unicorn HAT and a Raspberry Pi: model B or Zero(W).

In a nutshell

  • Execute: curl https://get.pimoroni.com/unicornhat | bash and follow the prompts.
  • Navigate to the examples directory. You have to run these scripts as a super-user, so run from the terminal with eg. sudo python /home/pi/Pimoroni/unicornhat/examples/game_of_life.py
  • Edit the file if necessary to use the full display.

The example I'm running in this video is an adaptation of Conway's Game of Life: a cellular automaton and classic LED-matrix project. You can read more about it at the Wikipedia article.

Have a question? Ask the Author of this guide today!

Please enter minimum 20 characters

Your comment will be posted (automatically) on our Support Forum which is publicly accessible. Don't enter private information, such as your phone number.

Expect a quick reply during business hours, many of us check-in over the weekend as well.

Comments


Loading...
Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.