Posted by Cole
This project was inspired by Marcel Duchamp's rotorelief's (http://www.medienkunstnetz.de/works/rotoreliefs/flash/1/)and I adapted my design from one of his. I made a rotorelief print with a wood-backed linoleum block using 2 oil relief inks on white paper. The paper is cut out in the shape of a circle and mounted on foam core. The plastic cap of an old film canister was glued to the back of the foam core to attach the DC motor (this worked OK, but I should really find a better method for stability). The DC motor was controlled with a pot.
Due to the orientation of the interior objects, as the entire disk rotates on the motor, the printed shapes in the interior appear as if the rotate independently of one another. This illusion is more effective at low speeds, which were somewhat difficult to attain with the DC motor.
I used the code provided in class for the most part, but adjusted it slightly to get the motor to rotate at lower speeds. This was somewhat somewhat successful, but the motor didn't really have enough torque at the lower speeds so I had to make due by controlling the speed with the pot.
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/10); // this is slightly adjusted to run at lower speeds
}