//Simple Stroboscope by Hari Wigunabyte ledPin = 13; // Digital Pin 13byte potPin = 0; // Analog Pin 0voidsetup() {
pinMode(potPin, INPUT);
pinMode(ledPin, OUTPUT);
}
voidloop() {
// This controls the frequency of the flashing, smaller delayValue = faster flash.int potValue = analogRead(potPin);
int delayValue = potValue/4;
digitalWrite(ledPin,HIGH);
delay(2); // How long should the strobe be on. Larger is brighter, but will blur the effect.
digitalWrite(ledPin,LOW);
delay(delayValue); // How long should the strobe be off.
}
Hi, it is a great style of zoetrope. I would like to do it by my own, but I couldn't find any motor which i could control the rpm. Which motor did you use for the project ?
Hi, it is a great style of zoetrope. I would like to do it by my own, but I couldn't find any motor which i could control the rpm. Which motor did you use for the project ?