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!


Lunar Orbiter

Project Members: 
Matt Chew Spence

 

Description

Squeeze the moon and the spacecraft orbits!

Components

    * 1 ea Squeezable Moon
    * 1 ea toy Spacecraft
    * 1 ea Arduino/Breadboard
    * 2 ea AA batteries
    * 1 ea diode
    * 1 ea transistor
    * 1 ea force sensing resistor
    * 1 ea 1k resistor
    * 1 ea 10k resistor
    * 1 ea DC motor
    * Assorted Legos

Arduino Code

 

/*
* FSR 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 fsrPin = 0; // select the input pin for the force sensor
int motorPin = 9; // select the pin for the Motor
int val = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(fsrPin); // read the value from the sensor, between 0 - 1024
Serial.println(val);
analogWrite(motorPin, val/4); // analogWrite can be between 0-255
}

 

Pictures

 

 

 

 


Comments

Comments from TAs

Nice work. And good job taking advantage of LEGO components to get things moving -- they can be a great resource for building mechanical projects! It would be interesting to consider augmenting the orbiter with other types of inputs (LEDs, piezo sounds, etc.). Or, you might want to consider the "playing use case" for the LEGOs. One of the best things about LEGOs is that children can play with the kits after you build things with them. What new kinds of creative play might a moving space orbiter (or other interactive components) enable?


Powered by Drupal - Design by Artinet