Spigot algorithms compute decimal expansions of irrational constants such as Pi, one digit at a time. It is fairly easy to run spigot algorithms on a Raspberry Pi. There is already a Python package called PiDigits that implements a few of the spigot algorithms described in the research literature. However I wanted to make it more visually explicit that my Raspberry Pi was executing a spigot algorithm to compute the digits of Pi. I’ve modified a Pimoroni case for a Raspberry Pi 2 to give the appearance of digits streaming from a spigot. The spigot’s check valve is a 10K potentiometer. The LEDs come from a Poundworld Christmas decoration. The digits are displayed on 5 daisy chained MAX7219 8×8 LED modules.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey