• Bajardi
• O‘rnatilgan tizimlari fanidan 5-topshiriq mavzu

Bog'liq
o\'rnatilgan a5

 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 5-TOPSHIRIQ Mavzu: LCD 1602 indikatori va harakat datchigidan foydalanib toshiriqlarni bajarish Bajardi: 211-21 guruh talabasi Nurullayev Nodirbek Tekshirdi: Asqaraliyev O.U. TOSHKENT – 2024 5-topshiriq Ishdan maqsad: Talabalarga Arduino, datchiklar haqida ma’lumot berish. Ular bilan ishlash ko‘nikmalarini hosil qilish. LCD1602 ekarani, harakat datchiklarni ishlash prinsiplarini o‘rganish Vazifalar: LCD1602 ekran ishlash prinsipini o‘rganish Harakat datchigini ishlash prinsipini o‘rganish Ular asosida tizimli ravishda bironta loyiha ishlab chiqish Ishni qurilma yoki online muhitlarda virtual holda tayyorlash mumkin. Ishning natijasi Dastur kodi #include "LiquidCrystal.h" LiquidCrystal lcd(8,7,6,5,4,3); int sensorPin = 0; void setup() { Serial.begin(9600); lcd.begin(16,2); } void loop() { int reading = analogRead(sensorPin); // measure the 5v with a meter for an accurate value //In particular if your Arduino is USB powered float voltage = reading * 4.68; voltage /= 1024.0; // now print out the temperature float temperatureC = (voltage - 0.5) * 100; Serial.print(temperatureC); Serial.println(" degrees C"); lcd.setCursor(0,0); lcd.print("Temperature Value "); lcd.setCursor(0,1); lcd.print(" degrees C"); lcd.setCursor(11,1); lcd.print(temperatureC); delay(100); } Dastur linki: https://www.tinkercad.com/things/f3hFnBYKXM4-brilliant-fyyranDownload 162,79 Kb.