arduino Servo

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

A Servo is a an enclosed system containing a motor and some supporting circuitry. The shaft of a servo can be rotated to a fixed angle within an arc using a control signal. If the control signal is maintained, then the servo will maintain its angle. Servos can easily be controlled with the Arduino Servo.h library.

Syntax

  • #include <Servo.h> // Include the Servo library
  • Servo.attach(pin) // Attach to the servo on pin. Returns a Servo object
  • Servo.write(degrees) // Degrees to move to (0 - 180)
  • Servo.read() // Gets the current rotation of the servo


Got any arduino Question?