misan / dcservo

Position control of DC motors
315 stars 114 forks source link

modification of code to use Sparkfun monster shield #71

Open niranjan1997 opened 4 years ago

niranjan1997 commented 4 years ago

can I use the code directly on my Arduino UNO and use the Sparkfun monster Motor shield or do I need to modify the code ( I/O Pin )? thanks in advance.

RudyFiero commented 4 years ago

You will need to change the pins.

misan commented 4 years ago

I reckon you have to use 3 outputs, digital pins 7 & 8 for setting motor direction and pin 5 for PWM value. All that will need a slight change in the code.