• Mavzu: Radiochastotali identifikator va servo motor yordamida loyiha ishlab chiqish. Bajardi
  • 6 - Topshiriq. (Amaliy mashg‘uloti uchun) 13-variant
  • O‘rnatilgan tizimlari fanidan 6-amaliy ish topshirig‘i mavzu: Radiochastotali identifikator va servo motor yordamida loyiha ishlab chiqish. Bajardi




    Download 194,73 Kb.
    Sana21.05.2024
    Hajmi194,73 Kb.
    #247846
    Bog'liq
    Qahhorov Samandar


    O‘ZBEKISTON RESPUBLIKASI
    RAQAMLI TEXNOLOGIYALAR VAZIRLIGI
    MUHAMMAD AL-XORAZMIY NOMIDAGI
    TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI


    Kompyuter injiniringi fakulteti
    Sun’iy intellekt kafedrasi

    O‘rnatilgan tizimlari fanidan

    6-AMALIY ISH TOPSHIRIG‘I


    Mavzu: Radiochastotali identifikator va servo motor yordamida loyiha ishlab chiqish.


    Bajardi: 411-21 guruh talabasi
    Qahhorov Samandar
    Tekshirdi: Azimova U.
    TOSHKENT – 2024
    6 – amaliy ish topshirig‘i
    Ishdan maqsad: Radiochastotali identifikator va servo motor xususiyatlarini o‘rganish va ular haqida ma’lumot olish. Ularni boshqarish uchun datchiklarning ishlash prinsiplari, qurilmaga ulanishi va dastur yozish ko‘nikmalarini hosil qilish va ular yordamida loyiha ishlab chiqish
    Vazifalar:

    • Jadvalda berilgan topshiriqlarni bajarish.

    • Online simulyatorlarda sxemani topshiriq bo‘yicha yig‘ish va dastur yozish

    • Amaliy ish bo‘yicha hisobot tayyorlash (qisqacha nazariy qism, amaliy qism, kod qismi, ulanish sxemasi rasmlari, xulosa)

    Topshiriqlar https://wokwi.com yoki https://www.tinkercad.com onlayn simulyatorlarda amaliy bajarilib hisobotga ulanish sxemasi va dastur kodi ilova qilinishi zarur. Hisobotda dastlab qo‘llanilgan modul va datchiklar haqida umumiy ma’lumotlar keltirilishi va xulosa yozilishi shart. Ishni simulyatorda bajarilgan manzili ilovasi berilishi zarur.
    6 - Topshiriq. (Amaliy mashg‘uloti uchun)
    13-variant

    https://wokwi.com/projects/341613212582543955


    Dastur kodi
    #include //Include library to work with Servo motor

    //Create Servo object, used to control a Servo (access functions, etc)


    Servo myServo; //12 Servo objects can be created on most boards

    //Define a variable to store the values of joystick in horizontal direction


    const int analogPin = A0; //To read value in x-direction from joystick

    //Define variable to store the Servo position, to rotate Servo in loop()


    int value = 0; //Will be converted from analog input to angle output
    //(see the map() function used in main loop() below)

    //setup code, to run once:


    void setup() {//setup
    pinMode(analogPin, INPUT); //Set SW_pin for input mode
    Serial.begin(9600); //Open serial port at 9600 baud
    //Attach the Servo on pin 9 to the Servo object
    myServo.attach(9);
    }//setup

    //main code, to run repeatedly:


    void loop() {//loop
    //Read in 10-bit analog value (0 to 1023) from joystick
    value = analogRead(analogPin); //value variable will convert to degrees

    //Use map() to convert values to degrees (0 to 180) for Servo motor


    value = map(value, 0, 1023, 0, 180);

    //Use the converted value to move the Servo


    myServo.write(value); //Move to a position specified by value (0 to 180)
    delay(15); //Then wait 15ms
    }//loop
    Download 194,73 Kb.




    Download 194,73 Kb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    O‘rnatilgan tizimlari fanidan 6-amaliy ish topshirig‘i mavzu: Radiochastotali identifikator va servo motor yordamida loyiha ishlab chiqish. Bajardi

    Download 194,73 Kb.