School Project|Security alarm Project|Arduino board|Top Project|PIR sensor|Coding|Tinkercad|By Navya

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • Learn coding using Tinkercad online simulator using Arduino board using PIR sensor and buzzer .
    Learn tinkercad www.tinkercad.com/
    A complete coding of this Security alarm Project is given below
    void setup()
    {
    pinMode(2, INPUT);
    Serial.begin(9600);
    pinMode(13, OUTPUT);
    }
    void loop()
    {
    Serial.println(digitalRead(2));
    if (digitalRead(2) == 1) {
    digitalWrite(13, HIGH);
    } else {
    digitalWrite(13, LOW);
    }
    delay(10); // Delay a little bit to improve simulation performance
    }
    For more School kids Project please subscribe to my TH-cam channel and comment
    For beginners to start an account in Tinkercad simulation
    please watch this video
    • Kids Learn Robotics us...
    Thanks & Regards
    Navya N
    Ethical World education

ความคิดเห็น • 21