Taking a cue from Simon's bipolar stepper programme I put a slider bar in my VB.NET serial comms programme to control speed and radio buttons to control direction.

{(direction, +/-)(speed, 0-255}
A typical command to tell the control board to rotate the G4 counterclockwise at a PWM setting of 200 would look like...
{-200}
The BASIC code to set direction and speed can be got from my personal server for anybody who's interested in looking at my retarded firmware programming style. :-)
If you want the VB.NET code let me know in the comments on this blog entry and I'll zip up a copy, put it on my server and post a link. I personally think that it's way too early for anybody to try emulating what I'm doing. It might not even be a good idea. :-s
No comments:
Post a Comment