RANDOM COLOR FILM


modified meopta "meochrom" color enlarger head, motorised with three servo motors run by arduino.

sequences are controlled with code. in one sequence the microcontroller assigns a random value to each ot the motors and turns the light on and off. each sequence lasts 3600 microseconds. after 12 sequences the motors are reset and the light turned off.




details of the mechanism.

code:

#include

Servo servo1;
Servo servo2;
Servo servo3;

void setup(){
servo1.attach(9);
servo2.attach(10);
servo3.attach(11);
};

void loop() {

for(int i = 0; i <= 12; i++) {
servo1.write(random(1,180));
delay(600);
servo2.write(random(1,180));
delay(600);
servo3.write(random(1,180));
delay(600);
analogWrite(3,255);
delay(1200);
analogWrite(3,1);
delay(600);
};

servo1.write(0);
servo2.write(0);
servo3.write(0);
analogWrite(3,1);
};