Home
Projects
YouTube
Reviews
Contact
More
★ᴀʀᴅᴜɪɴᴏ ᴀᴜᴛᴏᴍᴀᴛɪᴄ ᴄᴏꜰꜰᴇᴇ ꜱᴛɪʀʀᴇʀ
#include <Servo.h>
Servo myservo; //Servo pin connect Digital Pin 2
int pos = 0;
void setup() {
myservo.attach(2);
}
void loop() {
for(pos = 0;
pos < 25; pos += 1)
{
myservo.write(pos);
delay(20);
for(pos = 25;
pos>=1; pos-=1)