(edit sidebar)
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 output

Changed lines 24-25 from:
to:
Attach:midi_breadboard.jpg
Changed line 15 from:
* A female MIDI connector
to:
* A female MIDI connector (Digikey # [[http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=CP-1150-ND|CP-1150-ND]])
Added lines 12-13:
(:toc Table of Contents:)
Changed lines 1-2 from:
!! MediaMation CL6 MIDI light dimmer
to:
(:title MediaMation CL6 MIDI light dimmer:)
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 [[http://itp.nyu.edu/physcomp/uploads/MIDI_Dimmer_CL6-1800.pdf | 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 [[http://itp.nyu.edu/physcomp/uploads/MIDI_Dimmer_CL6-1800.pdf | DIP switch settings and message formats]].
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 [[http://itp.nyu.edu/physcomp/uploads/MIDI_Dimmer_CL6-1800.pdf | 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 [[http://itp.nyu.edu/physcomp/uploads/MIDI_Dimmer_CL6-1800.pdf | DIP switch settings and message formats]].
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 [[http://rob.faludi.com/datasheets/MIDI_Dimmer_CL6-1800.pdf | 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 [[http://itp.nyu.edu/physcomp/uploads/MIDI_Dimmer_CL6-1800.pdf | 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 [[http://rob.faludi.com/datasheets/MIDI_Dimmer_CL6-1800.pdf | DIP switch settings and message formats]].
Added lines 6-7:
Thanks to Alex Reeder for the original photos and Arduino sample code.
Changed line 3 from:
Written by Rory Nugent
to:
Written by Rory Nugent\\
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.
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.
Changed line 9 from:
* A MIDI cable (RadioShack SKU [[http://www.radioshack.com/product/index.jsp?productId=2103840|42-2151]])
to:
* A MIDI cable (RadioShack SKU# [[http://www.radioshack.com/product/index.jsp?productId=2103840|42-2151]])
Changed line 9 from:
* A MIDI cable
to:
* A MIDI cable (RadioShack SKU [[http://www.radioshack.com/product/index.jsp?productId=2103840|42-2151]])
Changed lines 3-5 from:
November 18th, 2008
Originally written
by Rory Nugent
to:
Originally written on November 18th, 2008 by Rory Nugent
Added lines 3-5:
November 18th, 2008
Originally written by Rory Nugent

Changed lines 12-13 from:
# 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:
# 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:
# 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:
# Program your Arduino using the sample code below.
to:
4. Program your Arduino using the sample code below.
Deleted line 12:
Deleted line 13:
Changed lines 18-19 from:
Attach:mediamation_pluglight.jpg
to:
->Attach:mediamation_plugmidi.jpg
Added lines 22-23:
->Attach:mediamation_pluglight.jpg
Added lines 18-19:
Attach:mediamation_pluglight.jpg
Changed lines 16-17 from:
# 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:
# 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 12-13 from:
# Attach:midi-out-simple-ckt.jpg
to:
# Prepare a female MIDI connector and attach the following circuit to your Arduino

Attach:midi-out-simple-ckt.jpg

# 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.

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

# Program your Arduino using the sample code below.

Changed lines 12-13 from:
Attach:midi-out-simple-ckt.jpg
to:
# Attach:midi-out-simple-ckt.jpg
Changed lines 14-15 from:
Refer to the [[http://itp.nyu.edu/physcomp/Labs/MIDIOutput|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 [[http://itp.nyu.edu/physcomp/Labs/MIDIOutput|MIDI output lab]] for additional guidance.
Added lines 11-13:

Attach:midi-out-simple-ckt.jpg

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);
     }
 }
Changed lines 18-19 from:
#define LEDpin 13
to:
[=#define LEDpin 13=]
Added lines 13-61:
!!!Sample Code

// 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);
    }
}
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 [[http://itp.nyu.edu/physcomp/Labs/MIDIOutput|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.

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.
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.
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