Simple control of DMX fixtures over a web interface & HTTP API. Intended to allow DMX fixtures to integrate into any home automation setup.
Features
- Get and update DMX fixture presets or scenes
- Artnet manual relay mode to enable a 3rd party controller
- An HTML front-end for manual control and debugging
- Delayed power off relay trigger allowing for fan cooldown
Supported Devices
- Sparkfun ESP32 Thing Plus with DMX to LED Shield
- Any DMX based fixture that fits within 1 universe (512 channels)
Dependencies
The fixtureConfig.cpp stores an array of fixtures and scenes. Each fixture can have an array of presets which is the value for each channel used by the fixture.
The scenes specify a desired preset for each fixture.
See the comments within fixtureConfig.h for complete definitions.
Note that some values are intended for future functionality (i.e. The link to the fixture manual).
Access via web interface http://dmx.local
GET /getFixturePreset - Return the fixture's active preset
name type data type description id required string Fixture's id
POST /updateFixture - Executes the fixture's preset
name type data type description id required string Fixture id preset required string Preset id level optional integer Override preset dim level (0% - 100%)
POST /updateScene - Executes the scene
name type data type description id required string Scene id command optional string on(default) oroffordimlevel optional integer Override preset dim level of all lights in scene (0% - 100%)
Important
This application ONLY works with the older version of SparkFun DMX Shield Library v1.0.5
- Update the credentials.h with your WiFi information
- Setup your own
fixtureConfig.cpp - Update the
data/index.html - Install
SparkFun DMX Shield Library version 1.0.5within Arduino IDE - Flash to a Sparkfun ESP32 Thing Plus microcontroller via Arduino IDE
- Upload the sketch data folder for the web interface via SPIFFS
- Connect to a SparkFun ESP32 Thing Plus DMX to LED Shield
-
With my controller, I am unable to monitor the serial port and connect to the wifi router at the same time. I am not sure if this is a limitation of this controller when using it with the DMX libraries.
-
This uses the older version of the Sparkfun DMX libraries. It breaks with the most recent version and I have not yet diagnosed the problem.
-
This version does NOT work with the SparkFun Thing Plus - ESP32-S2 with the USB-C connector. There was recently an overhaul of the SparkFun DMX library and should correct this issue once this code is updated to use the new library.
Using board 'esp32thing_plus' from platform in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13 Using core 'esp32' from platform in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13
Using library WiFi at version 2.0.0 in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/WiFi Using library ESP Async WebServer at version 1.2.3 in folder: /Users/ray/Documents/Arduino/libraries/ESPAsyncWebServer-master Using library FS at version 2.0.0 in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/FS Using library AsyncTCP at version 1.1.4 in folder: /Users/ray/Documents/Arduino/libraries/AsyncTCP Using library SparkFun DMX Shield Library at version 1.0.5 in folder: /Users/ray/Documents/Arduino/libraries/SparkFunDMX-master Using library ArtnetWifi at version 1.5.1 in folder: /Users/ray/Documents/Arduino/libraries/ArtnetWifi-master Using library ESPmDNS at version 2.0.0 in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/ESPmDNS Using library SPIFFS at version 2.0.0 in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/SPIFFS Using library HTTPClient at version 2.0.0 in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/HTTPClient Using library WiFiClientSecure at version 2.0.0 in folder: /Users/ray/Library/Arduino15/packages/esp32/hardware/esp32/2.0.13/libraries/WiFiClientSecure


