Asked
Can you please write the code in Blockly for me for a stepper motor Movement Panel using V21 and V22? I will be inserting it into Auto Position movement panel.
Related Hardware (view all EZB hardware)
EZ-B V4
by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos
24
Camera
Audio
UART
3
I2C
ADC
8
Digital
24
Related Robot Skill (view all robot skills)
Stepper Servo
by Synthian Inc.
Control up to 127 stepper motors via Arduinos mapped to ARC servos; supports any stepper driver, serial network, home calibration, speed/accel.
Requires ARC
v21

Haha that’s usually how it happens
How did you end up doing it?
There’s probably a way to offload the loop to the ardunio with an option to "set as continuous rotation servo" but I’d have to figure that out. I think Athena’s past suggestion of a JavaScript loop in a custom Movement Panel v2 is the easiest so far.
I already had stepper movements with keys and with joystick buttons, just had to have Movement Panel give me something, that something is either joystick variable value or a direction. Cheers!!