Lua RTOS for ESP32, added stepper driver
Posted: Wed Mar 15, 2017 5:10 pm
We are glad to announce that we have added the stepper driver in Lua RTOS for ESP32.
This update allows the programmer to control up to 8 steppers in real time from Lua.
-- Attach 2 steppers
--
-- Default config:
-- units: revolutions
-- steps per unit (revolutions): 200
-- min speed: 60 rpm
-- max speed: 1000 rpm
s1 = stepper.attach(pio.GPIO26, pio.GPIO14)
s2 = stepper.attach(pio.GPIO12, pio.GPIO13)
-- Setup movement for each stepper: 10 revolutions
s1:move(10)
s2:move(10)
-- Start the movement
stepper.start(s1, s2)
https://github.com/whitecatboard/Lua-RTOS-ESP32
https://github.com/whitecatboard/Lua-RT ... PER-module
Best regards,
Lua RTOS team
This update allows the programmer to control up to 8 steppers in real time from Lua.
-- Attach 2 steppers
--
-- Default config:
-- units: revolutions
-- steps per unit (revolutions): 200
-- min speed: 60 rpm
-- max speed: 1000 rpm
s1 = stepper.attach(pio.GPIO26, pio.GPIO14)
s2 = stepper.attach(pio.GPIO12, pio.GPIO13)
-- Setup movement for each stepper: 10 revolutions
s1:move(10)
s2:move(10)
-- Start the movement
stepper.start(s1, s2)
https://github.com/whitecatboard/Lua-RTOS-ESP32
https://github.com/whitecatboard/Lua-RT ... PER-module
Best regards,
Lua RTOS team