daryllqayyimdarplayzgt
Published © CC BY-ND

Servo basic

Yup just a servo with basic things.

BeginnerProtip465
Servo basic

Things used in this project

Hardware components

SG90 Micro-servo motor
SG90 Micro-servo motor
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Arduino UNO
Arduino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

just follow the tutorial

follow follow follow follow this steps ok.

Code

ok this is the code to do servo normally

Java
00000
#include <Servo.h>

Servo servo_pin_9;

void setup()
{
  servo_pin_9.attach(9);
}

void loop()
{ // change this number to 0-180
  servo_pin_9.write( 0 );
}

this is the code.

Java
JUST COPY.
#include <Servo.h>

Servo servo_pin_9;

void setup()
{
  servo_pin_9.attach(9);
}

void loop()
{
  servo_pin_9.write( 180 );
}

Credits

daryllqayyim
8 projects • 4 followers
darplayzgt
9 projects • 3 followers

Comments