Personal mini fan
Description
Motorized pinwheel as a personal mini fan
Video
http://www.youtube.com/watch?v=EHT8y8jkZCY
Material
Paper ( an image printed on one side)
metal brads
e flute board
dc motor
potentiometer
Code
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
}