Skip to content

How to use code.py within stepper_pio #1

@XenonFlits

Description

@XenonFlits

Hi,
I found your code. It looks promising, but I have some troubles how to use it.
I see stored parameters p, v and l. I see an initialisation with s._setup_sm(). I see a ENC_TICKS_PER_MM parameter. I see that parameters for encoder and end stops are optional.
How do I get your code to work? I have a stepper pulse pin on D7 with a stepper that does 200*8 = 1600 steps per revolution or 3 mm per step if that is easier. D8 is a direction pin, D9 is a disable pin. This reduces the current to a hold current. I have no encoder at this moment, but plan to use it later this week.

Kind Regards from Amsterdam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions