Mini blender

Submitted by christineschantz on Tue, 03/12/2013 - 20:25

 

Description

For this assignment I build a mini blender using the DC Motor and a toy from Daiso. I disassembled the toy and replaced its content with the DC Motor. By the input from the potentiometer the DC Motor / blender output turns from minimum to maximum speed, and can plus be turned off.  

Components

  • Arduino Uno
  • Breadboard
  • Potentiometer 
  • DC motor
  • Transistor
  • Resistor (10 ohm)
  • Battery case
  • 2 x AA batteries
  • Tape
  • Mini blender (Toy from Daiso)

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
}
 

 

Blender + controller
jkssgls.jpg
0
Your rating: None
Drupal theme by Kiwi Themes.