OpenDec02 DCC Decoder with RP2040

Product Overview

The OpenDec02 DCC Decoder harnesses the power of the Raspberry Pi Foundation’s RP2040 microcontroller, bringing a new level of precision, flexibility, and innovation to model railroading. This cutting-edge decoder is built on an open-source platform, designed for hobbyists who demand the ability to customize, enhance, and evolve their model railroad systems.

Decoder Features

  • Microcontroller: RP2040 by the Raspberry Pi Foundation.
  • Compatibility: Fully compatible with DCC standards.
  • Programming: Open-source software built ontop of Raspberry Pi’s C-SDK.
  • Motor Control: Advanced PID control for maintaining speed under different loads as well as smooth acceleration and deceleration.
  • Sound and Lighting: Programmable outputs for realistic lighting effects.
  • Sound: Not yet, but with direct access to a number of GPIO’s and the source code anyone can have a stab at it.
  • Connectivity: Supports additional sensors and actuators for extended functionality.
  • Community: Access to a vibrant community for support, ideas, and collaboration.

Technical Specifications

  • Memory: 264KB of SRAM, and 8MB of onboard Flash memory.
  • Core: Dual-core ARM Cortex-M0+ processor, up to 133 MHz, overclockable (how is that even a word) to 250MHz.
  • Input/Output: 6 Digital I/O logic IO signals and 4 30V/450mA outputs.
  • Communication: UART, I2C, SPI can be configured for communication with external devices.
  • Dimensions: Compact form factor (20x25mm) for easy integration into model locomotives.
  • Motor current: 2.8A max continous, with motor driver mounted to chassis.
  • PCB:
    • 4 layer board with solid ground plane for improved heat distribution.
    • Big solder pads for easy soldering of wires to the PCB.


  • Customization: Tailor every aspect of your model locomotive by modifying the source code.
  • Performance: Leverage the RP2040’s high performance for sophisticated control schemes.
  • Community Support: Benefit from the knowledge and creativity of the open-source community.
  • Future-Proof: Continuously upgradeable with the latest features and improvements.


The device is flashed with the latest available firmware at the time of shipping so if you are a just aiming to run the decoder you can do so.

  • Locomotive Control: Precise control over speed, direction, and operational characteristics.
  • Environmental Effects: Dynamic control of lighting to enhance realism.
  • Automation: Integration with sensors for automated control scenarios and feedback.
  • Dynamic GPIO control: Allows you to dynamically assign GPIO functions using CV’s.

Getting Started

The OpenDec02 board is based on Gabriel Koppensteins open source project found here. All cudos for this project goes to Gabriel, the only thing we have added is an optimized layout and our knowledge in production. His github pages describe the architecture and how to work with the device in a very clear manner.

On our boards we have brought out the D+/D- signals for the USB interface which can simplify flashing of the device when we produce them in bulk. Feel free to use them anyway you want. A cut off USB cable can be used to connect with the device, remember though that the USB stack causes overhead which can conflict with the tight timing of the DCC protocol decoder.

Why OpenDec02 ?

The OpenDec02 DCC Decoder stands out by offering an unparalleled blend of performance, customization, and community support. Whether you’re a seasoned hobbyist or new to model railroading, the OpenDec02 provides a robust platform for innovation. Embrace the future of model railroading with the OpenDec02, where your creativity and technical skills can truly flourish.

Weight 0.008 kg
Dimensions 2.5 × 2 × 0.5 cm


There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.