ir2osc

sensor

ie. how to control Resolume with a TV remote control. Upon pressing a button on a remote control, the program sends pre-defined OSC message to an OSC server.

The program is written in Perl, for Raspberry Pi but can run on any Linux.  It is event driven and can be extended to support different types of remote controls and send any OSC message that your software needs..

Download

Instructions:

  • Get a working infrared sensor for Raspberry Pi. It’s easy and there are many tutorials, for example this. Configure lircd to read your remote control(s) properly.
  • Download the script and change it to match a) your remote controls and button names (as configured in lircd) b) OSC messages you want to send. The OSC messages in the script are written for Resolume, to switch clips and enable/disable effects.
  • Run the script with
./ir2osc.pl <server> <port>