Matt Ranostay
mranostay@gmail.com
Brief Overview
 Not an expert in industrial lighting systems
 Currently a pet project aka weekend beer coding
 Any ques...
DMX? Not just a rapper?
 DMX512 (Digital Multiplex 512) is an industry
standard lighting specification that has been in u...
DMX RS-485 Traffic
 DMX512 is named so because it is 512 slots of data + 1
command/start code slot
 Slot is one byte
 E...
DMX512 RS-485 Protocol
 RS-485 has no clock line so you need a set way to know
when a frame begins
 Must be terminated f...
DMX512 Oscilloscope Output
Example of DMX-enabled Devices
 Stage Lighting (vast majority of applications)
 Lasers
 RGB LED panels (i.e. 16x16 grid...
DMX in action (Singapore Flyer)
DMX-over-IP
 Various implementations over the years that have all
have pros and cons
 ArtNet III
 E1.31 – Streaming ACN...
Remote Device Management
 RDM was designed after DMX512 and uses the same
RS485 path to send messages
 Bi-directional co...
Open Lighting Architecture
 Completely Open Source implementation of the
networking aspects of the DMX512 protocol
 OLA ...
Open Lighting Architecture
 Future support for RS-485 array of devices on Linux is
planned which will make this more of n...
OLA Web Interface
Typical OLA Setup
Lighting Sequencer
E1.31/ArtNet III
Open Lighting
Architecture
Physical Device
(e.g. SPI/USB/RS485)
OLA Hacks
 Triggers from DMX control codes that run commands
 Could trigger a processing script
 Turn on or off a relay...
Open Sound Control
 OSC is used for MIDI control as well lighting control
 OLA has a OSC interface that can be used as w...
Data Flow
DMX512-A
Network
Protocol or RS-
485
End Device
WS2812 Chipset (self-clocking)
WS2801 (SPI + protocol decode)
OLA + PixelController + AM335x PRU
Demo
 BeagleBone Black (am335x)
 PRU (Programmable Real-time Unit) outputting SPI
and/or another self clocked protocol
...
Conclusions/Opinions
 DMX is old but it is a classic has little need to be
improved other than legacy systems being moved...
Questions
 How many have you used staging light that has
utilized DMX512? Or some other propriety protocol?
 Have you us...
Special Thanks
 Simon Newton - nomis52
 Andrew Frazier - mrpackethead
 Pantelis Antoniou - panto
References
 Open Lighting Architecture
 http://www.openlighting.org
 Singapore Flyer Picture
 http://en.wikipedia.org/...
References
 Sigrok + Pulseview (WS2801 + WS2812 debug)
 http://sigrok.org
 WS28xx PRU firmware
 https://github.com/mra...
Upcoming SlideShare
Loading in …5
×

Open lighting presentation 2014

706 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
706
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Open lighting presentation 2014

  1. 1. Matt Ranostay mranostay@gmail.com
  2. 2. Brief Overview  Not an expert in industrial lighting systems  Currently a pet project aka weekend beer coding  Any questions unable to answer can be addressed to the #openlighting channel on Freenode  Crash course on lighting systems  Speaker talks fast so interrupt him if you don’t understand something  BTW who doesn’t like blinky lights?!?!
  3. 3. DMX? Not just a rapper?  DMX512 (Digital Multiplex 512) is an industry standard lighting specification that has been in use since 1986 (literally as old as me)  Any light show, rave, concert, and misc events you have been too has certainly used this technology  RS-485 is the transport medium used  XLR-3 or XLR-5 (typical) connector  Differential pair + Ground  XLR-5 has two un-used or unassigned pins
  4. 4. DMX RS-485 Traffic  DMX512 is named so because it is 512 slots of data + 1 command/start code slot  Slot is one byte  Each of these groups is called an universe  Specification allows up to 44 fps, but can piped out faster if not all slots are used.  Most vendors stick to 44 fps though  Commands can control panning, light intensity, etc  Slots can be combined to increase range from 8-bits to 16, 32, etc bits.
  5. 5. DMX512 RS-485 Protocol  RS-485 has no clock line so you need a set way to know when a frame begins  Must be terminated for the bias network to work (120 ohm)  DMX512 signals a start of frame  Break of 100 microseconds  Mark After Break (MAB) 12 microseconds  Followed with 11-bit sequence for each slots  Start bit + 8 bits of data + 2 stop bits.
  6. 6. DMX512 Oscilloscope Output
  7. 7. Example of DMX-enabled Devices  Stage Lighting (vast majority of applications)  Lasers  RGB LED panels (i.e. 16x16 grids)  RGB LED strings  Servo controlled light mounts (Pan + Tilt)  Dimmers  Haze / Fog Machines  Niche market of animatronics  Halloween decorations
  8. 8. DMX in action (Singapore Flyer)
  9. 9. DMX-over-IP  Various implementations over the years that have all have pros and cons  ArtNet III  E1.31 – Streaming ACN  De facto solution used for large lighting shows  63,999 universes allowed per IP  ANSI + PLASA/ESTA approved standard  DMX specification doesn’t reference any networking protocols, but all of the major ones wire protocol mirror the RS-485 data schema  Typically used over Ethernet
  10. 10. Remote Device Management  RDM was designed after DMX512 and uses the same RS485 path to send messages  Bi-directional controlling and status messages  Backwards compatible with legacy DMX devices  Uses start code 0xCC and encapsulates data within this
  11. 11. Open Lighting Architecture  Completely Open Source implementation of the networking aspects of the DMX512 protocol  OLA protocol for Python bindings  Open Sound Control (OSC)  ArtNet III + E1.31 sACN  Various plugins for interfacing to devices  Vendor specific plugins  SPI  USB DMX devices
  12. 12. Open Lighting Architecture  Future support for RS-485 array of devices on Linux is planned which will make this more of network to DMX512 bridge  Cheap low end development board then can be a bridge  Remote Device Management (RDM) is fully supported and robust  Lighting control panels or various control devices  Currently have no hardware that uses RDM so I’ve never used it
  13. 13. OLA Web Interface
  14. 14. Typical OLA Setup Lighting Sequencer E1.31/ArtNet III Open Lighting Architecture Physical Device (e.g. SPI/USB/RS485)
  15. 15. OLA Hacks  Triggers from DMX control codes that run commands  Could trigger a processing script  Turn on or off a relay switch  Python/C++/Java loopback API allows you to send frames locally to a OLA interface  JSON web interface for when other protocols are too much
  16. 16. Open Sound Control  OSC is used for MIDI control as well lighting control  OLA has a OSC interface that can be used as well  Various DMX frontend generators use this for user input  Open Lighting Architecture  PixelController  TouchOSC – iPhone application to OSC systems  Various other applications exist for Android and iOS
  17. 17. Data Flow DMX512-A Network Protocol or RS- 485 End Device
  18. 18. WS2812 Chipset (self-clocking)
  19. 19. WS2801 (SPI + protocol decode)
  20. 20. OLA + PixelController + AM335x PRU
  21. 21. Demo  BeagleBone Black (am335x)  PRU (Programmable Real-time Unit) outputting SPI and/or another self clocked protocol  Open Lighting Architecture  SPI plugin interacting with faux-spidev interface  Python interface to directly drive LED string
  22. 22. Conclusions/Opinions  DMX is old but it is a classic has little need to be improved other than legacy systems being moved to the networking space versus RS-485  Inferior protocols exist for the sheer fact people are lazy to learn something new and figure it is okay to write a new one  Open Pixel Controller is an example
  23. 23. Questions  How many have you used staging light that has utilized DMX512? Or some other propriety protocol?  Have you used OLA, and how can we improve the project?  What you currently use for your software driven lighting needs?
  24. 24. Special Thanks  Simon Newton - nomis52  Andrew Frazier - mrpackethead  Pantelis Antoniou - panto
  25. 25. References  Open Lighting Architecture  http://www.openlighting.org  Singapore Flyer Picture  http://en.wikipedia.org/wiki/File:The_Singapore_Flyer_ at_night.jpg  DMX512 Oscilloscope Graph  http://en.wikipedia.org/wiki/File:Annotated_trace_of_ DMX-512_signal.png
  26. 26. References  Sigrok + Pulseview (WS2801 + WS2812 debug)  http://sigrok.org  WS28xx PRU firmware  https://github.com/mranostay/ws28xx-lighting-pru  PixelController  https://github.com/neophob/PixelController  TouchOSC  http://hexler.net/software/touchosc

×