top of page

how to make seven segment display using servo at your home

Servo zero count programming.....


#include <Servo.h>


Servo servo1;

Servo servo2;


void setup() {

  servo1.attach(9);

  servo2.attach(10);


}


void loop() {

    servo1.write(190);

    servo2.write(190);

    delay(500);

}



Servo zero to ninety nine count programming......


#include <Servo.h>


Servo servo1;

Servo servo2;


void setup() {

  servo1.attach(9);

  servo2.attach(10);


}


void loop() {

    servo1.write(190);

    servo2.write(190); //0

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);


    



    servo1.write(190);

    servo2.write(162); //1

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);





    servo1.write(190);

    servo2.write(144); //2

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);





    servo1.write(190);

    servo2.write(126); //3

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);






    servo1.write(190);

    servo2.write(108); //4

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);





    servo1.write(190);

    servo2.write(90); //5

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);





    servo1.write(190);

    servo2.write(72); //6

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);






    servo1.write(190);

    servo2.write(54); //7

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);





    servo1.write(190);

    servo2.write(36); //8

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);






    servo1.write(190);

    servo2.write(18); //9

    delay(1000);


    servo1.write(162);

    delay(1000);


    servo1.write(144);

    delay(1000);


    servo1.write(126);

    delay(1000);


    servo1.write(100);

    delay(1000);


    servo1.write(72);

    delay(1000);


    servo1.write(54);

    delay(1000);


    servo1.write(36);

    delay(1000);


    servo1.write(18);

    delay(1000);


    servo1.write(0);

    delay(1000);


}



Download stl file and other click.... 



Demo Video:


46 views0 comments

Recent Posts

See All

Comments


bottom of page