I am currently working on a project where I need to receive DMX512 data from a standard DMX lighting controller using an STM32G030K8T6TR microcontroller. I am using the Arduino IDE with the STM32 board support package.
Hardware Configuration
- Microcontroller: STM32G030K8T6TR
- UART Pins: PA10 (RX) for receiving DMX data
- Direction Control: PA8 used to control the DE/RE pin of the RS485 transceiver (set LOW for receiving)
- RS485 Transceiver: THVD1400DR
- DMX Source: Standard DMX512 lighting controller
What I Have Tried
I have tested several DMX libraries, including:
- DMXSerial,
- DMXSerial2,
- DMXSimple.
Unfortunately, most of these libraries are designed for AVR architecture and include AVR-specific headers such as <avr/interrupt.h>, which are not compatible with STM32.
Additionally, the libraries I found either support only transmission or fail to function properly for receiving on STM32 targets. I am simply looking for a method or library that will allow me to receive DMX512 channel data on the STM32G030K8T6TR using the Arduino IDE environment. Any guidance, working examples, or recommendations for compatible libraries would be highly appreciated.