Components and supplies
SG90 Micro-servo motor
Arduino UNO
Jumper wires (generic)
Apps and platforms
Arduino IDE
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
Wiring diagram
Wire the servo up to your Arduino board EXACLY or else it won’t work
Wiring diagram
Comments
Only logged in users can leave comments
Anonymous user
2 years ago
Line 5 (Servo servo) causes an error as 'servo' is reserved.
Anonymous user
2 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?
Anonymous user
3 years ago
Line 5 (Servo servo) causes an error as 'servo' is reserved.
Anonymous user
5 years ago
You're missing a semicolon at the end of line 5 in the first project.
tosc22e
7 months ago
How much force could a servo be able to handle?