Logo bigcrimping

A Study In Entropy

Dec 9, 2024 - 2 minute read
feature image

Github link: https://github.com/bigcrimping/study_in_entropy

study_in_entropy

A Raspberry Pi pico project running Micropython which interrogates the NIST randomness beacon and displays the interpreted output on a series of 42 WS2812B RGB LEDs

The project uses an API call to the NIST Interoperable Randomness Beacon https://csrc.nist.gov/projects/interoperable-randomness-beacons/ and uses the 512bit number to map to the RGB of 42 LEDs

Project Code

The project code can be found here: https://github.com/bigcrimping/study_in_entropy/tree/main/code

You will need to load Micropython onto the Raspberry Pi Pico and add your own WiFI details to the secrets file then upload the two .py to the board (I use Thonny)

The lights turn on RED when the unit starts up to signify it has not connected to WiFI, turns GREEN once WiFi is connected then updates the display every ~60 seconds for fresh data

Wiring

Pretty simple wiring, the LEDs are powered off the board 5V and the data pin is connected to pin16 in my case

PXL_20241208_183550397

The LEDs are in rows of 7 and need to be joined between rows

leds

Mechanical Files

The mechanical files can be found here: https://github.com/bigcrimping/study_in_entropy/tree/main/mech

Hopefully the files are explanatory, the front friction fits onto the back, the stand is attached with M3 DIN912 caphead into M3 threaded inserts.

mech

The Raspberry Pi Pico uses M1.6 threaded inserts and cross head screws

insert