Bob writes stepper motor control software

I have been writing Arduino software to drive a stepper motor.  I am planning to grow this into a complete control program for the laser cutter I’ve been building.  Today I got some interesting things working, and I made some videos and uploaded them to Youtube.

The first video shows a repeating sequence of three moves, each a different distance.


The second video shows a sequence of increasingly long movements, up to 30 cm (1 foot).


The third is my favorite.  In this one, the control software randomly varies the direction, distance, maximum velocity, and acceleration rate of each stroke.


I wrote a little bit explaining how the motor control works over here.

You may also like...

1 Response

  1. Craig says:

    It looks like it is really coming together. I’m just a few days away from trying to run my stepper motors also, but I’m cheating by using Mach3 instead of writing my own control code.

Leave a Reply

Your email address will not be published. Required fields are marked *