Recent Updates Page 82 Toggle Comment Threads | Keyboard Shortcuts

  • Unknown's avatar

    Yury Gitman 2:00 pm on October 14, 2008 Permalink | Reply  

    Katrina’s Winbond Chip: Attempt #1 

    Yup, it works. But the sound is pretty bad. I had to turn up the sound on my computer to the max to get the chip to record from it at an audible volume. I guess my next step would be to figure out how to actually control the volume from the chip. I recorded 2 tracks: "A Little Night Music" by Mozart and "Young Folks" by Peter Bjorn & John. Watch the video:

    http://vimeo.com/moogaloop.swf?clip_id=1966167&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    Katrina’s Winbond Chip: Attempt #1 from Katrina Bekessy on Vimeo.

    Here are a couple of photos:

    Winbond1_1

    Photo: The whole circuit.
    Description: Here it is. I decided that I really don’t like wire wrap – it always breaks! So I used 20AWG wire for the 1/8" audio plug, which is sticking out next to the yellow LED at top. I also added a 5-Volt regulator to power the board directly from the battery but immediately realized that there wasn’t enough room for it. So it’s just being powered from an Arduino board right now.

    Winbond1_2

    Photo: Top View
    Description: Not much to say about this one…Just wanted you to be able to see the entire board clearly.

     
  • Unknown's avatar

    Yury Gitman 11:51 pm on October 13, 2008 Permalink | Reply  

    Audio Recorder V1 

    http://vimeo.com/moogaloop.swf?clip_id=1970236&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    Audio Recorder V1 from Jennifer Dopazo on Vimeo.

    (More …)

     
  • Unknown's avatar

    Yury Gitman 11:49 pm on October 13, 2008 Permalink | Reply  

    Color Mixer with IR Sensor 

    http://vimeo.com/moogaloop.swf?clip_id=1961450&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    Color mixer with IR sensor from Jennifer Dopazo on Vimeo.

    (More …)

     
  • Unknown's avatar

    Yury Gitman 2:46 pm on October 11, 2008 Permalink | Reply  

    Bitlash – Arduino command line shell 

    Bitlash

    Learning to code an Arduino can be pretty confusing as most
    calculations will occur ‘behind the scenes’ of a sketch. Bitlash could
    help provide some quick answers for testing/learning –

    (More …)

     
  • Unknown's avatar

    Yury Gitman 2:33 pm on October 11, 2008 Permalink | Reply  

    Balancing Robot 

    This was pretty interesting for me, and maybe some of you would like to build one!
    Enjoy.

    Instructable link

     
  • Unknown's avatar

    Yury Gitman 6:02 pm on October 9, 2008 Permalink | Reply  

    Color mixer – IR sensor + full-color LED 

    http://vimeo.com/moogaloop.swf?clip_id=1924593&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    Color mixer with a Sharp IR sensor and a full-color LED from maze on Vimeo.

     
  • Unknown's avatar

    Yury Gitman 6:05 pm on October 7, 2008 Permalink | Reply  

    IR Sensor + Multi-LED 

    http://vimeo.com/moogaloop.swf?clip_id=1905873&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    Multicolor LED + IR sensor from Jessica Floeh on Vimeo.

    Click below for the code:

    (More …)

     
  • Unknown's avatar

    Yury Gitman 5:50 pm on October 7, 2008 Permalink | Reply  

    kissy blushy monster 

    http://vimeo.com/moogaloop.swf?clip_id=1908400&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    Kissy Blushy monster from Subalekha Udayasankar on Vimeo

    http://picasaweb.google.com/s/c/bin/slideshow.swf

    int potPin = 3;
    int potVal = 0;

    int redPin = 9;   // Red LED,   connected to digital pin 9
    int grnPin = 10;  // Green LED, connected to digital pin 10
    int bluPin = 11;  // Blue LED,  connected to digital pin 11

    int pwr = 13;

    int redVal = 0;   // Variables to store the values to send to the pins
    int grnVal = 0;
    int bluVal = 0;

    void setup()
    {
      pinMode(redPin, OUTPUT);   // sets the pins as output
      pinMode(grnPin, OUTPUT);   
      pinMode(bluPin, OUTPUT);
      pinMode(pwr,OUTPUT);

    }

    // Main program
    void loop()
    {
      potVal = analogRead(potPin);   // read the potentiometer value at the input pin

    digitalWrite(pwr,HIGH);

      if (potVal < 341)  // Lowest third of the potentiometer’s range (0-340)
      {                  
        potVal = (potVal * 3) /4; // Normalize to 0-255

        redVal = 256 – potVal;  // Red from full to off
        grnVal = potVal;        // Green from off to full
        bluVal = 1;             // Blue off
      }
      else if (potVal < 682) // Middle third of potentiometer’s range (341-681)
      {
        potVal = ( (potVal-342) * 3) /4; // Normalize to 0-255

        redVal = 1;            // Red off
        grnVal = 256 – potVal; // Green from full to off
        bluVal = potVal;       // Blue from off to full
      }
      else  // Upper third of potentiometer"s range (682-1023)
      {
        potVal = ( (potVal-683) * 3) /4; // Normalize to 0-255

        redVal = potVal;       // Red from off to full
        grnVal = 1;            // Green off
        bluVal = 256 – potVal; // Blue from full to off
      }

      analogWrite(redPin, redVal);   // Write values to LED pins
      analogWrite(grnPin, grnVal);
      analogWrite(bluPin, bluVal); 

    /*
    digitalWrite(pwr,HIGH);
      digitalWrite(redPin, LOW);   // Write values to LED pins
      digitalWrite(grnPin, LOW);
      digitalWrite(bluPin, LOW);   
    */
    }

     
  • Unknown's avatar

    Yury Gitman 5:16 pm on October 7, 2008 Permalink | Reply  

    Color Mixer (Update) 

    Last week’s assignment was "re-packaged" into the soap box.  Few steps were necessary for this to work.

    The LED was cut and a wire was attached to each leg:

    Cimg1951_2

    Holes were drilled into the lid, and the sensor was glued:

    Cimg1956Cimg1957

    Cimg1955
    Cimg1954

    http://vimeo.com/moogaloop.swf?clip_id=1971198&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ffffff&fullscreen=1
    Color Mixer in Soap Box from Fuki on Vimeo.

    (More …)

     
  • Unknown's avatar

    Yury Gitman 4:59 pm on October 7, 2008 Permalink | Reply  

    Color Mixer with an IR Sensor 

    What a disaster! I’ve ruined one an IR sensor, and only just about managed to get this second one in action. I haven’t changed my code (yet), so I’m still using the code from the Arduino site. The code can been seen below.

    http://vimeo.com/moogaloop.swf?clip_id=1906225&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00ADEF&fullscreen=1
    Color Mixer with an IR Sensor and a tri-color LED from Joana Kelly on Vimeo.

    Here are some fine photos of the thing in action.
    The Color Mixer

    Img_5079

    This is what my color mixer looks like from the top. The black rectangle on the right is my IR sensor. I’d like to make a nicer case for this soon.

    The Innards

    Img_5083

    Here are the innards of my color mixer. It’s kind of a mess.

    The Disaster

    Img_5086

    Through the simultaneous use of solder, wrapping wire, and hot glue, I finally got this working, for the most part. I do not recommend this approach. Jumper wires are definitely the way to go.

    (More …)

     
  • Unknown's avatar

    Yury Gitman 3:13 pm on October 7, 2008 Permalink | Reply  

    IR sensor light 

    What up yo!

    Check out my lil IR sensor with a full-color LED (aka RGB).  It didn’t have to change my code, only replace my potentiometer with my IR sensor and my 3 LEDs with the 1 full-color LED.

    Sweetness.

    http://vimeo.com/moogaloop.swf?clip_id=1907094&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    IR sensor light from Lynn WasHere on Vimeo.

    p.s. here’s the code:

    /*
    * Code for making one potentiometer control 3 LEDs, red, grn and blu, or one tri-color LED
    * The program cross-fades from red to grn, grn to blu, and blu to red
    * Debugging code assumes Arduino 0004, as it uses Serial.begin()-style functions
    * Clay Shirky <clay.shirky@nyu.edu>
    */

    // INPUT: Potentiometer should be connected to 5V and GND
    int potPin = 0; // Potentiometer output connected to analog pin 3
    int potVal = 0; // Variable to store the input from the potentiometer

    // OUTPUT: Use digital pins 9-11, the Pulse-width Modulation (PWM) pins
    // LED’s cathodes should be connected to digital GND
    int redPin = 9;   // Red LED,   connected to digital pin 9
    int grnPin = 10;  // Green LED, connected to digital pin 10
    int bluPin = 11;  // Blue LED,  connected to digital pin 11

    // Program variables
    int redVal = 0;   // Variables to store the values to send to the pins
    int grnVal = 0;
    int bluVal = 0;

    int DEBUG = 1;          // Set to 1 to turn on debugging output

    void setup()
    {
      pinMode(redPin, OUTPUT);   // sets the pins as output
      pinMode(grnPin, OUTPUT);   
      pinMode(bluPin, OUTPUT);

      if (DEBUG) {           // If we want to see the pin values for debugging…
        Serial.begin(9600);  // …set up the serial ouput in 0004 format
      }
    }

    // Main program
    void loop()
    {
      potVal = analogRead(potPin);   // read the potentiometer value at the input pin

      if (potVal < 341)  // Lowest third of the potentiometer’s range (0-340)
      {                  
        potVal = (potVal * 3) / 4; // Normalize to 0-255

        redVal = 256 – potVal;  // Red from full to off
        grnVal = potVal;        // Green from off to full
        bluVal = 1;             // Blue off
      }
      else if (potVal < 682) // Middle third of potentiometer’s range (341-681)
      {
        potVal = ( (potVal-341) * 3) / 4; // Normalize to 0-255

        redVal = 1;            // Red off
        grnVal = 256 – potVal; // Green from full to off
        bluVal = potVal;       // Blue from off to full
      }
      else  // Upper third of potentiometer"s range (682-1023)
      {
        potVal = ( (potVal-683) * 3) / 4; // Normalize to 0-255

        redVal = potVal;       // Red from off to full
        grnVal = 1;            // Green off
        bluVal = 256 – potVal; // Blue from full to off
      }
      analogWrite(redPin, redVal);   // Write values to LED pins
      analogWrite(grnPin, grnVal);
      analogWrite(bluPin, bluVal); 

      if (DEBUG) { // If we want to read the output
        DEBUG += 1;      // Increment the DEBUG counter
        if (DEBUG > 100) // Print every hundred loops
        {
          DEBUG = 1;     // Reset the counter
                                 // Serial output using 0004-style functions
          Serial.print("R:");    // Indicate that output is red value
          Serial.print(redVal);  // Print red value
          Serial.print("\t");    // Print a tab
          Serial.print("G:");    // Repeat for grn and blu…
          Serial.print(grnVal);
          Serial.print("\t");   
          Serial.print("B:");   
          Serial.println(bluVal); // println, to end with a carriage return
        }
      }
    }

     
  • Unknown's avatar

    Yury Gitman 2:46 pm on October 7, 2008 Permalink | Reply  

    IR Sensor Touch Lamp 

    IR sensor circuit

    Video coming soon.

    Uses the same code as the earlier iteration of the hacked touch lamp.

     
    • Surveillance Solutions's avatar

      Surveillance Solutions 6:48 am on March 22, 2010 Permalink | Reply

      I’ve being researching about IR Devices and reading your blog, I found your post very helpful 🙂 . I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading.

  • Unknown's avatar

    Yury Gitman 2:31 pm on October 7, 2008 Permalink | Reply  

    IR Proximity Color Mixer w/ Tri-Color LED 

    So here it is! And it works pretty well. With my setup, the long pin on the LED actually goes to power and the other three hook up to the PMW pins on the Arduino and then go to ground (I stuck some resistors in there before taking that pins to ground). Here’s what it looks like:

    http://vimeo.com/moogaloop.swf?clip_id=1903107&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    IR Proximity Color Mixer w/ Tri-Color LED from Katrina Bekessy on Vimeo

    And here’s some pics of the box itself and its innards:

    Irled2

    The Box
    Just a little cardboard gift box I cut up to make little windows with vellum paper…I used Velcro to keep the top closed.

    Irled3

    The Insides!
    Bascially the breadboard is stacked on top of the battery pack which is on top of the Arduino. Not elegant at all…

    Irled1

    Close up of LED
    Just a closer peek at the LED setup with the resistors

    I found this webpage with a great example of a tri-color LED used with the exact IR sensor we’re using. It gave code for averaging/normalizing the sensor readings so that it won’t flicker at all. I tried to use it, but I couldn’t get it to work correctly. If anyone else wants to take a stab at it, check it out: http://letsmakerobots.com/node/672

    Here’s a plain text file of my Arduino code. In a different file, I used the serial commands to read the range of my sensor…The highest it went was about 620, but I wasn’t really sure what that meant or how to make that meaningful through the way it would change the colors of the LED.

    Download IR_LEDmixer_KBekessy.txt

     
  • Unknown's avatar

    Yury Gitman 7:04 pm on October 6, 2008 Permalink | Reply  

    Color Mixer with a Potentiometer and a Tri-Color LED 

    Here’s a short video of a color mixer I made using a tri-color led. I used the color mixer code from the Arduino site. To see the code, click the link at the bottom of the post.

    http://vimeo.com/moogaloop.swf?clip_id=1898480&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00ADEF&fullscreen=1
    Color Mixer from Joana Kelly on Vimeo

    Color Mixer Insides

    Img_5072

    This is the inside of the mixer. That’s the arduino on the left! Note I finally got that tri-color led working. Yesss! Turns out the short pin does go to power….good to know.

    (More …)

     
  • Unknown's avatar

    Yury Gitman 4:32 pm on October 6, 2008 Permalink | Reply  

    Color Mixer [by Jenny] 

    http://vimeo.com/moogaloop.swf?clip_id=1878910&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    Color Mixer from Jennifer Dopazo on Vimeo.

    (More …)

     
  • Unknown's avatar

    Yury Gitman 4:23 pm on October 3, 2008 Permalink | Reply  

    Fuki’s Secret Inspiration 

    Ever since I was a child, I was  fascinated with things that were small.  There’s something  imaginative and fairytale-like when everyday-objects are transformed into miniatures.  Even with electrical objects like laptops, mp3 players and automobiles, the inner-child in me–and maybe in most of us?– becomes excited with things that are reduced in size.


    Cimg2034
    Minifood

    (More …)

     
  • Unknown's avatar

    Yury Gitman 1:18 am on October 1, 2008 Permalink | Reply  

    My color mixer 

    http://vimeo.com/moogaloop.swf?clip_id=1856128&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    my color mixer from maze on Vimeo.

    Materials: Arduino, jumper wires, potentiometer, 9v battery, LEDs, resistors, DC power plug, tracing paper, scotch tape, fiberfill

    Here is my code:
    /*
    *Color Mixer
    *Tzumei M. Hsiao
    *I modified the code from "Coffee-cup" color mixer on Arduino.cc
    */

    // Analog pin settings
    int potIn = 3;    // the potentiometer connected to the analog pin 3

    // Digital pin settings
    int redLED = 9;   // LEDs connected to digital pins 9, 10 and 11
    int blueLED = 10;  //   (Connect cathodes to digital ground)
    int greenLED = 11; 

    // Values
    int potVal = 0;   // the variable to store the input from the potentiometer
    int redVal = 0;   // the variable to store the value of red LED
    int greenVal = 0;  // the variable to store the value of green LED
    int blueVal = 0;  // the variable to store the value of blue LED

    // Variables for comparing values between loops
    int i = 0;            // Loop counter
    int wait = (1000);    // Delay between most recent pot adjustment and output

    int sens         = 3; // Sensitivity threshold, to prevent small changes in
                          // pot values from triggering false reporting
    // FLAGS
    int PRINT = 1; // Set to 1 to output values

    void setup()
    {
      pinMode(redLED, OUTPUT);   // sets the digital pins as output
      pinMode(blueLED, OUTPUT);   
      pinMode(greenLED, OUTPUT);
      Serial.begin(9600);     // Open serial communication for reporting
    }

    void loop()
    {
      i += 1; // Count loop

      potVal = analogRead(potIn);  // read input pins, convert to 0-255 scale

      if (potVal< 341)
      {
        potVal= (potVal* 3) / 4; //normalize to 0-255
        redVal= 255-potVal;
        greenVal= potVal;
        blueVal= 1; //blue off
      } //end of if
      else if (potVal< 682)
      {
        potVal= ((potVal-341)*3) / 4; //normalize to 0-255
        redVal= 1; //red off
        greenVal= 255-potVal;
        blueVal= potVal;
      } //end of else if
      else
      {
        potVal= ((potVal-682)*3)/ 4; //normalize to 0-255
        redVal= potVal;
        greenVal= 1; //green off
        blueVal= 255-potVal;
      } //end of else

      analogWrite(redLED, redVal);    // Send the new value to LEDs
      analogWrite(blueLED, blueVal);
      analogWrite(greenLED, greenVal);

      if (i % wait == 0)                // If enough time has passed…
      {   
        if ( potVal > sens )   // If old and new values differ
                                                      // above sensitivity threshold
        {
          if (PRINT)                    // …and if the PRINT flag is set…
          {
            Serial.print("The value of potentiometer: ");        // …then print the values.
            Serial.print(potVal);         

            PRINT = 0;
          }
        } 
        else
        {
          PRINT = 1;  // Re-set the flag   
        }

      }
    }

     
  • Unknown's avatar

    Yury Gitman 3:31 pm on September 29, 2008 Permalink | Reply  

    03 Color Mixer updated 

    Color Mixer with IR sensor and Fullcolor Led in the same Gummy Bear Box.

    http://vimeo.com/moogaloop.swf?clip_id=1905269&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1
    FullColor+IR Sensor Color Mixer from Hsiang Ju Hung on Vimeo.
    Code is modified from the previous one.  Because the output voltage from IR sensor is about from 0 to 3 instead of regular range of 0 to 5. So I tried to justify it to make RGB reach full 255.
    Code is here:Download IRsensor_Fullcolor

    http://vimeo.com/moogaloop.swf?clip_id=1853222&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1

    Color Mixer from Hsiang Ju Hung on Vimeo.

    Dscf9940

    Dscf9938

    Material: Gummy Bear box, Led, Tissue, Arduino Board, Potentiometer, Resistors, 9V Battery, Wires.
    Code is modified from Arduino Example Code

    ———————————–

    // Input settings
    int analogPin = 3;   // potentiometer connected to analog pin 3
    int val = 0;         // variable to store the read value

    // Digital pin settings
    int aOut = 9;   // LEDs connected to digital pins 9, 10 and 11
    int bOut = 10;  //
    int cOut = 11;

    // Variables
    int aVal = 0;   // Variables to store the input from the potentiometers
    int bVal = 0; 
    int cVal = 0;

    int DEBUG = 1; // Set to 1 to turn on debugging output

    void setup()
    {
      pinMode(aOut, OUTPUT);   // sets the pin as output
      pinMode(bOut, OUTPUT);   // sets the pin as output
      pinMode(cOut, OUTPUT);   // sets the pin as output
     
      if (DEBUG) {
        Serial.begin(9600);  }    // Open serial communication for reporting
    }

    //Main program
    void loop(){
      val = analogRead(analogPin);   // read the input pin
     
      if(val < 341){         // first range = 0-340
        val = (val*3)/4;     // justify the range from 0-340 to 0-255;
        aVal = 256 – val;  // a changes from 255 to 1
        bVal = val;          // b changes from 0 to 255
        cVal = 1;            // c is 1
      }
      else if(val < 682){  //second range = 341-681
        val = ((val-341))*3/4;//justify the range from341-681 to 0-255;
        aVal = 1;           // a is 1
        bVal = 256 – val;   // b is from 255 to 1
        cVal = val;         // c is from 0 to 255
      }
      else{                 // third range = 682-1024
        val = ((val-683)*3)/4;//justify the range from341-681 to 0-255;
        aVal = val;           // a is from 0 to 255
        bVal = 1;             // b is 1
        cVal = 256 – val;     // c is from 255 to 1
      }
      if (DEBUG) {      // if we want to read the output
        DEBUG+=1;      
        if(DEBUG>100){  //print every hunderd loops
          DEBUG = 1;    // reset the counter
          Serial.print("val:");
          Serial.print(val);
          Serial.print(" A:");
          Serial.print(aVal);
          Serial.print(" B:");
          Serial.print(bVal);
          Serial.print(" C:");
          Serial.print(cVal);
          Serial.println(); }
      }
      analogWrite(aOut, aVal);
      analogWrite(bOut, bVal);
      analogWrite(cOut, cVal);  }

    ———————————–

    By the way, yesterday I ran into an street installation made by Ted Southern in Dumbo. It is a sidewalk-attached interactive music maker ontrolled easily via an interface by the public. Basically the interface is just a box installed different tuners and sensors controlling two rows of speakers that have different sound quality from each other.  So people passing by can play with it at ease without any instruction or guide.  But the inconvenience about this project is that the artist has to screw and open the box to replace batteries (there are two 9 V)every few hours.

    Dscn0105

    Dscn0106

    Dscn0107

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel