gab-k d970170795 - Updated CMakeLists.txt and board config .h files
- Refactored core0.c to most functions are now static functions.
- Introduced new structures (`dcc_packet_t` and `dcc_ring_buffer_t`) for DCC packet data handling and packet detection.
- DCC pin interrupt now only does packet detection and no evaluation, evaluation is now done inside the main loop.
- Refactor message evaluation logic.
- Implemented hard fault handler, now rebooting when hardfault is encountered.
- Optimized initialization sequence in main().
- Controller and speed helper functions now run outside the timer interrupts, instead flags are set, which are checked inside the core1 main loop.
- Added enumeration for speed steps to improve readability. (However they are yet to be used)
- Added various documentation comments.
- Added various LOG() messages.
- Added python script for generating speed_step typedef definition.
2024-12-29 17:06:50 +01:00
2024-11-27 23:15:51 +01:00
2024-11-26 14:02:56 +00:00
2021-11-13 21:45:23 +01:00

RP2040-Decoder

This Project is a DIY DCC Decoder for model railroad locomotives which aims to be cost effective.

Features

  • DCC digital signal decoding
  • Motor load/speed control
  • 4 Outputs switched by transistors with configurable optional PWM
  • 6 additional GPIO for lighter loads or custom applications
  • Programmable on programming track
  • CV Function Mapping
  • Board size of 25x20 mm
  • Pre-compiled software available and flashable via USB using your regular file explorer
  • Debugging via Serial Wire Debug or optional logging via stdio and UART/USB serial port

Getting Started

The "Getting Started" page provides an overview of the steps required to use the decoder as well as brief instructions for all the necessary steps.

License

  • Software - MIT license
  • Hardware - CERN Open Hardware Licence Version 2 - Permissive
  • LICENSE

Further details about the project can be found here: RP2040-Decoder Wiki

Note: The decoder is still in early development, there might (will) be bugs as its not tested that much yet. So suggestions on how to improve things and bug reports are always much appreciated. The wiki is also work in progress and will be updated to be as comprehensive as possible.


rotating gif of RP2040-Decoder

S
Description
Cost effective DIY DCC Decoder for model railroad locomotives
Readme MIT
61 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 85.4%
CMake 8.3%
Python 6.3%