Arduino 1


How I got my Arduino

A week ago I had the chance to participate in a wonderful workshop on sound design given by David Strang.  First, he gave the lecture “Surface Sounds” about his works. Then, in his workshop, he showed how to solder a contact microphone and how to make hydrophones (for underwater recording) and we went out to get some grips on the devices. Lecture, workshop and exhibition came to an invitation by Petra Klusmeyer.  It really was  good fun, and apart from that his inspiration made me to get an Arduino after all.

First grips

I got an Arduino Uno (R2) in a kit with some LEDs and other stuff so that I could immediately start with examples from the internet. A flashing LED, a dimming LED and the like. I got it fed electricity via USB but it takes away a lot of physical freedom. So I decided to practice my DIY abilities and soldering skills. I spent 2€ on a switch and a battery adapter and did some happy soldering. Notice on the picture (below, right) that one could have gotten away with less soldering, a recall to don’t drink and solder.

From cheap parts (left) to something handy (right)

Physical action

The kit had an LED with RGB connections. That is what most intrigued me from the start. After I understood well how to connect the wires I put the LED on a cable to attach it on my finger. With a very simple digital photo camera that has a longest exposure time of 2 seconds I wanted to take stills of the moving light with changing colours. I programmed the Arduino to flash a sequence that repeats every 2 seconds. The code is not beautiful nor flexible yet but it does the job (I might actually put the code as a comment to the post).

Pressing the camera button at the right moment I got a few nice pictures taken.

The Ring of Fire

a friend

A friend

a smoke

A Smoke

Advertisements

1 Response to “Arduino 1”


  1. 1 linuxaudiolive July 9, 2011 at 12:59 am

    Arduino code for giving three flashes of constant brightness and distinct colour with pauses of same length in-between.

    /*
     Fade
      This code produces rhythms of RGB values
      It's badly written and commented
      This example code is in the public domain.
     */
    
    int pinR = 9;
    int pinG = 11;
    int pinB = 10;
    
    int rVal = 0;
    int gVal = 0;
    int bVal = 0;
    
    int tMax = 2000;
    
    int delayTime;
    #define STEPS 6
    int timePattern[STEPS];
    int colorPattern[STEPS*3];
    
    
    #define NOTEOFF 255,255,255
    #define YELLO1 30,50,255
    #define RED  20,255,255
    #define WHITE1 40,40,140
    #define GREEN1 255,0,0
    void firstRhythm() {
      int colors[STEPS*3] = {GREEN1, NOTEOFF, YELLO1, NOTEOFF, RED, NOTEOFF};
      for (int i=0; iSTEPS) {
          counter = 0;
      }
    }
    

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: