Wiring + step by step

IMG_0262

The idea was to reinterpret Andy Wahrol’s Dreamachine with nowadays possibilities. In projection technologies, not in drugs :)

Therefore, we decided to build a projector stand with a 45 degrees mirror in front of it. The mirror sould be able to rotate on 360 degrees, and had to be controled by the computer projecting the image.
plan step motor

Now we have to find a good stepper motor.
I started opening an old floppy, and an old Zip drive.

IMG_0255
But the data sheets were to hard to find, so i finally decided to use this one because it was the same used in Epfl’s e-puck robots, witch is open source, so it was easy the find to drive sequence for this engine.
All I need now was to find a driver. I found a very usefull tutorial by Juan Manuel González on controling a stepper motor with the Wiring Board on his website, and I chose to use the same driver, the L293D.
stepper driver

Then I wrote the following driving sequence:

void forward(){
digitalWrite(0, HIGH);
digitalWrite(1, LOW);
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(time);
digitalWrite(0, LOW);
digitalWrite(1, HIGH);
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
delay(time);
digitalWrite(0, LOW);
digitalWrite(1, HIGH);
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(time);
digitalWrite(0, HIGH);
digitalWrite(1, LOW);
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(time);
}

And here is the first test:
IMG_0262

wiringStep01

wiringStep02

wiringStep03

View the test video

by flo | November 14, 2009

Comments

[...] Wiring + step by step [...]

by SIGMA6 nightly » DreamMachine Workshop | November 26, 2009

Leave a comment