The Beginners Guide to Micro Servos

This will teach you basic things you need to know about servos.

Nov 12, 2019

73843 views

5 respects

Components and supplies

1

SG90 Micro-servo motor

1

Arduino UNO

1

Jumper wires (generic)

Apps and platforms

1

Arduino IDE

1

Servo.h

Project description

Code

Code for project 2

arduino

Upload this code in a different sketch in ide

Code for project 1

arduino

Copy this code into ide

Code for project 4

arduino

Upload this code into a new sketch in ide

Code for project 2

arduino

Upload this code in a different sketch in ide

Code for project 1

arduino

Copy this code into ide

Code for project 4

arduino

Upload this code into a new sketch in ide

Code for for project number 3

arduino

Upload this code into a blank sketch in arduino

Downloadable files

Wiring diagram

Wire the servo up to your Arduino board EXACLY or else it won’t work

Wiring diagram

Image

Wiring diagram

Wire the servo up to your Arduino board EXACLY or else it won’t work

Wiring diagram

Image

Comments

Only logged in users can leave comments

Image
Image

tosc22e

a year ago

How much force could a servo be able to handle?

Image
Image

Anonymous user

3 years ago

Line 5 (Servo servo) causes an error as 'servo' is reserved.

Image
Image

Anonymous user

3 years ago

I have copied the code and the schematics the exact same as seen here, yet it is not working. What could I be doing wrong or need to add?

Image
Image

Anonymous user

4 years ago

Line 5 (Servo servo) causes an error as 'servo' is reserved.

Image
Image

Anonymous user

5 years ago

You're missing a semicolon at the end of line 5 in the first project.