Selbstgebauter Lichtdecoder mit DCC und MQTT
 

Selbstgebauter Lichtdecoder mit DCC und MQTT

Begonnen von Krogsgaard, 09. Juni 2026, 16:51:43

Vorheriges Thema - Nächstes Thema

Krogsgaard

Hallo zusammen,

in den letzten Wochen habe ich einen kleinen Lichtdecoder für meine Modellbahn entwickelt.

Der Decoder unterstützt sowohl DCC als auch MQTT und kann bis zu fünf WS2812B-LED-Streifen ansteuern. Jede LED kann individuell hinsichtlich Adresse, Farbe, Helligkeit und Effekt konfiguriert werden.

Die Konfiguration erfolgt bequem über eine integrierte Weboberfläche. Der Decoder kann sowohl mit einer Digitalzentrale als auch direkt über MQTT (z.B. aus Win-Digipet 2025) gesteuert werden.

Eine kurze Dokumentation habe ich als PDF beigefügt.

Kurze Dokumentation

Über Fragen, Anregungen oder Verbesserungsvorschläge freue ich mich natürlich.

Viele Grüße

Jens Krogsgaard
(Dänemark)
Grüße Jens Krogsgaard, Kopenhagen
  • Win-Digipet-Version:
    WDP 2025
  • Anlagenkonfiguration:
    Märklin c-gleis, ECoS 50200 , S88 viessmann, Digikeijs Dsd2010,
  • Rechnerkonfiguration:
    Lenovo T14 i7, windows 11, 24 gb ram, 64 bit

Markus Herzog

Hallo Jens,

Sehr schön.
Ich hoffe das regt auch ändern an sich einfach ein bisschen an solchen Themen zu versuchen

Grüße
Markus
  • Win-Digipet-Version:
    WDP 2025.x Beta
  • Anlagenkonfiguration:
    3-Leiter Anlage, Rollendes Material Märklin/Roco/Brawa/Mehano, Fahren: DCC, m3 via Tams MC, Schalten/Melden: Selectrix, BiDiB, Motorola (nur wenige Sonderaufgaben)
  • Rechnerkonfiguration:
    Intel i7

Pierangelo

Hello Jens

I have downloaded your project description It is really great. I've designed a small turntable (3D printed) https://www.instagram.com/p/DZPqHGEgvz3/?img_index=1
controlled by an Arduino board, and I'd like to connect it to WDP via MQTT so I can incorporate it into my model railway layout. Could you give me some advice?

Many Thanks
  • Win-Digipet-Version:
    2015.1b
  • Anlagenkonfiguration:
    Intellibox + Uhlenbrock feedback modules
  • Rechnerkonfiguration:
    Windows 7 64 bit -8Gb Ram

Krogsgaard

Hallo Pierangelo,

Very nice to hear from you 😊

And I think you and I have the same role: You support Windigipet users ind Italy as I do in Denmark 😊

And thanks for the link to your instagram: I must admit - I do not yet have an instagram account - my wife have one and showed me your pictures of the 3d printed turntable - very nice.

I made this document about Windigipet and MQTT last year:

MQTT and Windigipet


To use MQTT with your Arduino it must be able to connect to the Internet - WiFI Enabled. That is why I use a ESP32 - it can connect to WiFi.

And about coding: In the 'old days' I write the code myself - today I use ChatGPT. I specify my wishes and demands to the system - and chatGPT produce the code. My last project with the light decoder for DCC and/or MQTT it produces 10 data files and 2.500 lines of code - good quality code. A very skilled programmer 😊


Regards from Copenhagen
Jens
Grüße Jens Krogsgaard, Kopenhagen
  • Win-Digipet-Version:
    WDP 2025
  • Anlagenkonfiguration:
    Märklin c-gleis, ECoS 50200 , S88 viessmann, Digikeijs Dsd2010,
  • Rechnerkonfiguration:
    Lenovo T14 i7, windows 11, 24 gb ram, 64 bit