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!


Revision of Assignment#6: Automatic toilet paper hanger from Thu, 10/11/2007 - 08:56

Project Members: 
Seung Wan Hong
Desription

Through FSRs and a DC motor, I made a simple structure of automatic toilet paper hanger. It seems to be useful for disabled peoples or children.

Component

A roll of toilet paper, a sponge-cylinder, a DC motor, FSRs, Arduino board, Bread board, wires, diodes

Arduino Codes

int potPin = 0;   // select the input pin for FSRs
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(potPin);    // read the value from the sensor, between 0 - 1024
  Serial.println(val);
  analogWrite(motorPin, val/4); // analogWrite can be between 0-255
}

Video

http://www.youtube.com/v/AqVG0eCnWe8


AttachmentSize
Toilet paper hanger.JPG252.48 KB

Powered by Drupal - Design by Artinet