jovan-josic-servo-love
Published © CC BY-NC-SA

Cat cool toy

Cats like it

BeginnerFull instructions provided229
Cat cool toy

Things used in this project

Hardware components

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

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

do it

its cheme

Code

paste it in arduino uno

C/C++
#include<Servo.h>
Servo Myservo;
int pos;
void setup()
{
Myservo.attach(3);
}

void loop()
{
  
  
for(pos=0;pos<=1000;pos++){
Myservo.write(pos);
delay(15);
}
  delay(0);
  
  for(pos=180;pos>=0;pos--){
Myservo.write(pos);
delay(15);
}
  delay(0);
  
}

Credits

jovan-josic-servo-love
1 project • 1 follower
Contact

Comments

Please log in or sign up to comment.