Skip to content

Speed issue running 2 motors #52

@daved20319

Description

@daved20319

When I try to run 2 motors with this library, it seems to be cutting whatever speed I have set in half, i.e. 1000 step/sec only hits about 500. This is pretty consistent above 1000 step/sec, but below that, it's more like 60% of set speed. And I get the same result using the dual axis example sketch.

I also get very inconsistent results from the setStepsPerRevolution setting, most of the time, it just seems to ignore it. The only exception to that was setting it at 800 in the sketch, but setting the motor for 400, that got the speed close to what it should have been. But that little trick didn't work when going to higher settings.

If it matters, I'm using an Espressif brand ESP32-S3 DevkitC-1. One motor is a StepperOnline NEMA 34 running on a StepperOnline DM860T driver, the other is a NEMA 17 running on a DRV8825. Power supply is 24 volts, board is being powered via USB. Also, this library is stellar with ONE motor, but I'd really like to be able to use it with both motors in my project. Thanks for any insight.

Dave

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