DMX Lighting Control - Raspberry Pi Pico

DMX is a standard for digital communication with stage lighting fixtures. It is possible to control stage lighting fixtures from a Raspberry Pi Pico using a DMX output module which provides the needed RS-485 driver. Following are some preliminary notes on the required hardware and software.

The CircuitPython_DMX Transmitter module on github uses the PIO unit on the RP2040 of the Pico to generate DMX signals. The protocol is principally a 250 kbps asynchronous stream, but also requires break and mark signals to indicate data frame boundaries.

References

Setup and Testing

The M5Stack Unit DMX includes a 4-pin Grove to Grove cable for the power and serial data connection to the Pico. Our reference configuration is to use a Cytron Maker Pi Pico baseboard with a Raspberry Pi Pico installed, as it provides six Grove connectors.

The CircuitPython_DMX Transmitter module is installed to the Pico by copying the dmx_transmitter folder from the github repository into the CIRCUITPY/lib folder on the Pico. The examples folder from the repository includes several scripts to animate lights. One of these can be copied into the top-level code.py file. The specific data pin will need be updated, e.g. the Maker Pi Pico Grove 1 output is named board.GP0.