Advanced (Arduino controlled) Zoetrope by WillemvD 3d model
3dmdb logo
Thingiverse
Advanced (Arduino controlled) Zoetrope by WillemvD

Advanced (Arduino controlled) Zoetrope by WillemvD

by Thingiverse
Last crawled date: 3 years, 1 month ago
A previous version: http://www.thingiverse.com/thing:2165742
Testing:https://youtu.be/NRLJCD5zStwhttps://www.youtube.com/watch?v=y_Atr-iFn8I
In this Thing, an Arduino board controls a stepper motor and two leds in series.
The Arduino sketch is based on a NanoV3, but by changing the port numbers, any board can be used. The flash port is connected with the base of an N-FET. 1Watt leds are best, they give nice short flashes and produce a razor sharp image. Adapt the resistor values.
A led holder for 1Watt leds is included. If you see horses running backwards, just swap the leads of one coil of the stepper motor.
Some examples:https://duckduckgo.com/?q=zoetrope+examples&t=ffsb&iax=1&ia=imageshttp://thevinylfactory.com/features/the-10-most-mind-bending-vinyl-zoetropes/
The sketch depends on the step angle. Every 36 degrees rotation, the leds should flash
//Stepper
int SA1 = 3; int SA2 = 2; int SB1 = 1;int SB2 = 0;
int F = 4;// flash
int s = 3;//delay between steps
int x = 0;
void setup() {
pinMode(SA1, OUTPUT); pinMode(SA2, OUTPUT);
pinMode(SB1, OUTPUT);pinMode(SB2, OUTPUT);
pinMode(F, OUTPUT);
}
void loop(){
for(x=0;x<20;x++){ //1.8 degrees 2oo steps/rev
digitalWrite(SA1,LOW); digitalWrite(SA2,HIGH); digitalWrite(SB1,HIGH); digitalWrite(SB2,LOW); delay(s);
digitalWrite(SA1,LOW); digitalWrite(SA2,HIGH); digitalWrite(SB1,LOW); digitalWrite(SB2,HIGH); delay(s);
digitalWrite(SA1,HIGH); digitalWrite(SA2,LOW); digitalWrite(SB1,LOW); digitalWrite(SB2,HIGH); delay(s);
digitalWrite(SA1,HIGH); digitalWrite(SA2,LOW); digitalWrite(SB1,HIGH); digitalWrite(SB2,LOW); delay(s);}
digitalWrite(F,HIGH);
delay(1); //short flash
digitalWrite(F,LOW);
}

Tags