online dmx light controller
Sounds cool, right?
This is the goal of this project.
All you need is a Raspberry Pi and a USB to USB interface and you should be ready in an hour.
Quick notice: to help you follow these steps, you may want to take a look at the Raspberry Pi of flashular, which is one of the components of this project.
You know I\'ll be more than happy to answer any of your questions before you start, so feel free to ping me!
First of all, I would like to briefly explain how the command chain works when you want to send commands to the spotlight.
Whenever you want to send commands to the DMX spotlight, you need to use a website that is part of this project that monitors everything.
I\'m trying to make the UI as friendly and clear as possible, so there won\'t be any problems using it once it\'s set up.
Secondly, the Raspberry Pi will directly control the status of the spotlight and detect any modifications made on the site.
It will download the new state and trigger the transition you have selected online to switch from the old state to the new state.
Third, since it is difficult for us to insert a dmx cable into our computer, we need a way to send data through a USB cable and then somehow convert the data to a DMX.
This is done by DMX to USB interfaces that are not expensive, just plug and play devices, so this part should not be a problem either.
Finally, at the end of the chain, this is your lighting device, which can be a spotlight controlled by any DMX, which is the only communication protocol handled in this project.
It doesn\'t look too tricky so far, does it?
First of all, I want to try the interface. do you know what you are downloading?
You can try it here.
The core part of this project is to control everything on the network so that you can monitor the spotlight anywhere with any device.
In order to achieve this, you need to do the following two things: I provide the source code on Github.
You will find the following Directory: therefore, copying the source code to the root directory of the website will require you to download the project by running the following command in the terminal: and copy the contents of the www directory in your website root directory.
Your website is ready once it\'s done!
You need to buy a Raspberry Pi and a USB to DMX interface if you haven\'t already. -
For Raspberry Pi, you can find the link to buy Pi from the official website, I suggest you use it as much as you do (
Raspberry pie 2 B)
Because the program it runs is very resource consuming. -
For the USB to DMX interface, I control the DMX interface using Velleman\'s VM116 USB.
There are two models depending on whether you want to buy or assemble as a kit.
After getting the Pi, you will need to install the OS on it and may be interested to check out the quick start guide.
All of these steps are very standard, so I asked you to check the online resources as well as the tutorial for flashutables, which describes the steps I followed.
The software is stored in the following Directory for the same Github project: After cloning the project (cf step 2)
, You can enter the repository and compile it by typing the following command in the terminal.
Later, after connecting the DMX interface to one of the Raspberry Pi USB ports, you can start these two programs using the following command: For clarity, champyLight is just the fancy name I gave this project, so don\'t panic about the new name.
All basic configurations that you can easily edit are stored in the following file: the mandatory setting you must set is \"remote _ addr\", which holds the URL of the website where you host the online controller.
If you want to better understand how value_handler works, I made a document using Doxygen, and you can view it by opening the following file in your favorite browser: once you only need to start two programs for Raspberry Pi, you can control the spotlight.
An improvement here might be to tell the Raspberry Pi to start both programs at startup.
I managed to get it to work but I\'m really not sure about my code so I won\'t share it here.
However, a lot of resources can be found online on this topic, so I\'m sure you can easily find the answer.
The other thing I did was use the battery, wifi hotspot and USB wifi receiver to order products that make Raspberry Pi more portable.
It allows me to use this system in a tourist festival in the French countryside (cf. photo)
I don\'t know where to plug in the Pi or find the internet connection.
It was really convenient to see the work of ChampyLight, and it was a pleasure!
To further push the idea that you can control the spotlight from any device and anywhere, I have considered the following improvements: last suggestion, we can add a camera to the Raspberry Pi, the camera will stream live video of the stage on the ChampyLight controller interface.
The user even has to control his spotlight in the room, not even in the same country (let\'s dream! ).