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!


frother

Project Members: 
Elisa Oreglia

Description

A portable frother for traveling Italians who can't live without a proper cappuccino (actually, the motor is not powerful enough for cappuccino, but works ok for macchiato).

Components

Paperclip, stretched out and twisted at the end
Arduino and breadboard
1 DC motor
1 pot
2 AA batteries
1 transistor
2 resistor

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 potentiometer
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
}

 

Photo
caffe macchiato

caffe macchiato


Comments

Comments from TAs

Good job! I can just imagine you traveling with an arduino in your carry on bag! :) The concept of a portable espresso kit is really interesting. I wonder if you could create a compact device that brews and froths coffee drinks... It would be a tricky but interesting challenge to get all of those pieces into a small device!


Powered by Drupal - Design by Artinet