Intro to Physical Computing Syllabus

Research & Learning

Other Class pages

Shop Admin

ITP Help Pages
Tom's pcomp site
DanO's pcomp site


MediaMation CL6 MIDI light dimmer

Tutorials.LightDimmer History

Hide minor edits - Show changes to markup

November 26, 2011, at 04:26 PM by dis244 -
Changed lines 24-25 from:
to:
November 25, 2009, at 10:41 AM by rmn236 -
Changed line 15 from:
  • A female MIDI connector
to:
  • A female MIDI connector (Digikey # CP-1150-ND)
March 11, 2009, at 02:15 PM by rmn236 -
Added lines 12-13:

(:toc Table of Contents:)

March 11, 2009, at 02:14 PM by rmn236 -
Changed lines 1-2 from:

MediaMation CL6 MIDI light dimmer

to:

(:title MediaMation CL6 MIDI light dimmer:)

February 17, 2009, at 08:22 PM by rmn236 -
Changed lines 10-11 from:

You can find the MediaMation CL6 available to borrow from the ER. There's no user manual, but Rob Falud has a scanned page from the instructions that includes the DIP switch settings and message formats.

to:

You can find the MediaMation CL6 available to borrow from the ER. There's no user manual, but Rob Faludi has a scanned page from the instructions that includes the DIP switch settings and message formats.

February 17, 2009, at 08:22 PM by rmn236 -
Changed lines 10-11 from:

You can find the MediaMation CL6 available to borrow from the ER. There's no user manual, but Rob Faludi's web site has a scanned page from the instructions that includes the DIP switch settings and message formats.

to:

You can find the MediaMation CL6 available to borrow from the ER. There's no user manual, but Rob Falud has a scanned page from the instructions that includes the DIP switch settings and message formats.

February 17, 2009, at 08:21 PM by rmn236 -
Changed lines 10-11 from:

You can find the MediaMation CL6 available to borrow from the ER. There's no user manual, but Rob Faludi's web site has a scanned page from the instructions that includes the DIP switch settings and message formats.

to:

You can find the MediaMation CL6 available to borrow from the ER. There's no user manual, but Rob Faludi's web site has a scanned page from the instructions that includes the DIP switch settings and message formats.

February 07, 2009, at 06:15 PM by raf275 - added link to instructions
Changed lines 10-11 from:

You can find the MediaMation CL6 available to borrow from the ER.

to:

You can find the MediaMation CL6 available to borrow from the ER. There's no user manual, but Rob Faludi's web site has a scanned page from the instructions that includes the DIP switch settings and message formats.

November 18, 2008, at 01:41 PM by rmn236 -
Added lines 6-7:

Thanks to Alex Reeder for the original photos and Arduino sample code.

November 18, 2008, at 01:40 PM by rmn236 -
Changed line 3 from:

Written by Rory Nugent

to:

Written by Rory Nugent\\

November 18, 2008, at 01:40 PM by rmn236 -
Changed lines 3-6 from:

Originally written on November 18th, 2008 by Rory Nugent

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to remotely brighten and dim incandescent light fixtures. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller. You can find the MediaMation CL6 available to borrow from the ER.

to:

Written by Rory Nugent November 18th, 2008

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to remotely brighten and dim incandescent light fixtures. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller.

You can find the MediaMation CL6 available to borrow from the ER.

November 18, 2008, at 01:40 PM by rmn236 -
Changed lines 5-6 from:

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to remotely brighten and dim incandescent light fixtures. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller.

to:

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to remotely brighten and dim incandescent light fixtures. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller. You can find the MediaMation CL6 available to borrow from the ER.

November 18, 2008, at 01:39 PM by rmn236 -
Changed line 9 from:
  • A MIDI cable (RadioShack SKU 42-2151)
to:
  • A MIDI cable (RadioShack SKU# 42-2151)
November 18, 2008, at 01:39 PM by rmn236 -
Changed line 9 from:
  • A MIDI cable
to:
  • A MIDI cable (RadioShack SKU 42-2151)
November 18, 2008, at 01:38 PM by rmn236 -
Changed lines 3-5 from:

November 18th, 2008 Originally written by Rory Nugent

to:

Originally written on November 18th, 2008 by Rory Nugent

November 18, 2008, at 01:37 PM by rmn236 -
Added lines 3-5:

November 18th, 2008 Originally written by Rory Nugent

November 18, 2008, at 01:11 PM by rmn236 -
Changed lines 12-13 from:
  1. Prepare a female MIDI connector and attach the following circuit to your Arduino
to:

1. Prepare a female MIDI connector and attach the following circuit to your Arduino

Changed lines 15-16 from:
  1. Plug one end of the MIDI cable into your female MIDI connector and the other end into the MIDI input of the MediaMation CL6. Plug the power cable of the MediaMation into a power outlet.
to:

2. Plug one end of the MIDI cable into your female MIDI connector and the other end into the MIDI input of the MediaMation CL6. Plug the power cable of the MediaMation into a power outlet.

Changed lines 20-21 from:
  1. Plug an incandescent light fixture into one of the sockets on the MediaMation CL6 labeled "1".
to:

3. Plug an incandescent light fixture into one of the sockets on the MediaMation CL6 labeled "1".

Changed lines 24-25 from:
  1. Program your Arduino using the sample code below.
to:

4. Program your Arduino using the sample code below.

November 18, 2008, at 01:11 PM by rmn236 -
Deleted line 12:
Deleted line 13:
November 18, 2008, at 01:10 PM by rmn236 -
Changed lines 18-19 from:
to:
Added lines 22-23:
November 18, 2008, at 01:10 PM by rmn236 -
Added lines 18-19:
November 18, 2008, at 01:07 PM by rmn236 -
Changed lines 16-17 from:
  1. Plug a MIDI cable into your female MIDI connector and the MIDI input of the MediaMation CL6. Plug the power cable of the MediaMation into a power outlet.
to:
  1. Plug one end of the MIDI cable into your female MIDI connector and the other end into the MIDI input of the MediaMation CL6. Plug the power cable of the MediaMation into a power outlet.
November 18, 2008, at 01:06 PM by rmn236 -
Changed lines 12-13 from:
to:
  1. Prepare a female MIDI connector and attach the following circuit to your Arduino
  1. Plug a MIDI cable into your female MIDI connector and the MIDI input of the MediaMation CL6. Plug the power cable of the MediaMation into a power outlet.
  2. Plug an incandescent light fixture into one of the sockets on the MediaMation CL6 labeled "1".
  3. Program your Arduino using the sample code below.
November 18, 2008, at 01:03 PM by rmn236 -
Changed lines 12-13 from:
to:
November 18, 2008, at 01:02 PM by rmn236 -
Changed lines 14-15 from:

Refer to the MIDI output lab wiring. You may ignore the push button and analog sensor if you wish to automate the MIDI signals through your Arduino code.

to:

Refer to the MIDI output lab for additional guidance.

November 18, 2008, at 01:02 PM by rmn236 -
Added lines 11-13:
November 18, 2008, at 12:59 PM by rmn236 -
Changed lines 14-61 from:

// MIDI Light Dimmer Test Code // by Alexander Reeder, Oct. 26 2007

#define LEDpin 13

void setup() {

    Serial.begin(31250); // set MIDI baud rate
    blink(3);

}

void loop() {

    // slowly step a light up on grouping 1 from off -> on -> off
    noteOn(0x90,0,30);
    delay(1000);
    noteOn(0x90,0,55);
    delay(1000);
    noteOn(0x90,0,80);
    delay(1000);
    noteOn(0x90,0,127);
    delay(1000);
    noteOn(0x90,0,80);
    delay(1000);
    noteOn(0x90,0,55);
    delay(1000);
    noteOn(0x90,0,30);
    delay(1000);
    noteOn(0x90,0,0);
    delay(1000);

}

// data1 should be from 0-5, and tells the dimmer which light group // data2 should be from 0-127 and represents the brightness void noteOn(char cmd, char data1, char data2) {

    Serial.print(cmd, BYTE);
    Serial.print(data1, BYTE);
    Serial.print(data2, BYTE);

}

void blink(int howManyTimes) {

    int i;
    for (i=0; i< howManyTimes; i++) {
        digitalWrite(LEDpin, HIGH);
        delay(100);
        digitalWrite(LEDpin, LOW);
        delay(100);
    }

}

to:
 // MIDI Light Dimmer Test Code
 // by Alexander Reeder, Oct. 26 2007

 #define LEDpin 13

 void setup() {
     Serial.begin(31250); // set MIDI baud rate
     blink(3);
 }

 void loop() {
     // slowly step a light up on grouping 1 from off -> on -> off
     noteOn(0x90,0,30);
     delay(1000);
     noteOn(0x90,0,55);
     delay(1000);
     noteOn(0x90,0,80);
     delay(1000);
     noteOn(0x90,0,127);
     delay(1000);
     noteOn(0x90,0,80);
     delay(1000);
     noteOn(0x90,0,55);
     delay(1000);
     noteOn(0x90,0,30);
     delay(1000);
     noteOn(0x90,0,0);
     delay(1000);
 }

 // data1 should be from 0-5, and tells the dimmer which light group
 // data2 should be from 0-127 and represents the brightness
 void noteOn(char cmd, char data1, char data2) {
     Serial.print(cmd, BYTE);
     Serial.print(data1, BYTE);
     Serial.print(data2, BYTE);
 }

 void blink(int howManyTimes) {
     int i;
     for (i=0; i< howManyTimes; i++) {
         digitalWrite(LEDpin, HIGH);
         delay(100);
         digitalWrite(LEDpin, LOW);
         delay(100);
     }
 }
November 18, 2008, at 12:59 PM by rmn236 -
Changed lines 18-19 from:
  1. define LEDpin 13
to:

#define LEDpin 13

November 18, 2008, at 12:58 PM by rmn236 -
Added lines 13-61:

Sample Code

// MIDI Light Dimmer Test Code // by Alexander Reeder, Oct. 26 2007

  1. define LEDpin 13

void setup() {

    Serial.begin(31250); // set MIDI baud rate
    blink(3);

}

void loop() {

    // slowly step a light up on grouping 1 from off -> on -> off
    noteOn(0x90,0,30);
    delay(1000);
    noteOn(0x90,0,55);
    delay(1000);
    noteOn(0x90,0,80);
    delay(1000);
    noteOn(0x90,0,127);
    delay(1000);
    noteOn(0x90,0,80);
    delay(1000);
    noteOn(0x90,0,55);
    delay(1000);
    noteOn(0x90,0,30);
    delay(1000);
    noteOn(0x90,0,0);
    delay(1000);

}

// data1 should be from 0-5, and tells the dimmer which light group // data2 should be from 0-127 and represents the brightness void noteOn(char cmd, char data1, char data2) {

    Serial.print(cmd, BYTE);
    Serial.print(data1, BYTE);
    Serial.print(data2, BYTE);

}

