Raspberry Pi Pico Adds Ambience to Tabletop Adventures
Nothing beats the imaginative worldbuilding of a good Dungeons and Dragons (D&D) campaign, but what if you could go even further? raspberry pi Using a Raspberry Pi Pico and a little CircuitPython, he built a custom D&D Sound Mixer Bring sounds and music into the game for a more ambient experience.
According to Rouberol, he wanted to develop an easy way to trigger songs, music and ambient soundtracks with the push of a button. In this way, when he and his friends play his D&D, they can hear music and sound effects depending on what is happening in the game, creating a more immersive experience. is ready.
Rouberol was kind enough to share a demo video of the final project to show how it works. It has a Pico on top and a 4 x 4 keypad illuminated by RGB LEDs. Each key corresponds to either an audio track or a control mechanism that allows you to play multiple tracks simultaneously, adjusting things like volume or overlapping audio. The keypad sends the data over a serial connection to a computer running a Python application that reads your input and plays an associated sound file. Media playback on the PC is handled using PyGame, a popular Python module for creating games.
The mixer is powered by a Raspberry Pi Pico.it is attached to Pimoroni RGB Keypad Provides RGB backlit keys to the key matrix. Manipulate the effects that control the sound mixer. All hardware is held together with the help of a 3D printed base. The frame features an angled keypad mounting for a clean, professional finish and ease of use.
Rouberol explained that the sound mixer needed a user interface, and through the Flask module he created his own interface with a bit more Python code and HTML. Rouberol said he used Flask to create his UI to control layers of audio, adding subtle audio cues to the various stages of the dungeon.
If you would like to recreate this Raspberry Pi project, please visit the official project page: Roberol’s blog You can see both how it fits together and what it actually looks like.