-
Notifications
You must be signed in to change notification settings - Fork 0
Digital Multiplex
Tim Brouwers edited this page Jun 10, 2024
·
4 revisions
Digital Multiplex, DMX for short is a communication protocol used in the lights and events industry. This communication protocol allows for direct communication between our Arduino through the use of a DMX shield to the spotlight used.
The spotlight in use is comprised of 4 channels, each necessary to create our concept. These are:
- Brightness
- Red
- Green
- Blue
This is programmed by using the DmxMaster library from Tinkerkit. See this sample below for more context.
#include <DmxMaster.h>
DmxMaster.usePin(pin); // Change pin to actual usage
DmxMaster.maxChannel(4); // brightness + rgb = 4
// Set brightness to full with color red
DmxMaster.write(1, 255);
DmxMaster.write(2, 255);
DmxMaster.write(3, 0);
DmxMaster.write(4, 0);
Don't forget to place the spotlight into DMX mode by pressing mode until you see "d 0 0 1" and then changing input until you see 4 channels