Giter Club home page Giter Club logo

dmx-drums's Introduction

DMX Drums

This is a small project that I put together because I bought a stage light on Amazon many years ago and wondered if it would be possible to control with MIDI drum pads using the DMX port and a Raspberry PI. It turns out that it is indeed possible and actually not too complicated.

This was made especially possible thanks to the dmx485 project here: https://github.com/bitbyt3r/dmx

which was one of the most straightforward implementations of controlling a light via pyserial that I could find. I do not have any experience with stage lights or DMX, but just looking through the code (and tinkering with various other libraries too) helped me to understand what is going on.

For those interested, basically, we are constantly sending 512 8-bit numbers to the light. The light operates on a particular channel, which can be chosen on the back of the light (at least for the one that I am using). Let's say the selected channel is "1". Now, the next four channels will control the color (the first is intensity and the remaining three are color).

It took lots of experimentation to realize which values worked, whereas other libraries would assume that the first three channels are RGB. I am not sure if there is some official documentation, but it was especially fun to experiment with different values and find out what happens.

There seemingly are other values that control other aspects of the light, such as pulse width (I think is the fifth channel?)

Anyway, this was a fun project and if anybody finds this on the internet and wants to do something similar, maybe this will help inspire you.

dmx-drums's People

Contributors

jeffp123 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.