Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to drive a step motor with micropython? #8587

Closed
@xky183

Description

@xky183

Hi all,
I want drive a step motor with ESP32 and microPython,
The PWM duty will be fixed 50%,
I want use a timer IRQ for setting the freq of the PWM with 10ms period.
The freq of PWM will be in the range of 0.5k-50kHz.
But I don't have a solution for getting the exactly number of PWM pulse in micropython.
Is there any way to know how many pulse generated by the timer(PWM mode)?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions