[Noisebridge-discuss] arduino dmx receiver

Robert "Finny" Merrill rfmerrill at berkeley.edu
Tue May 24 03:07:45 UTC 2016

If you want to receive DMX it's pretty easy--it's just 250 kbps
serial, 8 data bits, 1 stop bit, no parity.

You detect the beginning of a DMX frame by looking for a break
condition (on an AVR this shows up as the "frame error" bit being set
in the UART status), then you just read bytes and throw them out until
you get to the one corresponding to an address you're listening to.

On Mon, May 23, 2016 at 8:04 PM, Robert "Finny" Merrill
<rfmerrill at berkeley.edu> wrote:
> If you want one written in raw C (not arduino) I rolled my own a while
> ago: https://github.com/rfmerrill/venusdmx/blob/master/venusdmx.c
> It requires you to wire the DMX to the hardware UART (which on an
> arduino is usually not exposed and is dedicated to the USB-serial
> interface)
> On Thu, Apr 7, 2016 at 2:07 AM, robb <sf99er at gmail.com> wrote:
>> as it turns out, mathertels DmxSerialRecv example works out of the box
>> w/Arduino 1.6.8 but my connection from DE to RE was loose. jerkey looked at
>> it and squeezed it and it started working!
>> w/DMXSerialRecv:
>> DE & RE are connected together & to pin 2.
>> RO is connected to Rx.
>> cheers
>> On Fri, Apr 1, 2016 at 5:19 PM, robb <sf99er at gmail.com> wrote:
>>> //       Turns out that as I'm using an ungrounded power brick, I probably
>>> don't need all of this, but I had all the parts so I made them anyway :)
>>> easier to switch power supply, than to add isolation
>>> //       Take a look in HardwareSerial0.cpp; it looks like you'll want to
>>> search for USART_RX_vect and USART0_RX_vect.
>>> thx, found it. after editing file, still couldn't receive tho.
>>> //        This probably changed when the Arduino folks started making
>>> boards with more than one serial port.
>>> i think your right
>>> //        Nothing so far -- I'm making lighting stuff for my wedding in a
>>> couple of months, and I want a friend who does a lot of DMX lighting to be
>>> able to control my hardware with his controllers!
>>> congrats & i look forward to seeing your implementations!
>>> i'm hoping to eventually add 7segment leds displays for setting the dmx
>>> channel w/up & down buttons, if i get it working.
>>> different modes would be nice, too
>>> cheers,
>>> ~r
>> _______________________________________________
>> Noisebridge-discuss mailing list
>> Noisebridge-discuss at lists.noisebridge.net
>> https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss

More information about the Noisebridge-discuss mailing list