C#C
C#5mo ago
ELBotLike

DMX over UART bus on Raspberry Pi

Hey everyone, I'm currently trying to get an app running on my Raspberry Pi 5 that sends out DMX.

DMX is a standard for communicating with lights: https://en.wikipedia.org/wiki/DMX512
I'm using this head for it: https://bitwizard.nl/shop/DMX-interface-for-Raspberry-pi
I'm using this library for it: https://github.com/BrunoDPO/DMXSimples

I have it halfway working. Individuals packets are fine and valid, but it only sends packets at around 3.5Hz instead of the desired 40Hz, which I measured with an oscilloscope. It just leaves big gaps between the packets.

The interesting part of the library I'm using is the SendBytes() function https://github.com/BrunoDPO/DMXSimples/blob/16d4f402a71713cdb808601d3563ea66eb7aaf27/DMXSimples/DMXCommunicator.cs#L154
DMX512 is a standard for digital communication networks that are commonly used to control lighting and effects. It was originally intended as a standardized method for controlling stage lighting dimmers, which, prior to DMX512, had employed various incompatible proprietary protocols. It quickly became the primary method for linking controllers (...
Addon board for the raspberry pi that allows you to interface with DMX networks. Designed and developed in cooperation with Arjan van Vught. Works with Raspberry Pi, Raspberry Pi 2, Raspberry Pi 3 & Raspberry Pi Zero.

This normally allows you to
GitHub
C# implementation of the DMX-512 protocol (with a simple GUI) - BrunoDPO/DMXSimples
GitHub
C# implementation of the DMX-512 protocol (with a simple GUI) - BrunoDPO/DMXSimples
Was this page helpful?