Why do i get a “Pin d10 reserved by servo” error when I run “writeDigitalPin” with my Arduino Uno?
I have an Arduino Uno connected to a servo motor and DC motors. If I create objects for the servo and for the DC motors, and then call "writeDigitalPin" to pin d10 where the DC motor is connected, the states of all of the pins are set to 0 and I get the following error:
"Uno pin d10 is reserved by servo. To release the resource, clear all variables holding onto this resource"
How can I fix this error?I have an Arduino Uno connected to a servo motor and DC motors. If I create objects for the servo and for the DC motors, and then call "writeDigitalPin" to pin d10 where the DC motor is connected, the states of all of the pins are set to 0 and I get the following error:
"Uno pin d10 is reserved by servo. To release the resource, clear all variables holding onto this resource"
How can I fix this error? I have an Arduino Uno connected to a servo motor and DC motors. If I create objects for the servo and for the DC motors, and then call "writeDigitalPin" to pin d10 where the DC motor is connected, the states of all of the pins are set to 0 and I get the following error:
"Uno pin d10 is reserved by servo. To release the resource, clear all variables holding onto this resource"
How can I fix this error? arduino, servo, writedigitalpin MATLAB Answers — New Questions