Description
I really wanted to create a flipbook like effect by using the motion of the motor to mimic the page flipping effect. However, I couldn't quite estimate the correct weight of material to use to achieve the right effect. The problem I have is that at the lower speeds the disk doesn't spin at all, and when the disk does begin to spin it goes so fast that the image gets super blurry. The disk by itself spins at different speeds, but I think the weight of the other cardboard pieces affects it.
The flipbook images show a hot air balloon landing - I chose to use this depiction because the only post-its I had were blue, so it looks like the natural background to that image. I really wish I'd managed to judge the speed right though.
Components
1x Macbook Pro
1x Arduino
1x Breadboard
1x DC Motor
1x Potentiometer
1x 200 ohm resistor
Lots of cardboard
Many post-its
Code
The code is the same as the one used for the lab
/*
* 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
https://www.facebook.com/photo.php?v=10153369358485065¬if_t=video_processed
- Login to post comments