Skip to content

About

Simple ESP32 Dmx Presets and Scenes Controller via HTTP and UI

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

Sparkfun ESP32 Thing Plus DMX Shield

Apollo DMX Bridge

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

Fixture config

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).

Fixture configuration sample with definitions

Use of web interface

Access via web interface http://dmx.local

Controller Web Interface

Use of API

GET /getFixturePreset - Return the fixture's active preset
Parameters
name type data type description
id required string Fixture's id
POST /updateFixture - Executes the fixture's preset
Parameters
name type data type description
id required string Fixture id
preset required string Preset id
level optional integer Override preset dim level (0% - 100%)
GET /getScene - Return the active scene
Parameters

None

POST /updateScene - Executes the scene
Parameters
name type data type description
id required string Scene id
command optional string on (default) or off or dim
level optional integer Override preset dim level of all lights in scene (0% - 100%)

Installation

Important

This application ONLY works with the older version of SparkFun DMX Shield Library v1.0.5

  1. Update the credentials.h with your WiFi information
  2. Setup your own fixtureConfig.cpp
  3. Update the data/index.html
  4. Install SparkFun DMX Shield Library version 1.0.5 within Arduino IDE
  5. Flash to a Sparkfun ESP32 Thing Plus microcontroller via Arduino IDE
  6. Upload the sketch data folder for the web interface via SPIFFS
  7. Connect to a SparkFun ESP32 Thing Plus DMX to LED Shield

Important Limitations & Notes

  1. 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.

  2. 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.

  3. 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.

Versions in my testing

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

About

Simple ESP32 Dmx Presets and Scenes Controller via HTTP and UI

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages