Kommunikatsiyalarni rivojlantirish vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti


Download 1.32 Mb.
bet9/9
Sana09.01.2022
Hajmi1.32 Mb.
#255841
1   2   3   4   5   6   7   8   9
Bog'liq
Kurs ishi

Dastur kodi













int LightSensorVal = 0;




int PIRSensorVal = 0;




int RelayOutputVal = 0;










void setup()




{




pinMode(A0, INPUT);




pinMode(2, INPUT);




pinMode(8, OUTPUT);




Serial.begin(9600);










}










void loop()




{




LightSensorVal = analogRead(A0);




PIRSensorVal = digitalRead(2);




RelayOutputVal = 8;




if (LightSensorVal < 600) {




if (PIRSensorVal == HIGH) {




digitalWrite(8, HIGH);




delay(5000); // Wait for 5000 millisecond(s)




} else {




digitalWrite(8, LOW);




delay(1000); // Wait for 1000 millisecond(s)




}




} else {




digitalWrite(8, LOW);




Serial.println(LightSensorVal);




delay(300); // Wait for 300 millisecond(s)




}




}
Dastur natijasi


7-rasm


8-rasm.Dastur natijasi



Tinkercad dasturida vanna chiroqlarini avtomatik yoqish tizimi” ni yigish

9-rasm.Tinkercad dasturini ishga tushirishdagi holati



10-rasm. TINKERCAD dasturining ishchi stoli.



11-rasm. Qurulmalarni nomi bo‘yicha topib olamiz.



12-rasm. Endi esa bu qurilmalarni bir biriga ulab birlashtirib chiqamiz.



13-rasm. Arduino muhitida yozilgan dastur



14-rasm. Dastur natijasi



Xulosa

Men bu kurs ishi davomida mikrokontroller yordamida GPS texnologiyasidan foydalanish tizimini yaratish kabi masalalar bo`yicha ish olib bordim. Ish davomida men Arduino platformasidan foydalandim. Kurs ishidan ko`zlangan asosiy maqsad xaqida to`xtalib o`tsak.



Biz yuvinish xonamizga kirganimizda chiroqlarni yoqamiz va ketayotganda ularni o'chirib qo'yamiz. Biz ba'zan O'chirishni unutamiz yuvinishdan chiqqandan keyin chiroqlar. Bu elektr energiyasini yo'qotishiga olib kelishi mumkin, shuningdek chiroqlarning ishlash muddati kamayishi mumkin. Ushbu muammolardan saqlaning, biz odam kirganda chiroqlarni avtomatik ravishda yoqadigan sxemani yaratamiz yuvinish xonasi va u uni tark etganda avtomatik ravishda o'chiradi. Buni avtomatlashtirish orqali ko'plab afzalliklar mavjud, masalan, odam har doim foydalanayotganda yorug'likni yoqib qo'yishi kerak yuvinish xonasi. Biz qilayotgan sxema o'sha odam uchun avtomatik ravishda amalga oshiriladi. Bundan tashqari, odam uni keyin o'chirmasligi kerak yuvinish xonasidan foydalanish. Uni o'chirishni unutib qo'yganidan qo'rqmaslik kerak. O'chirish, shuningdek, kam quvvat sarflashga mo'ljallangan elektr energiyasi uchun to'lovlardan xavotirlanmasdan har qanday maishiy yoki jamoat yuvinishida foydalanish mumkin.

Foydalanilgan adabiyotlar:


  1. C. Morón, A. García, D. Ferrández, and V. Blanco, “Transmission of impact vibration on concrete and mortar sheets,” Shock and Vibration, vol. 2015, Article ID 184648, 6 pages, 2015.View at: Publisher Site | Google Scholar

  2. N. D. Boffa, E. Monaco, L. Maio et al., “Hybrid guided wave based SHM system for composite structures for impact and delamination detection combining fiber Bragg grating sensing and piezoelectric patches,” in Proceedings of the Health Monitoring of Structural and Biological Systems XII, 106000D, SPIE, Denver, CO, USA, March 2018.View at: Publisher Site | Google Scholar

  3. G. Pinte, R. Boonen, W. Desmet, and P. Sas, “Active structural acoustic control of repetitive impact noise,” Journal of Sound and Vibration, vol. 319, no. 3–5, pp. 768–794, 2009.View at: Publisher Site | Google Scholar

  4. S. Hee Parl and P. Jik Lee, “Effects of floor impact noise on psychophysiological responses,” Building and Environment, vol. 116, pp. 173–181, 2017.View at: Publisher Site | Google Scholar

  5. A. García, V. Feliu, and J. A. Somolinos, “Gauge based collision detection mechanism for a new three degree of freedom flexible robot,” in Proceedings of the 2001 (ICRA) IEEE International Conference on Robotics and Automation, pp. 3853–3858, Seoul, Republic of Korea, May 2001.

  6. http://www.electronicshub.org/automatic-washroom-light-switch/

Download 1.32 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling