Announcements

November 24, 2007
Reading for November 27th, are now posted. Enjoy!

October 2, 2007
To upload your thoughtless acts, create a new assignment page like any other lab. You'll see "Thoughtless Acts" listed as one of the assignment options.

May 24, 2008
This site has been archived and is no longer editable. Stay tuned for the next version, coming in the fall!


Lab 6

Project Members: 
Ethan DeYoung

Description

Further dissection of the pooh bear, using a DC motor to imitate the girl from the Exorcist. (Pooh's head spins around while still attached to his body)

Components Used 

  • Arduino Board
  • Bread board
  • 1 1K ohm resistor
  • 1 transistor (TIP 120)
  • 1 Diode
  • 1 DC Motor 
  • wiring
  • 1 pooh bear 
  •  

    Arduino Code 

    /* * one pot fades one motor * modified version of AnalogInput * by DojoDave <http://www.0j0.org> * http://www.arduino.cc/en/Tutorial/AnalogInput  * Modified again by dave */int potPin = 0;   // select the input pin for the potentiometerint motorPin = 9; // select the pin for the Motorint val = 0;      // variable to store the value coming from the sensorvoid setup() {  Serial.begin(9600);}void loop() {  val = analogRead(potPin);    // read the value from the sensor, between 0 - 1024  Serial.println(val);  analogWrite(motorPin, val/4); // analogWrite can be between 0-255}
      


    Video Clip

    http://people.ischool.berkeley.edu/~ethan/motor_pooh.avi

     


    Comments

    Comments from TAs

    Nice work, and suitably spooky... It's a good starting point for the Halloween Party this week! Now that you have a Pooh bear with a spinning head, I'm curious about what you're going to do with it. What type of interaction is it part of? E.g. is it designed to scare people? To be part of some larger process? Etc...?


    Powered by Drupal - Design by Artinet