Updates from September, 2008 Toggle Comment Threads | Keyboard Shortcuts

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

    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


    Color Mixer from Hsiang Ju Hung on Vimeo.



    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
        if(DEBUG>100){  //print every hunderd loops
          DEBUG = 1;    // reset the counter
          Serial.print(" A:");
          Serial.print(" B:");
          Serial.print(" C:");
          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.




  • Yury Gitman 3:57 pm on September 27, 2008 Permalink | Reply  

    Potentiometer with fading LEDs 

    Potentiometer and fading LEDs from Jessica Floeh on Vimeo.

    Click below for the code:

    (More …)

  • Yury Gitman 1:07 pm on September 27, 2008 Permalink | Reply  

    Order the Chipcorder ISD 17240, and related parts. Bring to Next Class on Oct 7th. 

    Manufacturer’s Homepage

    Digikey Page:  [look at in class]
    http://search.digikey.com/scripts/DkSearch/dksus.dll?Cat=2556441;keywords=1724028-DIP Pkg.

    The Circuit




    For example like this: 8 ohm, .25 Watt

    Also see the Digikey Page on Speakers Experiment a little with options..: Digikey Catalog Page


    1/8th in. audio jack: Digikey Part Number CP-3536-ND


    You also need:

    0.1 uF caps  x 12ish
    4.7 uF  x 2ish

    A few of each on hand:
    100K ohm resistor
    4.7 K

    • Hsiang Ju 2:02 pm on October 12, 2008 Permalink | Reply

      what is oscillator resistor?
      I don’t know what kind of resistor should be put on pin20.

    • Order taking services 8:03 am on July 23, 2010 Permalink | Reply

      Thanks for the link, I’ve been searching for that resistor.
      Ben Cliff

  • Yury Gitman 3:47 pm on September 25, 2008 Permalink | Reply  

    Hacked Touch Lamp 

    Hacked Touch Lamp from Mouse & the Billionaire on Vimeo.

    Here’s the code, y’all!


    int analogPin = 0;     // potentiometer wiper (middle terminal) connected to analog pin 3
                                         // outside leads to ground and +5V
    int yVal = 0;   
    int gVal = 0;
    int rVal = 0;

    int val = 0;
    int ledPin = 13;
    int yLed = 11;
    int gLed = 10;
    int rLed = 9;

    void setup() {
      Serial.begin(9600);          //  setup serial
      pinMode(yLed, OUTPUT);

    void loop() {
      val = analogRead(analogPin);    // read the input pin
      yVal = min(val, 255);
      gVal = max(256, (min(val, 511)));
      rVal = max(512, (min(val, 756)));

      analogWrite(yLed, yVal);
      analogWrite(gLed, gVal);
      analogWrite(rLed, rVal);

  • Yury Gitman 9:28 pm on September 23, 2008 Permalink | Reply  

    potentiometer light: Lynn 

    Here’s a little video and pics of my light going from green to red to yellow!
    simple and cute.

    potentiometer LED light from Lynn WasHere on Vimeo.


  • Yury Gitman 8:21 pm on September 23, 2008 Permalink | Reply  

    soft switches 

    hey guys~
    here’s some info on soft switches, yo.

    buy kits here (super cheap!):

    make your own:


  • Yury Gitman 6:10 pm on September 23, 2008 Permalink | Reply  



    Subalekha Udayasankar
    Fav. Childhood toy – pull string toys that wind n’ make music sometimes roll eyes n’ stick out their tongues. My sister had one on her crib when she was a baby.. I used to spend ridiculous amount of time on it. I m not really sure what caught my attention cos they keep pretty much repeating the same thing over n over again.

    My background is in elec. engineering n’ programming but it has been a while since I dealt with circuits. I would like to use this class to dust the cobwebs in my head. Also, I see it as an opportunity to prototype for thesis.

  • Yury Gitman 6:07 pm on September 23, 2008 Permalink | Reply  

    Little horse 

    I took apart a toy – cowboy on a rocking horse. I was interested in finding out how the rocking movement was achieved. To take it apart, I had to remove many screws and the toy also played music along with multiple blinking LEDS. After removing all the plastic. I reached the gears which made the movement possible. A servomotor controlled the gears which made the horse Rock.

  • Yury Gitman 6:07 pm on September 23, 2008 Permalink | Reply  

    Color Mixer 


  • Yury Gitman 12:59 pm on September 23, 2008 Permalink | Reply  

    Infrared Proximity Sensor – Sharp GP2Y0A21YK 

    Infrared Proximity Sensor – Sharp GP2Y0A21YK 


  • Yury Gitman 10:23 am on September 23, 2008 Permalink | Reply  

    Interesting Event, Related to Class, Opens Thursday 

    A sculpture garden of readymades

    September 25 – October 25, 2008
    Opening: Thurs., Sept. 25, 6PM
    540 W. 21st St.

    Untethered is a sculpture garden of everyday objects
    deprogrammed of their original function, embedded with new
    intelligence, and transformed into surrealist and surprising
    readymades, including a photocopier that reads the night sky; a PDA
    turned guitar; and a piano that plays the Internet. The exhibition
    features pieces by 15 artists working at the intersection of art and
    technology, including current and former Eyebeam residents and fellows,
    as well as leading international artists.


  • Yury Gitman 2:48 pm on September 18, 2008 Permalink | Reply  


    Want to build a cool little mobile bot? Sure you do.

    For more information visit evilmadscientist.com.

  • Yury Gitman 8:24 pm on September 16, 2008 Permalink | Reply  

    Reading For Next Class 

    Analog Read

    Analog Write (PWM)


    Analog Input: use a potentiometer to control the blinking of an LED.

    Fading: uses an analog output (PWM pin) to fade an LED.

    “Coffee-cup” Color Mixer:

    Lesson 3

  • Yury Gitman 4:12 pm on September 16, 2008 Permalink | Reply  

    Unbreakable Fisher-Price Elephant 

    I got a simple Fisher-Price Elephant toy, which starts/stops playing a tune when the user bops its head.  As for dissecting the toy…Well, let’s just say "simple" is not synonymous with "easy."  Given that it’s a baby-toy, I expected it to be firmly built; but I didn’t think it would be impossible to break it apart with a few hits with a hammer…

    1. Original Form: What appears to be a innocent little elephant.


    2. Opening the Battery Cover: There were two screws that secured the battery cover.Cimg1629

    3. No Other Screws!  Go for the Leg!: The two screws for the battery cover were the only ones that were visible on the exterior of the toy.  I decided to snap off the front-right leg in hopes of revealing more screws.
    However, once it was snapped off, I was able to see only one other screw, which was the screw that secured that opposite leg. 

    4. Get the Saw Out: After many attempts to snap the toy open with a hammer and a minus-screwdriver, I decided to carefully "shave" open the elephant with a saw.  However, it was taking too long, and my arms were getting tired, so I reverted back to the screwdriver and hammer…  I wasn’t getting too far, so Yuri eventually helped me loosen the parts and take all the legs off.


    5. Saw2: Even with all the legs off, I still couldn’t see much of its interior, so I made a small cut in front of its body.  Cimg1662
    The speaker was revealed as a result. 

    6. Bye Saw! Hello Giant Scissors! (I think they’re called Shears?): The small opening made in step 5 helped me see the inside a little bit better, but I still couldn’t access the "brain" that operated the toy.  As I began sawing again, Yuri found a better tool for me: Giant Scissors!  I was able to easily cut open the entire side of its body to finally reveal the inside.

    7. Closer Look: The toy functions mainly by three parts: a button, speaker and a microchip.  The head, once it’s pushes, pushes the button and triggers the microchip to play the tune out of the speaker.


  • Yury Gitman 12:51 pm on September 16, 2008 Permalink | Reply  


    Speaking of toys, I thought you’d all appreciate this:

    via icanhascheezburger.com

  • Yury Gitman 8:10 pm on September 14, 2008 Permalink | Reply  

    hammer d:construction 

    hammer d:construction from Lynn WasHere on Vimeo.

  • Yury Gitman 4:43 pm on September 13, 2008 Permalink | Reply  

    Shaking music maker, Elmo+Cookie Monster 


    Title: 2 of the super stars of Sesame Street
    Description: Just simply press Elmo’s nose then flip or shake the stick to make giggling and silly sounds of Elmo and Cookie Monster.


    Title: HA HA HA HA
    Description: Apparently this toy attempts to make people laugh. At least I was enjoying playing with it.


    Description: I just tried to record every text it has on its plastic shell. Everything looked good except the material of this sound maker is not recyclable. If they could use Eco-friendly materials, that would be great!


    Title: Dissection
    Description: Inside Elmo’s brain is the place of putting batteries. By looking at little holes on Cookie Monster’s head, we can infer that they put a speaker here.


    Title: Let’s see what’s in its body
    Description: Every components are placed stably and neatly in the stick-shaped plastic shell. The nose is bound with a mode switch which I’ll show later.



    Dscf9828 Dscf9827_2

    Title: Stay orderly
    Description: Sensors and switches are covered and fixed with plastic lids. In the right bottom picture, two of wires were soldered to connect the batteries.


    Title: Mode switch
    Description: By pressing this tiny button, I could change the mode of music.

    In mode 1 – giggling of Elmo and Cookie Monster
    In mode 2 – silly sounds
    In mode 3 – brisk music


    Title: Power switch
    Description: This little switch is used to control the state of power supply.

    0 – cut off the connection with batteries.
    1 – turn on!


    Title: Its heart
    Description: The front view of the circuit board. Wires are hidden behind the board.


    Title: Turn around
    Description: There are two capacitors on the back and wires are fastened with hot glue.


    Title: Time to make some music!
    Description: This is the sensor detecting the toy’s movement and triggering the chip to play music. There are total 2 sensors inside, one is used to trigger Elmo’s giggling while another one is to trigger Cookie Monster’s.


    Title: Done!
    Description: These are all the components of the toy include a narrow strip of tape to hold wires.

    After all the work, I put those electronic parts into a sock monkey that I sewed as a prototype of my final project toy. Monkey toy would make sounds when it is shook. And monkey’s nose is the mode switch. Basically, it does the same thing as the elmo music maker but with a soft "container".



  • Yury Gitman 1:23 pm on September 13, 2008 Permalink | Reply  

    02 Disassemble A Giggle Ball 

    Click on each picture to enlarge it.


    It is designed for 18-month-old and beyond, so it is a pretty universal and simple toy.


    This is called double fun giggle ball. There are two characteristics  which are  Cookie Monster(BLUE) and Elmo(RED) installed with their two different sounds and appears. After you press on their faces, it will shake and giggle with their sounds.


    03 TAG ON TOY
    Material: Polyester Fibers, Polyurethane Foam
    Made in China, Fisher-Price, Inc., Surface washable only


    It has a easy opened velcro seam. As pictures, inside is a plastic ball sewed to the surface by simple cotton thread.


    So I cut off the thread and pulled the plastic ball out. The ball is heavy and solid with plain white cover, and it said 2 AA battery required on its bottom where batteries placed.


    There are two lines connected to sensors on each side of the fiber cover. One is blue linking to Cookie Monster’s face. Another is red attached to Elmo’s. The right picture shows where the speaker installed.


    Going along the line, I found two small press-sensors sewed and covered by cotton and fabric. Then I cut some thread to took them out. They are two cute small buttons.


    To avoid making it giggle while I was disassembling it, I took out two AA batteries. And I unscrewed four screws fixing the cover of the ball and  took it apart. There are two side of the internal. Upper side installed with a speaker, and the lower side installed a motor and a Printed circuit board. All of them are fixed by screws and connected with each other through colorful lines.


    09 SPEAKER
    I unscrewed the speaker. It was a thin, round, plastic-like chip.

    Dscn001610 PCB’s back
    There is a written XY and a transistor on the board’s back which faced upward.


    11 PCB’s front
    Printed circut and colorful lines connected to different parts.
    Red on the left upper- Elmo’s sensor.
    Blue on the left upper- Cookie Monster’s sensor.
    Yellow- speaker.
    Green and blue on the left bottom- motor
    Red and Black on the right- batteries


    12 MOTOR
    The motor uses gears to rotate a weighty metal to keep changing the center of gravity. That is why the ball can keep shacking while it is giggling. I have to hold it tight while I was tested it without fixed into the ball, because the rotating force is quite powerful. Besides, there are some grease on the gear though…which made my hand sticky.


    13 ALL PARTS
    In this picture, you can see all parts inside the ball, including batteries, fixers, screws, speaker, PCB, motor, buttons, electronic cords, and the hard cover.  I found the structure is not so complex as I thought, especially the motor part.  And I like the way the maker codes the cord by color, which is easy to understand and recognize. This toy is a simple design with a lot of fun with attractive look and feel.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc