|
DmxSimple
DmxSimple library - Driving DMX from Arduino
Video walkthrough now availableDMX controlled lights and visual effects are easily available from DJ or theatrical suppliers. This library gives you a simple way to drive spot lamps, floods, wall washers, lasers, smoke machines and more from a normal Arduino using DMX. If you can use analogWrite() to dim an LED, you will have no problems using DmxSimple to control something much bigger and brighter. The software output is compatible with the Tinker.it! DMX shield, or DIY DMX circuits. DmxSimple does some fancy stuff behind the scenes, so there is no need to worry about DMX frames, retransmissions and channel orders. Specify which channels you want at which value, and the library will handle everything else for you. CompatibilityDmxSimple is compatible with all known Arduinos including the Mega. The following Arduinos are recommended, as they support both DmxSimple and the Tinker.it! DMX shield: Arduino Mega, Arduino Duemilanove 328, Arduino Duemilanove, Arduino Diecimila, Arduino Bluetooth, Arduino Pro (5V version only), Arduino NG, Arduino Serial. InstallationDownload the archive. Extract to (arduino install)/hardware/libraries/DmxSimple . Restart Arduino so it recognises the library. Example codeThe example code is also built into the library. Open Arduino, and look under File > Sketchbook > Examples > Library-DmxSimple. Function calls
DmxSimple communityWe now have a group on Google Groups. Get assistance starting with DMX, or show off your installations. Library limitationsTimer 2 is used. Due to the small amount of RAM on 168 and Mega8 Arduinos, only the first 128 channels are supported. Arduinos with processor sockets can easily be upgraded to a 328 to control all 512 channels. Upgrade notesThe original version 1 of DmxSimple used a file "DmxInterrupt.h". This has since been removed. To upgrade old sketches, remove the #include "DmxInterrupt.h" line. When upgrading the library from v1, delete all the old files before copying the contents of the new archive. |
Sign in to add a comment
Is it possible to make it work along with other libraries that uses Timer2?
I found this wonderful IRRemote library http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html and I think that DMX+IRRemote would be a wonderful combo, but both the libraries use Timer2 (in a very different way) and I wonder if it would be possible to make them work together...