Welcome to my Art-Net DMX Lighting Control API! This project provides a Java API for controlling the Amaran PT1c LED light through the Art-Net protocol. The communication occurs via an OpenDMX Ethernet DMX512 interface by ENTTEC (ODE Mk2).
Here's a brief overview of the system setup (Screenshots attached):
- The Amaran PT1c LED light is connected to an ENTTEC OpenDMX Ethernet (ODE Mk2) interface. This interface allows DMX512 signals to be sent over an Ethernet network.
- The ENTTEC interface is connected via Ethernet to a control PC (IP: 192.168.10.10). The ENTTEC interface's IP configuration is as follows: IP: 192.168.10.20, NetMask: 255.255.255.0, Gateway: 192.168.10.254.
- The ENTTEC interface is configured as follows: Type: Output, Protocol: Art-Net, Universe: 0. This configuration can be accessed and updated via the ENTTEC Configuration Interface. The interface also provides the option to update the firmware.
- We utilize Java for creating an API that controls the lighting system.
Follow these steps to use this project:
- Hardware Setup: Ensure your hardware setup matches the system overview mentioned above.
- Clone Repository: Clone this repository to your local machine.
- Java IDE: Open the project in your preferred Java IDE.
- Configuration: If your ENTTEC interface IP and Port differ from the default (192.168.10.20 and 6454, respectively), adjust them in the
ArtNet_AmaranLED_Controller
constructor within theDMX_Light_Controller
class. Otherwise, use the default constructor. - Control Lights: Invoke the necessary methods on an instance of the
ArtNet_AmaranLED_Controller
class to control the light. For instance, use thesetIntensity(intensity)
method to modify the light's intensity.
Here's a brief explanation of what each DMX channel can control:
- Channel 1: Intensity (0 - 255)
- Channel 2: Light temperature (0 - 255) - ranges from 2700 K to 10000 K
- Channel 5: RGB Red (0 - 255)
- Channel 6: RGB Green (0 - 255)
- Channel 7: RGB Blue (0 - 255)
- Channel 10: Strobe
- Value 0: Strobe off.
- 1-19: Reserved, strobe off.
- Values 20 - 255: Control strobe speed, 20 being the slowest (1Hz) and 255 being the fastest (25Hz).
Contributions are welcome! Feel free to submit a pull request. Please ensure that your code adheres to the existing style for consistency.
This project is released under the MIT License. See the LICENSE file for more details.