Devices & Components
Arduino Uno Rev3
SG90 Micro-servo motor
Jumper wires (generic)
Software & Tools
Arduino IDE
Project description
Code
ok this is the code to do servo normally
java
00000
1#include <Servo.h> 2 3Servo servo_pin_9; 4 5void setup() 6{ 7 servo_pin_9.attach(9); 8} 9 10void loop() 11{ // change this number to 0-180 12 servo_pin_9.write( 0 ); 13}
this is the code.
java
JUST COPY.
1#include <Servo.h> 2 3Servo servo_pin_9; 4 5void setup() 6{ 7 servo_pin_9.attach(9); 8} 9 10void loop() 11{ 12 servo_pin_9.write( 180 ); 13} 14
ok this is the code to do servo normally
java
00000
1#include <Servo.h> 2 3Servo servo_pin_9; 4 5void setup() 6{ 7 servo_pin_9.attach(9); 8} 9 10void loop() 11{ // change this number to 0-180 12 servo_pin_9.write( 0 ); 13}
Downloadable files
just follow the tutorial
follow follow follow follow this steps ok.
just follow the tutorial

just follow the tutorial
follow follow follow follow this steps ok.
just follow the tutorial

Comments
Only logged in users can leave comments