See the vixenPi setup in action: https://youtu.be/kdkh6msmvUg
Takes an exported Vixen Lights file and controls lights through a Pi making use of the (now deprecated) WiringPi library. Also works in conjuction with a website I created that is served by the Pi, and is used to control when the show is started as well as other things.
There are two ways to setup and compile. The first, and default way, is to cross compile on an Arch system and then copy the executable to the pi. This way assumes a machine running Arch and the arm-linux-gnueabihf-gcc cross compiler installed. The second way is to compile directly on the pi. However I don't recommend doing this if you plan on making changes to the code, as compile time is significantly longer on the pi.
You could use a diffent version of Linux, however I have only tested on Arch
This code has been writen to work with a mysql database, and needs login credentials. Current code looks for credentials in a config.h file.
- Clone this repo
git clone https://github.com/HailStorm32/vixen2Pi.git - Open the Makefile and change the
RPI_LIB_DIRvariable to where the cross compiler stores its libraries. For me its/usr/arm-linux-gnueabihf/lib - Copy
crossCompile/arm-linux-gnueabihf'to/usrand the make sure not to overwrite existing files
Makes sure the necessary files for mysql cross compiling are included
- After the above has been done, run
makein the root directory of the project to compile and build the project - Transfer the executable to the pi by running
scp vixen2Pi PI_IP_ADDR:~ - Install wiringPi on the Pi by cloning this repo and navigating to
contrib/wiringPiand runningsudo ./build - Once wiringPi on the Pi is installed, you can remove the wiringPi repo that was cloned on the pi
- See Running and using vixen2Pi for more information on running the executable
- Clone this repo
git clone https://github.com/HailStorm32/vixen2Pi.git - Open the Makefile, and change the
TARGETvariable by commenting out its value like soTARGET=#arm-linux-gnueabinf- - Install wiringPi by navigating to
contrib/wiringPiand runningsudo ./build - After the above has been done, run
makein the root directory of the project to compile and build the project - See Running and using vixen2Pi for more information on running the executable
Once you have setup your compile environent, now you need to setup the webpage that controls this program.
- Follow the steps here
Make sure the executable, CSV file, and mp3 are in the same directory before running vixen2Pi.