lonesoulsurfer/Acid_Drip_Bassline_and_Drum_Synth
DIY RP2040 groovebox: acid bassline synth, DRIFT synth and drum machine. Mozzi audio, ILI9341 screen, 16 Cherry MX pads.
Acid Drip: bassline synth, DRIFT synth and drum machine
Acid Drip is a DIY groovebox with three instruments: a 16-step acid bassline synth, a second synth voice (DRIFT) and a 16-pattern drum machine. It uses an RP2040 (Raspberry Pi Pico), the Mozzi audio library, a 320 × 240 colour screen and 16 Cherry MX pads.
Note: The photos show hardware version 1. The files in this repository are for hardware version 2. Version 2 has one more pot (for the mix).
Download the firmware
Warning: Do not use Code → Download ZIP to get the firmware. That ZIP has the source code only. It does not have the
.uf2file. Get the.uf2file from the latest release.
Build guide and video
The full build guide, with photos of each step, is on Instructables: Acid Drip on Instructables.
Click the image to watch the video on YouTube.
What you need
Hardware
| Part | Details |
|---|---|
| Microcontroller | RP2040 (Raspberry Pi Pico or equivalent) |
| Screen | ILI9341, 320 × 240, SPI |
| Pads | 16 × Cherry MX switches (2 rows of 8) |
| Pots | CUT, RES, DECAY (and MIX on hardware version 2) |
| Audio out (acid) | GP15 → 100 Ω + 10 nF RC filter → 3.5 mm jack |
| Audio out (drums and DRIFT) | GP2 → 470 Ω → 3.5 mm jack |
| Sync in or out | GP2. A switch selects audio or sync. |
All parts are in the parts list. The PCB and front panel Gerber files are in Gerber_Files. The schematic is Schematic.png.
Wiring
TFT : SCK=GP6 SDA=GP7 RST=GP8 DC=GP10 CS=GP13
Pots : CUT=GP26 RES=GP28 DCY=GP27
Sync : IN/OUT=GP2
Audio : Acid=GP15 Drums/DRIFT=GP2
Top row pads (steps 1-8):
GP14=pad1 GP12=pad2 GP11=pad3 GP16=pad4
GP17=pad5 GP19=pad6 GP20=pad7 GP21=pad8
Bottom row pads (steps 9-16 / FUNC select):
GP0=pad9 GP1=pad10 GP3=pad11 GP4=pad12
GP5=pad13 GP9=pad14 GP18=pad15 GP22=pad16
Software (only if you compile the firmware yourself)
- Arduino IDE 2
- Board package: Raspberry Pi Pico/RP2040 by Earle Philhower
- Libraries (install them with the Library Manager):
- Mozzi (version 2)
- Adafruit GFX Library
- Adafruit ILI9341
Install the firmware
A .uf2 file is the firmware, ready to use. You do not need the Arduino IDE to install it. You copy it to the Pico, as you copy a file to a USB stick.
Step 1: Download the file
- Go to the latest release.
- In the Assets list, click the
.uf2file for the version that you want. Your browser downloads it.
The release has one .uf2 file for each firmware version. Use the newest version, unless you want an older one. V5 has all the V4 functions, and it adds DRIFT, pattern chaining, MIX EDIT and a custom drum pattern.
Step 2: Copy the file to the Pico
Use method A if you can reach the BOOTSEL button on the Pico. Use method B if the Pico is inside a case.
Method A: with the BOOTSEL button
- Disconnect the USB cable from Acid Drip.
- Push and hold the BOOTSEL button. It is the small white button on the Pico.
- While you hold the button, connect the USB cable to your computer.
- Release the button. A drive with the name RPI-RP2 opens on your computer.
- Drag the
.uf2file onto the RPI-RP2 drive. - Wait about 5 seconds. The drive closes, the Pico restarts, and Acid Drip starts.
Method B: without the BOOTSEL button (Windows)
This method uses a tool from the Arduino IDE. You must install the Arduino IDE and the Raspberry Pi Pico/RP2040 board package first. See Software.
- Connect Acid Drip to your computer with the USB cable.
- Close the Arduino IDE.
- Find the COM port of Acid Drip. Open Device Manager and look under Ports (COM & LPT). An example is
COM5. - Open the folder that has the
.uf2file in File Explorer. - Click in the address bar. Type
powershelland push Enter. A PowerShell window opens in that folder. - Paste these lines. Change
COM5to your COM port, and change the file name to the name of your file. - Push Enter.
$base = "$env:LOCALAPPDATA\Arduino15\packages\rp2040"
$py = (Get-ChildItem "$base\tools\pqt-python3" -Recurse -Filter "python3*.exe" | Select-Object -First 1).FullName
$tool = (Get-ChildItem "$base\hardware\rp2040" -Recurse -Filter uf2conv.py | Sort-Object FullName -Descending | Select-Object -First 1).FullName
& $py -I $tool --serial COM5 --family RP2040 --deploy ".\Acid_Drip_Drum_Acid_Drift_V5-v5.1.0.uf2"
- Wait about 10 seconds. Acid Drip restarts with the new firmware.
This is the same method that the Arduino IDE uses when you click Upload.
Note: Your saved patterns are at the end of the flash memory. A new
.uf2file does not usually erase them. If your patterns are important to you, write them down before you install new firmware.
Compile the firmware (for developers)
- Install the software in Software.
- Open the sketch folder of the firmware version that you want, in
src/. - In the Tools menu, set these values:
- Board: Raspberry Pi Pico
- Flash Size: 2MB (no FS)
- CPU Speed: 200 MHz
- Optimize: Small (-Os) (standard)
- USB Stack: Pico SDK
- Connect the Pico.
- Click Upload.
How to play
The user manual tells you how to use the acid synth, DRIFT, the beat machine, save and load, FUNC mode, MIX EDIT and sync.
The quick reference guide is a one-page summary.
Files in this repository
| Folder or file | Contents |
|---|---|
src/ | Firmware. One sketch folder for each version. |
Acid_Drip_PCB_Kicad/ | KiCad files for the PCB |
Front Panel Design/ | KiCad, Inkscape and DXF files for the front panel |
Gerber_Files/ | Gerber files for the PCB and the front panel, ready to order |
Parts_List/ | Parts list (PDF and Excel) |
docs/MANUAL.md | User manual |
CHANGELOG.md | Changes in each firmware version |
Credits
- The acid synth engine is adapted from Badass Bass by Tschibo00 (video).
- The drum engine is adapted from DrumKid by Matt Bradshaw (video).
- Acid Drip uses the Mozzi audio library.
- Hardware design and firmware: Marcus (lonesoulsurfer).
Support
Do you like this project? You can support my work on GitHub Sponsors.
Licence
- Firmware (the
src/folder): GNU General Public License v3.0. The acid engine comes from Badass Bass, which uses GPL-3.0. Thus the firmware must also use GPL-3.0. - Hardware (PCB, front panel, Gerber files and schematic): CERN Open Hardware Licence v2, Strongly Reciprocal.
- LICENSING.md gives the details and the licences of the code that Acid Drip uses.
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Multi-Platform Gamepad Firmware for Raspberry Pi Pico and other RP2040 boards
NES Emulator with SD card and menu support for the Raspberry PI Pico, Pico 2 and other RP2040/RP2350 based microcontrollers. Play your games from SD card on a HDMI display.
Reference firmware for the OpenFIRE project, built for the RP2040 microcontroller
A wallet-sized groovebox that turns $30 of hardware and a 3D printer into a four-track acid powerhouse | three mono/poly 303 voices, eight lanes of 808 & 909 drums, and a sampler that records the room or the machine itself. | M5Stack Cardputer-ADV | open source (MIT)
Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
