Try GOLD - Free
D&D Die Roller with Raspberry PI RP2040
Circuit Cellar
|November 2024
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.
This story is from the November 2024 edition of Circuit Cellar.
Subscribe to Magzter GOLD to access thousands of curated premium stories, and 10,000+ magazines and newspapers.
Already a subscriber? Sign In
MORE STORIES FROM Circuit Cellar
Circuit Cellar
Bosch Sensortec Launches BMI423 Inertial Measurement Unit
Smart wearables are always on the move-and so is their sensing technology. Bosch Sensortec introduced the BMI423, a new-generation Inertial Measurement Unit (IMU) that combines extended measurement range with low power consumption.
1 mins
February 2026
Circuit Cellar
Renesas Releases its First Wi-Fi 6 and Wi-Fi/Bluetooth LE Combo MCUs for IoT and Connected Home Applications
Renesas Electronics Corp., a premier supplier of advanced semiconductor solutions, has introduced the RA6W1 dual-band Wi-Fi 6 wireless microcontroller (MCU), along with the RA6W2 MCU that integrates both Wi-Fi 6 and Bluetooth Low Energy (LE) technologies.
1 mins
February 2026
Circuit Cellar
Airborne Embedded Software: Simplifying Safety and Security
With modern airborne systems no longer isolated computing environments, any vulnerabilities introduced into these increasingly connected devices can quickly become much more than just a cybersecurity issue, but a safety risk no one can afford.
4 mins
February 2026
Circuit Cellar
Wearable LIDAR Spatial Audio Navigator for Visually-Impaired Individuals
Built with a Raspberry Pi Pico, a TF-Luna LiDAR Sensor, and a Hand-Held Potentiometer
13 mins
February 2026
Circuit Cellar
ADRs: The Missing Memory in Embedded Projects
Remembering and communicating why design decisions were made and the reasons behind their particular implementations can be critical when it comes to developing software as a team and maintaing that software in the future. This time Jacob shares his thoughts on and experience with one of the most valuable tools to extend the reach of software development memories.
9 mins
February 2026
Circuit Cellar
Sensors: From Canned Tuna to Caviar
In the first installment of a new Circuit Cellar column on sensors, Brian Chee looks at how sensors figure into larger application packages and when \"just enough sensors\" can be the perfect solution.
10 mins
February 2026
Circuit Cellar
Embedded DSP with the RT1010 MCU
Part 2: Delay, Flanger, IIR, and Overdrive
15 mins
February 2026
Circuit Cellar
Omnion Power Provides Modular, Scalable DC Power System Monitoring and Control with New Pulsar 200 Controller
Omnion Power is helping to redefine the role of the DC power system controller with its next-generation Pulsar 200 platform.
1 mins
February 2026
Circuit Cellar
Robot Operating System 2 (ROS 2): Core Concepts, Architecture, and Real-World Capabilities
The Robot Operating System 2 (ROS 2) is an open-source, middleware framework that addresses the communication and coordination challenges inherent in modern, distributed robotic systems. In this article, Pedro details how ROS 2's architectural foundations successfully address the core limitations of its predecessor, ROS 1, using real-world scenarios, and steps for setting up the ROS 2 Foxy environment on Ubuntu Linux distro, and cross-platform communication between a host PC and a Raspberry Pi module.
14 mins
February 2026
Circuit Cellar
Ambiq Unveils Atomiq, the World's First Ultra-Low Power NPU SoC Built on SPOT
Ambiq Micro, Inc., a recognized leader in ultra-low-power semiconductor solutions for edge AI, announced Atomiq, the highly anticipated system-on-chip (SoC) integrating a Neural Processing Unit (NPU) designed to enable real-time, always-on artificial intelligence at the edge.
1 mins
February 2026
Listen
Translate
Change font size
