RepositoryC++CZCzechia
bastl-instruments

bastl-instruments/kastle2

A modular DSP platform that fits into your pocket! Comes with open-source codebase and schematics. Citadel compatible.

116stars
25forks
0issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: diy-electronics

#1 Repository of the month

1
TINIX TRENDING·Topic: bastl

#1 Repository of the month

1
TINIX TRENDING·Topic: fixed-point-arithmetic

#1 Repository of the week

Kastle 2

Compatible with Bastl Instruments Citadel

A modular DSP platform that fits into your pocket!
Comes with open-source codebase (including two official firmwares) and schematics.

Kastle 2

How to develop for Kastle 2

Read Toolchain Install Guide, Coding Style Guide and Glossary & Examples, or dive through the generated Code Documentation.

Any questions or weird stuff hapenning? See the FAQ or discuss your experience on our Discord server.

Specifications

  • Raspberry Pi RP2040 MCU (264 kB RAM, clocked at 176 MHz)
  • 8 MB flash for firmware and data
  • 256 B EEPROM for storing calibration and settings
  • 44kHz/16-bit stereo audio quality
  • USB-C or 3xAA battery power (with automatic switching)
  • 18 analog inputs (12-bit)
    • 2 direct inputs (sample rate > 1 kHz)
    • 16 multiplexed inputs (sample rate > 100 Hz)
  • 3 digital inputs
  • 3 analog outputs (using filtered 10-bit PWM)
  • 3 digital outputs
  • Stereo audio input (up to 6 Vpp)
  • Stereo headphone output (suitable for up to 250 Ohm headphones)
  • 3 RGB LEDs
  • USB MIDI input & output - see the MIDI Mappings

All inputs are designed to accept voltages in the range of 0-5V unless specified.
All outputs are designed to provide 0-5V (0V to the input voltage, respectively).

Connectivity

  • USB-C (power, firmware updates, MIDI)
  • Sync in jack (expects a clock signal at tip)
  • Sync out jack (produces a clock signal at tip)
  • Audio in jack
  • Headphone out jack

User interface

  • 7 potentiometers
  • 2 buttons
  • Pin headers for patching
  • Power switch

Power consumption, battery life

Power consumption is approximately 100-150 mA, allowing for up to 15-18 hours of use on 3xAA batteries.

Open Source Firmwares

The full firmware list is here: app list.

FX Wizard
Nine time-based audio effects, with DJ-style lowpass/highpass filter.

Wave Bard
Stereo sample player featuring unique sequencing techniques.

And other examples, see the code/src/apps subfolder.

Citadel repository
A Eurorack adaptation of the Kastle 2 family. It's directly compatible with the Kastle 2 firmwares, there are no extra Citadel firmware builds. The firmware itself detects the variant it's running on (based on the MIDI pull-up resistor on RX line) and adjusts necessary parameters.

Kastle 2 Web Apps repository
Source codes for Wave Bard Sample Loader, Alchemist Laboratory…

Kastle 2 Label Maker repository
Source code for a tool which helps you visualize Kastle 2 app ideas.

Credits

Developed by
Václav Mach (@xx0x), Marek Mach (@machmar)

Supervised by
Václav Peloušek (@vaclav-bastl), Martin Klecl (@martinklecl)

Thanks to Majkel (@tenmajkl) with help around documentation and everyone at Bastl Instruments for their support while working on this!

License

Code
MIT license

Schematics, Documentation, Templates, Printable 3D files
CC BY SA 4.0 license

Voice recordings (Version, Calibration, Test Mode)
CC0 license, made using TTS Maker (voice 178 - Chloe) and sped up by 1.05x

Panel graphics, Case artwork
All rights reserved

Samples (eg. Wave Bard factory bank)
All rights reserved

Note: You are welcome to create derived products based on the schematics and software. However, Bastl retains proprietary rights to the board layout, which is not publicly available. This prevents simple product cloning and maintains the integrity of the original Kastle 2. By purchasing an original Bastl Instruments Kastle 2 you support ongoing development.

Regarding samples: The SAMPLES.BIN file in the repository should not be commercially distributed as part of a custom-built firmware, nor separately, as it is marked “All rights reserved.” However, using the official compiled firmware provided by Bastl (which includes the samples) is fine.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
kfrlib/kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON, RISC-V RVV)

1.9k
Dec 3, 2026
RepositoryC++
cycfi/q

C++ Library for Audio Digital Signal Processing

1.5k
Nov 26, 2026
RepositoryC++
daisyaudio/DaisySP

A Powerful DSP Library in C++

1.3k
Sep 28, 2026
Repository
AhmadHassan-BTed/NaSuno-SongHumanizer

AI audio watermark removal & forensic anti-attribution toolkit. Neutralizes Suno, Udio, and neural fingerprints with ISO 226 perceptual masking.

5.9k
Nov 5, 2026
RepositoryKotlin
AhmadHassan-BTed/AhSilence

An open-source Android Active Noise Cancellation (ANC) engine. Leveraging low-latency DSP to neutralize environmental hums and help you reclaim your quiet.

4.9k
Nov 10, 2026
RepositoryC
timschneeb/RootlessJamesDSP

An implementation of the system-wide JamesDSP audio processing engine for non-rooted Android devices

1.8k
Aug 31, 2026
RepositoryRust
SamiPerttu/fundsp

Library for audio processing and synthesis

1.2k
Mar 3, 2026
RepositoryC
ARM-software/CMSIS-DSP

CMSIS-DSP embedded compute library for Cortex-M and Cortex-A

1.1k
Nov 19, 2026
RepositoryRust
greatest-ape/OctaSine

Frequency modulation synthesizer plugin (VST2, CLAP). Runs on macOS, Windows and Linux.

824
Jul 3, 2024