void blink(int howManyTimes) {

    int i;
    for (i=0; i< howManyTimes; i++) {
        digitalWrite(LEDpin, HIGH);
        delay(100);
        digitalWrite(LEDpin, LOW);
        delay(100);
    }

}

November 18, 2008, at 12:56 PM by rmn236 -
Changed lines 6-12 from:
  • A female MIDI connector
to:
  • A female MIDI connector
  • A MIDI cable
  • 220 ohm resistor

How to hook it up

Refer to the MIDI output lab wiring. You may ignore the push button and analog sensor if you wish to automate the MIDI signals through your Arduino code.

November 18, 2008, at 12:48 PM by rmn236 -
Changed lines 3-4 from:

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to remotely brighten and dim incandescent light fixtures here at ITP. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller.

to:

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to remotely brighten and dim incandescent light fixtures. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller.

November 18, 2008, at 12:48 PM by rmn236 -
Changed lines 3-4 from:

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to brighten and dim incandescent lights here at ITP. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller.

to:

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to remotely brighten and dim incandescent light fixtures here at ITP. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller.

November 18, 2008, at 12:47 PM by rmn236 -
Added lines 1-6:

MediaMation CL6 MIDI light dimmer

The MediaMation CL6 is a MIDI controlled AC controller device that is commonly used to brighten and dim incandescent lights here at ITP. This tutorial explains how to control the MediaMation CL6 using MIDI output from an Arduino microcontroller.

Parts

  • A female MIDI connector
  Edit | View | History | Print | Recent Changes | Search Page last modified on November 26, 2011, at 04:26 PM