Showing posts with label Servo. Show all posts
Showing posts with label Servo. Show all posts

Friday, August 17, 2018

Motor Shield - Servo


Using a servo with the Motor Shield is basically a pass-through. The main points primarily revolve around wiring.

Wiring


  • Brown wire should be nearest to the corner of the shield when installed
  • Digital pins (orange wire) are D9 and D10 on the arduino
    • The row connected (shown above) is D10
  • External power is not needed in the shield

Coding

  • Use all the same example codes as you would for Servos without the shield.

Adafruit MotorShield v2.3

The Adafruit MotorShield is a convenient way to control DC motors, Servos and Stepper motors.  Within a current limited capacity, one could run all three.

Upon purchase it is worth noting that you have to solder the stand off pins that connect the shield to the arduino.


After that, in the Arduino IDE, download the appropriate MotorShield library which has all the examples I'll reference for applications using this shield.


Servo - Direct to Arduino


This covers controlling a micro-servo directly connected to the Arduino.  I say directly connected as opposed to using a motor shield.