Seite drucken - Selbstgebauter Lichtdecoder mit DCC und MQTT

windigipet.de

Win-Digipet - deutsche Foren => Tipps & Tricks - Hardware-Bastelei - Workshops => Hardware-Bastelei => Thema gestartet von: Krogsgaard in 09. Juni 2026, 16:51:43

Titel: Selbstgebauter Lichtdecoder mit DCC und MQTT
Beitrag von: Krogsgaard in 09. Juni 2026, 16:51:43
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 (https://krogsgaardsmodelbane.dk/Projekter/DCC_lysdekoder/Selbstgebauter%20Lichtdecoder%20mit%20DCC%20und%20MQTT.pdf)

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

Viele Grüße

Jens Krogsgaard
(Dänemark)
Titel: Aw: Selbstgebauter Lichtdecoder mit DCC und MQTT
Beitrag von: Markus Herzog in 09. Juni 2026, 23:08:14
Hallo Jens,

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

Grüße
Markus
Titel: Aw: Selbstgebauter Lichtdecoder mit DCC und MQTT
Beitrag von: Pierangelo in 10. Juni 2026, 11:40:30
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
Titel: Aw: Selbstgebauter Lichtdecoder mit DCC und MQTT
Beitrag von: Krogsgaard in 10. Juni 2026, 19:50:20
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 (https://krogsgaardsmodelbane.dk/Projekter/12%2520-%2520Software/Term-fugt%2520m%C3%A5ler/Windigipet%25202025%2520-%2520MQTT%2520integration.pdf)


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