Lua RTOS for ESP32, added stepper driver

luartos
Posts: 16
Joined: Wed Nov 23, 2016 7:17 pm

Lua RTOS for ESP32, added stepper driver

Postby luartos » 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

Who is online

Users browsing this forum: Majestic-12 [Bot] and 22 guests