Skip to content

Motor briefly runs at full speed when first plugged in or encoder reset #37

Description

@seth10

To replicate add this line to the end of setup in the MotorEncoder example:

evshield.bank_a.motorRunUnlimited(SH_Motor_1, SH_Direction_Forward, SH_Speed_Slow);

Upload the program and press GO to start it. Notice when you hit the left arrow to reset the encoder positions the motor is set to full speed for a moment before losing its momentum and dropping back to SH_Speed_Slow. Also unplug and reconnect the motor, a similar issue occurs.

Now replace that line with:

evshield.bank_a.motorRunUnlimited(SH_Motor_1, SH_Direction_Forward, SH_Speed_Fast);

Notice (by ear) there is little-to-no difference in speed.

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