Controlling a Painting Machine with a Vive VR Controller

Jeff Leonard created a painting machine for his artwork. It's controlled by an Arduino and can be used with many different types of tools that he has developed. I shared a studio space with him for a few years and one day thought it would be fun to try to control his machine with a Vive controller. I wrote an Arduino sketch that could receive commands for the machine hardware over a serial connection to a PC and a Python script to generate commands based on the position and orientation of the Vive controller.