Hello,
I am one of the people helping Ringo with the project. We are using a Xylotex driver box with Xylotex bipolar four wire stepper motors.
The line of communication runs from the camera, to processing, to the arduino board, to the Xylotex driver, then to the motors.
One of the problems we are having is figuring out how to get arduino to communicate to the driver box. The driver box has a parallel cable input, and only two pins of input per motor; steps and direction. We've gotten the motor to turn by sending 5v thousandth of a second 'on off' pulses, and we've gotten it to change direction when a 5v signal is sent to the directional pin. The problem is that to get the motor to run forward and backward smoothly we connected the ground pin of the arduino to the ground pin of the driver box's parallel port, and when ground is connected the motor will only run at half speed, which will not be fast enough for real-time interaction. We have been able to achieve max speed from the motor while ground was connected through a potentiometer and tweaked to a certain spot, but while set up that way the motor only goes backwards slowly and jerkily.
The other problem is coming up with suitable processing code to make the motors move according to the viewers movements.
The datasheet supplied by Xylotex (Xylotex CNC Sytems) doesn't, as far as I can tell, explain what inputs the driver "wants" or why grounding it makes it work correctly but slower.
If possible, we want to figure out how to get the motor running at full speed (which we achieved with a yet unknown amount of resistance on ground) but with full ability to do so in both directions.
You can see examples of ringos work here-
http://rhyshimsworth.com/work%207.htm
As you can see, he has been making some basic drawing and painting
machines and so far I have been using some very basic software that turns
a PC into a CNC machine, communicating to a driver box and powering
stepper motors.
we are now trying to make a
painting machine that will paint according to the movements of the viewer,
using a web cam to monitor the viewer and an arduino micro controller to
move the stepper motors in real time.
I have spoken to a friend of mine who has some experience of arduino who
was able to find some processing code that would turn movements on a web
cam into a drawing on the computer screen-
http://pastie.org/795453
It needs a plugin to be added to processing, from the JMyron site
http://webcamxtra.sourceforge.net/download.shtml
We were thinking that we should be able to tweak this to drive some
stepper motors, at least i hope my friend will be able to. Trouble is he
has little experience of stepper motors. The motors I have are like the
ones here-
http://www.xylotex.com/StepperMotor.htm
I am unsure of how to realize this within processing in a way that will communicate with the motors successfully
Any advice you have would be greatly appreciated.
Thanks for your time.