GPIO input to send DMX over Artnet

446 views
Skip to first unread message

andrew korol

unread,
Nov 29, 2017, 5:06:48 PM11/29/17
to open-lighting
I am after having a contact closure happen on RaspberryPi and be able to set that input to send a dmx output via Artnet or Acn. Has this been done or is it possible?

Peter Newman

unread,
Nov 29, 2017, 10:17:39 PM11/29/17
to open-lighting
I'm not aware of a specific example, but anything that can trigger off the GPI could run a script to do something when it receives data, whether that's sending a single frame, or starting an ola_recorder sequence.

Stefan Krüger

unread,
Nov 30, 2017, 4:43:26 PM11/30/17
to open-lighting
Hi Andrew,

as Peter mentioned i don't know a ready made example for this.
but you could do this easily for example with python:
https://www.openlighting.org/ola/developer-documentation/python-api/#Sending_DMX
and and RPI GPIO lib
https://www.raspberrypi.org/blog/gpio-zero-a-friendly-python-api-for-physical-computing/
or
https://pypi.python.org/pypi/RPi.GPIO

i think with this it should be really fast and easy to get something working :-)

sunny greetings
stefan

Richard Ash

unread,
Dec 4, 2017, 6:11:22 PM12/4/17
to open-lighting
On Wed, 29 Nov 2017 19:17:39 -0800 (PST)
Peter Newman <peterj...@gmail.com> wrote:

> I'm not aware of a specific example, but anything that can trigger
> off the GPI could run a script to do something when it receives data,
> whether that's sending a single frame, or starting an ola_recorder
> sequence.
I was using a different OLA output (but that's just patching), and
various other things you don't need, but that is all really that these
scripts do - play back DMX when a button is pressed:
https://github.com/richardash1981/pi-play-scripts

I thought I had written a corresponding blog post, but apparently not -
it must still be on the to-do list!

Richard
Reply all
Reply to author
Forward
0 new messages