Animated motion pictures

Submitted by lwang on Wed, 03/13/2013 - 00:44

Description:

I created a pinwheel attached with varying frame pictures. The pictures look as if they are in motion as the motor spins. The concept is similar to a flip book.

 

Material:

Balsa Wood

Cardboard

Tape

Arbuino board

Batteries

cables

Potentiometer

wires

paper

 

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
}
 
 
 

Video:

http://www.youtube.com/watch?v=jYF11V62Rxg

photo-4.JPG
photo-5.JPG
0
Your rating: None
Drupal theme by Kiwi Themes.