Posts

Showing posts from October, 2024

Project Mania

 Robotics hand #include <Servo.h> Servo s1;   Servo s2;  Servo s3;  int pos = 0;    // variable to store the servo position void setup() { s1.attach(3); s2.attach(9);  s3.attach(6);    } void loop() {   delay(50);   for (pos = 0; pos <= 60; pos += 1)    {                                     // s2 downwards    s2.write(pos);                   delay(50);                          }   for (pos = 20; pos >= 0; pos -= 1)     {                                         //s1 close     s3.write(pos);                   d...