| Posted: 08:46am 17 Apr 2026 |
Copy link to clipboard |
 Print this post |
|
G'day Brian, This is a cut down version of the test program for my coil winding machine, this definitely works on PicoMite RP2350B V6.02.01 Maybe try running this and see if you get some motion and add the rest from there.
' prog to test stepper functions
Option default integer
SetTick 200,Show_Pos
Stepper init Stepper axis x,gp0,gp1,,,200,400,50,5 Stepper axis y,gp2,gp3,,,400,600,100,5 Stepper position home Stepper run Stepper gc g1 x100 y80 f500 Stepper gc g0 x0 y0
Do Pause 100 Loop Until Peek(stepper active)=0 ' wait until motion complete
Pause 250 ' wait for final position update Stepper close
End
Sub Show_Pos Print @(100,100),"X-POS= " Str$(Peek(stepper x),-4,4) Print @(100,120),"Y-POS= " Str$(Peek(stepper y),-4,4) End Sub
> option list PicoMite MMBasic RP2350B V6.02.01 OPTION FLASH SIZE 16777216 OPTION COLOURCODE ON OPTION PICO OFF OPTION CPUSPEED (KHz) 200000 >
Also note that the stepper system works in the background, I found this very confusing at the beginning, the motors can be running while you are sitting at the command prompt.
Regards, Lyle. |