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!
With Halloween coming up at the end of the month, I thought I would do a little festive October project. I explored motion as an output focusing on the vibration caused by the DC motor with a cork eccentric weight attached to it. The goal was to make one of those spooky door decorations so if someone came to my front door and stepped on the mat on the ground in front the FSR would read in this pressure and then in response the ghost would glow red and move about as a spooky tune played in the background. The only problem was that the FSR I soldered to longer wires broke already, so I had to use my FSR that was connected directly to the breadboard, unfortunately.
Components Used
red LED (Light Emitting Diode) 20-ohm resistor (red, red, brown, gold) 1k resistor DC motor diode transistor FSR piezo speaker
Arduino Code
/*
* Happy Halloween! Ghost
*/
int potPin = 1; // select the input pin for the potentiometer
int motorPin = 9; // select the pin for the Motor
int redPin = 10; // select the pin for the red LED
int speakerOut = 7; // select the pin for the piezo speaker
int val = 0; // variable to store the value coming from the sensor
Very nice project! You brought together a lot of different components from different labs and also worked in the physical form of your project. It's too bad that the FSR under the floor mat didn't work out! If you bring your project to the Halloween party on Tuesday, we could work on hooking it up.
Comments
Comments from TAs
Very nice project! You brought together a lot of different components from different labs and also worked in the physical form of your project. It's too bad that the FSR under the floor mat didn't work out! If you bring your project to the Halloween party on Tuesday, we could work on hooking it up.