Skip to content

DC motor and Servo #309

@leyenda

Description

@leyenda

Hello everyone, Im using an L298n to control one dc-motor and Im setting the arduino UNO pin 9 as PWM just how the documentation indicates.

this.pinMode(9, five.Pin.PWM);

Everything works great until I declare a servo

servo = new five.Servo(11);

After that the pin9 doesnt seems to be working as PWM and only enable the motor at 255 value.

Any help would be apreciate.
Thanks

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