D&D Die Roller with Raspberry PI RP2040
November 2024
|Circuit Cellar
Fantastical Project Built with MCU TFT Display and LVGL Graphics
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.
هذه القصة من طبعة November 2024 من Circuit Cellar.
اشترك في Magzter GOLD للوصول إلى آلاف القصص المتميزة المنسقة، وأكثر من 9000 مجلة وصحيفة.
هل أنت مشترك بالفعل؟ تسجيل الدخول
المزيد من القصص من Circuit Cellar
Circuit Cellar
The Future of Sensors in Safety Systems Sensing the Stop
How Magnetic Sensors Are Enabling the Next Generation of Braking Systems
5 mins
December 2025
Circuit Cellar
Alif Semiconductor Elevates Generative AI at the Edge with New Support for ExecuTorch Runtime in Its Ensemble MCUs
Alif Semiconductor, the leading global supplier of secure, connected, power efficient Artificial Intelligence and Machine Learning (AI/ML) microcontrollers (MCUs) and fusion processors, announced that developers can now use the ExecuTorch Runtime, a quantization extension of the popular PyTorch ML framework, for AI applications built to run on its Ensemble E4/E6/E8 series of MCUs and fusion processors.
1 min
December 2025
Circuit Cellar
Encrypted MQTT Protocol for Critical Sectors
Mechanisms, Challenges, and Best Practices
3 mins
December 2025
Circuit Cellar
Datasheet: Small Size, Big Power
Smaller Microcontrollers Bring New Possibilities
9 mins
December 2025
Circuit Cellar
Analog Devices Launches ADI Power Studio and New Web-Based Tools
Analog Devices, Inc. (ADI), a global semiconductor leader, announced the launch of ADI Power Studio, a comprehensive family of products that offers advanced modeling, component recommendations, and efficiency analysis with simulation.
1 mins
December 2025
Circuit Cellar
Compact IBR300 2.5" SBC Powered by NXP i.MX 93 from IBASE
IBASE Technology, Inc., a leading provider of rugged embedded computing platforms, announced the release of the IBR300, a 2.5\" RISC-based single board computer (SBC) powered by the NXP i.MX 93 processor with dualcore ARM Cortex-A55 (up to 1.7GHz) and a Cortex-M33 MCU.
1 min
December 2025
Circuit Cellar
Sensors in the Spotlight
The Next Decade of Embedded Sensor Systems
12 mins
December 2025
Circuit Cellar
Bob's Wrap Up
In Bob's last article with Circuit Cellar, he attempts to wrap up a career of more than 50 years as an embedded systems engineer and 14 years with Circuit Cellar. He looks at each of his 58 articles by category and provides some recommendations for his fellow engineers.
7 mins
December 2025
Circuit Cellar
Designing Embedded Software Architectures That Last
I've reviewed hundreds of firmware projects over the years, and one thing always stands out: the most successful projects have a clear, deliberate architecture.
10 mins
December 2025
Circuit Cellar
Broadcom Introduces Industry's First Wi-Fi 8 Silicon Ecosystem Powering the AI Era
Broadcom, Inc. unveiled the first Wi-Fi 8 silicon solutions for broadband wireless, targeting residential gateways, enterprise access points, and smart mobile clients.
1 mins
December 2025
Listen
Translate
Change font size

