Main Content

There are several methods for calculating the value of Pi. One approach that was devised by mathematicians (Gibbons, Rabinowitz, and Wagon) generates the digits iteratively one after the other using what is called a spigot algorithm. There are a number of implementations of spigot algorithms that will run on the Raspberry Pi. But wouldn’t it be cool if you can control the spigot algorithms using a physical spigot from which each digit of Pi drips out?

The following steps will describe how to dress up a Raspberry Pi to look like a shiny spigot from which the digits of Pi will be issued when opened.

Supplies:
Raspberry Pi
A case for the Raspberry Pi - I used one from Pimoroni
MAX7219 8x8 LED modules - I used 5 of these
3 LEDs
10K potentiometer
3x 150 ohm resistors
2x 1K ohm resistors
0.47 microfarad capacitor
Perforated prototyping circuit board
Male and female headers
Wire
Soldering equipment
Cardboard - both single layer and corrugated
Popsicle sticks
Zip ties
Glue”

Link to article