O‘ZBEKISTON RESPUBLIKASI RAQAMLI TEXNOLOGIYALAR VAZIRLIGI MUHAMMAD AL-XORAZMIY NOMIDAGI TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI Kompyuter injiniringi fakulteti Sun’iy intellekt kafedrasi IoT texnologiyalari fanidan 1-Amaliy ish Bajardi: 222-21 guruh talabasi Yusubjonov Boxodir Tekshirdi: Ma‘mirov Xudoyberdi TOSHKENT 2023 1-amaliy ish. Tinkercad.com virtual laboratoriya yordamida LED(fotodiodni yoqib o‘chirish, 1 va 2 ta fotodiodni yoqib o‘chirish va svetofor dasturini tuzish) va Arduino kit yordamida yig‘ish va ishlatish. // C++ code // int qizil = 2; int sariq = 4; int yashil = 6; void setup() { pinMode(qizil, OUTPUT); pinMode(sariq, OUTPUT); pinMode(yashil, OUTPUT); Serial.begin(9600); } void loop() { Serial.println("Qizil"); digitalWrite(qizil, HIGH); digitalWrite(sariq, LOW); digitalWrite(yashil, LOW); delay(25000); Serial.println("Qizil\tSariq"); digitalWrite(qizil, HIGH); digitalWrite(sariq, HIGH); digitalWrite(yashil, LOW); delay(4000); Serial.println("Sariq"); digitalWrite(qizil, LOW); digitalWrite(sariq, HIGH); digitalWrite(yashil, LOW); delay(6000); Serial.println("Yashil"); digitalWrite(qizil, LOW); digitalWrite(sariq, LOW); digitalWrite(yashil, HIGH); delay(15000); }