issues: Using shutter to control a stepper motor #23627
-
Hey everybody! My goal is to send a precise number of pulses to a stepper motor controller to precisely control a number of turn. I initially tried using a simple PWM output and controlling the enable/disable time, but this software-timed approach was not precise enough due to system and network jitter, resulting in an inconsistent number of pulses. I was hoping to use the Shutter commands to leverage the hardware PWM for a precise, jitter-free pulse count. To do this, I am attempting to implement precise stepper motor control on an ESP32-S3 board using Tasmota's native ShutterMode 4. Following the documentation, I have compiled the latest version of Tasmota (v15.0.1.1) from source, ensuring that both #define USE_SHUTTER and the new #define USE_SHUTTER_ESP32 feature flags were enabled. Despite this, the feature appears non-functional on the ESP32-S3 platform. Key settings like ShutterMode 4 do not persist after a reboot, and essential configuration commands like ShutterOpenDuration1 consistently return a "Command Error". This behavior persists even when forcing #define SHUTTER_SUPPORT true at compile time, suggesting a potential bug in the feature's initialization routine on the S3 platform. I am looking to confirm if this is a known issue or if other S3 users have found a viable workaround. Any help would be nice. Thanks and have a nice day! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I suggest using tasmocompiler and incorporate that. I did that just now and works. (Had older version, was rebooting with BLE) |
Beta Was this translation helpful? Give feedback.
I finally used ESPHome. Works great.