Комментарии •

  • @pro-creativity4471
    @pro-creativity4471 Год назад +1

    الكود البرمجي
    #include .
    #define dtime 14
    #define trechold 50
    #define TL A2
    #define TR A3
    #define BL A1
    #define BR A0
    #define HORLIM 220
    #define VERLIM 220
    int horpas = HORLIM / 2;
    int verpas = VERLIM / 2;
    Servo Servohor; //The servo object
    Servo Servover;
    void setup()
    {
    Servohor.attach(9);
    Servover.attach(10);
    }
    void loop(){
    track();
    }
    void track()
    {
    //Input Reading
    int tl = analogRead(TL);
    int tr = analogRead(TR);
    int bl = analogRead(BL);
    int br = analogRead(BR);
    int avtop = (tl +tr ) / 2;
    int avtdawn = (bl +br ) / 2;
    int avtleft = (tl +bl ) / 2;
    int avtright = (tr +br ) / 2;
    int difver =avtop - avtdawn ;
    int difhor =avtleft - avtright ;
    if (( ( -1*trechold) VERLIM)
    {
    Servover.detach();
    verpas = VERLIM;
    }
    }
    else if ( avtop

    • @adamH-M
      @adamH-M 4 месяца назад +1

      شكرًا اخوي الغالي 😊❤

  • @mohamedharrim8673
    @mohamedharrim8673 Год назад

    جزاك الله خيرا

  • @labidimahdi3059
    @labidimahdi3059 4 месяца назад

    جزاك الله خيرا