|
Raimov Jamshid ning
|
tarix | 07.01.2024 | ölçüsü | 10,47 Kb. | | #209916 |
| Jamshid o\'r.t 3-ish
MUHAMMAD AL-XORAZMIY NOMIDAGI TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI
Raimov Jamshid ning o'rnatilgan tizimlar
fanidan 3-topshirig’i
amaliy topshiriq
Tinkercad.com virtual laboratoriya yordamida PIR motion sensor ni ishlatish, Arduino kit yordamida PIR sensor harakat sezganda LED ni yonsin, harakat sezmaganda o‘chsin
Sxema kodi:
void setup()
{
pinMode(2, INPUT);
pinMode(3,OUTPUT);
}
void loop()
{
digitalWrite(3, LOW);
int read=digitalRead(2);
if(read == HIGH)
{
digitalWrite(3,HIGH);
delay(1000);
}
delay(1000);
}
Tirkercad da havolasi:
https://www.tinkercad.com/things/2QpUiRGrW9i-jamshid-led-pir-harakat-sensori
Dostları ilə paylaş: |
|
|