Jan 12, 2021
373 views
0 respects
Components and supplies
9V Battery Clip
Arduino UNO
Jumper wires (generic)
9V battery (generic)
SG90 Micro-servo motor
Solderless Breadboard Half Size
Project description
Code
Blink move
arduino
1#include <Servo.h> 2Servo servo1; 3int servopin1 = 9; 4void setup() { 5 servo1.attach(servopin1); 6 pinMode(9, OUTPUT); 7 8} 9 10void loop() { 11 digitalWrite(12, HIGH); 12 servo1.write(90); 13 delay(2000); 14 digitalWrite(12, LOW); 15 servo1.write(0); 16} 17
Comments
Only logged in users can leave comments
cjpeterson24
0 Followers
0 Projects
Table of contents
Intro
0