D&D Die Roller with Raspberry PI RP2040
Circuit Cellar|November 2024
Fantastical Project Built with MCU TFT Display and LVGL Graphics
Andrew Levido
D&D Die Roller with Raspberry PI RP2040

Dungeons and Dragons is a complex, fantasy role-playing game, in which various players roll polyhedral dice with 4 to 20 faces to determine outcomes at various decision points. Andrew describes an electronic device he created to simulate rolling the dice using a Raspberry Pi RP2040 MCU, a TFT with touchscreen to show the rolling dice and display the scores from each roll, and an STM amplifier to add the element of drama with sound effects.

My daughter is a big fan of Dungeons and Dragons, the fantasy role-playing game. This game has been around since the 1970s but has become hugely popular during the last few years. One of the key aspects of the game mechanics is the use of polyhedral dice to decide the outcome at various decision points. A typical set of dice, shown in Figure 1, includes seven dice. Six with 4, 6, 8, 10, 12, or 20 faces (designated D4, D6, and so on), along with a second, 10-faced die, the "percent" die. As the name suggests, the "D%" die is used together with the D10 to get a score ranging from 1 to 100 percent; one die gives the tens digit and the other gives the ones digit.

There is sometimes a requirement for a Yes/No decision. This can be done in various ways - for example by using a D6 and designating odd numbers to indicate a No and even numbers a Yes, or by using a special coin-like token. There is frequently the requirement to roll several dice and use the sum of their values to determine game outcomes.

If you look online, you will see that a plethora of beautifully decorated D&D dice sets are available. The die-rolling experience is an integral part of the enjoyment of the game, and the dedicated D&D aficionado will have several sets to choose from.

この記事は Circuit Cellar の November 2024 版に掲載されています。

7 日間の Magzter GOLD 無料トライアルを開始して、何千もの厳選されたプレミアム ストーリー、9,000 以上の雑誌や新聞にアクセスしてください。

この記事は Circuit Cellar の November 2024 版に掲載されています。

7 日間の Magzter GOLD 無料トライアルを開始して、何千もの厳選されたプレミアム ストーリー、9,000 以上の雑誌や新聞にアクセスしてください。

CIRCUIT CELLARのその他の記事すべて表示
As a 'Matter of Fact
Circuit Cellar

As a 'Matter of Fact

Inside atest Home Control Consolidation Attempt via Google Home and Matter-over-Thread

time-read
10+ 分  |
November 2024
Industrial Computers Boost Machine Vision Systems
Circuit Cellar

Industrial Computers Boost Machine Vision Systems

GPU and CPU Performance Drive Rugged Industrial Platforms

time-read
6 分  |
November 2024
Infineon Introduces Industry's First 20 Gbps Universal USB Peripheral Controller
Circuit Cellar

Infineon Introduces Industry's First 20 Gbps Universal USB Peripheral Controller

Infineon Technologies announced the addition of the EZUSBTM FX20 programmable USB peripheral controller to its EZ-USB product family.

time-read
1 min  |
November 2024
Microchip Makes it Easier to Build Sophisticated GUIs for MPLAB Harmony v3 and Linux Environments
Circuit Cellar

Microchip Makes it Easier to Build Sophisticated GUIs for MPLAB Harmony v3 and Linux Environments

Designers are incorporating Graphical User Interfaces, or GUIs, into more electronic devices to enhance the user experience by providing intuitive and visually appealing interactions with today's modern applications.

time-read
1 min  |
November 2024
Entertainment On Wheels
Circuit Cellar

Entertainment On Wheels

In-Dash Panels Control Head Units, Multiple Displays, Cameras and Sensors

time-read
10+ 分  |
November 2024
Using Amazon Alexa to Control Custom IoT Gadgets
Circuit Cellar

Using Amazon Alexa to Control Custom IoT Gadgets

Integrating Voice Recognition for Smart Home Projects

time-read
10+ 分  |
November 2024
Datasheet: Power Up With DC-DC Converters
Circuit Cellar

Datasheet: Power Up With DC-DC Converters

Application Types Drive Parameters Beyond Efficiency and Density

time-read
3 分  |
November 2024
D&D Die Roller with Raspberry PI RP2040
Circuit Cellar

D&D Die Roller with Raspberry PI RP2040

Fantastical Project Built with MCU TFT Display and LVGL Graphics

time-read
10+ 分  |
November 2024
No Blues with Bluetooth!
Circuit Cellar

No Blues with Bluetooth!

Part 6: Bluetooth Cybersecurity Basics

time-read
10+ 分  |
November 2024
LoRaWAN Goes the Distance at Low Power
Circuit Cellar

LoRaWAN Goes the Distance at Low Power

IoT’s Versatile Protocol for Long-Range, Wide-Area Connectivity

time-read
10+ 分  |
November 2024