يحاول ذهب - حر

D&D Die Roller with Raspberry PI RP2040

November 2024

|

Circuit Cellar

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 من Circuit Cellar.

اشترك في Magzter GOLD للوصول إلى آلاف القصص المتميزة المنسقة، وأكثر من 9000 مجلة وصحيفة.

هل أنت مشترك بالفعل؟

المزيد من القصص من Circuit Cellar

Circuit Cellar

Circuit Cellar

Bourns Announces New Micro Encoders Offering High Reliability in a Compact Design

Bourns, Inc., a leading manufacturer and supplier of electronic components for power, protection, and sensing solutions, announced its PEC04 Series 4mm Incremental Micro Encoder, its PEC05 Series 5mm Incremental Micro Encoder and its Model PEC06, a 6mm Incremental Micro Encoder. Bourns new micro encoders provide position and speed information essential for control functions in a broad variety of electronic applications.

time to read

1 min

September 2025

Circuit Cellar

Circuit Cellar

Harwin Brings Through-Hole Retention to Industrial Kontrol Range of Connectors

Harwin has extended its Kontrol lineup of connectors for industrial and embedded applications, adding through-hole retention to further enhance resilience and board-level reliability in harsh operational environments. Harwin has added 72 new products to the industrial connector family, extending the range by 48%.

time to read

1 min

September 2025

Circuit Cellar

Circuit Cellar

Renesas Introduces 64-bit RZ/G3E MPU for High-Performance HMI Systems Requiring AI Acceleration and Edge Computing

Renesas Electronics Corp., a premier supplier of advanced semiconductor solutions, announced the launch of its new 64-bit RZ/G3E microprocessor (MPU), a general-purpose device optimized for high-performance Human Machine Interface (HMI) applications.

time to read

1 mins

September 2025

Circuit Cellar

Circuit Cellar

Build a Follower Counter for Social Media

See Real-Time Metrics Using an Arduino Yún

time to read

20 mins

September 2025

Circuit Cellar

Circuit Cellar

Nordic Semiconductor Announces Highly Integrated nPM3104 Power Management IC With Support For Small-Size Battery Products

Nordic Semiconductor announced the new nPM1304 Power Management IC (PMIC). Building on the success formula of the well-established nPM1300, the nPM1304 offers the ideal solution for space-constrained applications that require small batteries.

time to read

2 mins

September 2025

Circuit Cellar

Circuit Cellar

Chaos on Your Desktop

Build a Color-Pulsing Light Sphere Using a PIC or Raspberry Pi Pico MCU

time to read

9 mins

September 2025

Circuit Cellar

Circuit Cellar

NXP’s New Battery Cell Control IC Family Advances New Energy Solutions

NXP Semiconductors announced its new 18-channel Li-ion battery cell controller, the BMx7318/7518 IC family, designed for electric vehicle (EV) high-voltage battery management systems (HVBMS), industrial energy storage systems (ESS) and 48V battery management systems.

time to read

1 mins

September 2025

Circuit Cellar

Circuit Cellar

Autonomous Mobile Robots

Robots Moving to Their Own Beat

time to read

12 mins

September 2025

Circuit Cellar

Circuit Cellar

The DVM on Your Wrist

A Wireless Link Between A DVM and a Smart Watch

time to read

18 mins

September 2025

Circuit Cellar

Circuit Cellar

Control Your Local IoT Network from the Cloud

Secrets of “Cloud Relaying” Revealed

time to read

5 mins

September 2025

Listen

Translate

Share

-
+

Change font size