How to Create Digital Dice with Raspberry Pi Pico

Pico Dice
(Image credit: Tom's Hardware)

The holidays are here and now is a great time to dust off the board games for some wholesome family fun. But we have a problem. Where are the dice? Be it a six-sided die for monopoly, or a D20 ready to deliver a critical strike, dice do go missing. 

In this tutorial, we will create our own digital dice by learning how to connect an OLED screen, an SSD1306, to a Raspberry Pi Pico via the I2C interface. We will trigger a dice roll by pressing a button and, after a short animation, the roll will display on the screen. To enable this we will install a MicroPython library via the Thonny editor and learn how to use it to write text to the display.

Latest Videos FromTom's Hardware
Les Pounder
Associate Editor

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".