PIR Motion Sensor and16x2 I2C LCD Display with Arduino | English Subtitle

  Рет қаралды 775

DoIt.20

DoIt.20

6 ай бұрын

If you need arduino based codes for your project or help about electronics, please contact me on fiverr: www.fiverr.com/s/0bDwy8A
PIR Motion Sensor and16x2 I2C LCD Display with Arduino | English Subtitle
#robot #robotics #engineering #education #educational #school #college #learning #code #coading #diy
Code : code is on the comment below.
Facebook : / doit20-104218935882053
Please Subscribe my Channel. ThankYou!

Пікірлер: 3
@doit.20
@doit.20 6 ай бұрын
#include #include int pirSensorPin = 2; int ledPin = 13; LiquidCrystal_I2C lcd(0x27, 16, 2); void setup() { pinMode(pirSensorPin, INPUT); pinMode(ledPin, OUTPUT); lcd.init(); // initialize the LCD lcd.backlight(); lcd.setCursor(0, 0); lcd.print(" PIR "); lcd.setCursor(0, 1); lcd.print(" Motion Sensor "); delay(3000); lcd.clear(); Serial.begin(9600); } void loop() { int pirValue = digitalRead(pirSensorPin); if (pirValue == HIGH) { digitalWrite(ledPin, HIGH); lcd.clear(); lcd.setCursor(0, 0); lcd.print("Motion detected!"); Serial.println("Motion detected!"); } else { digitalWrite(ledPin, LOW); lcd.clear(); lcd.setCursor(0, 0); lcd.print(" No motion "); lcd.setCursor(0, 1); lcd.print(" detected! "); } delay(1000); }
@pechitashouse4778
@pechitashouse4778 6 ай бұрын
what if I dont have a motion sensor, or at least one that looks like that can anything else work
@doit.20
@doit.20 6 ай бұрын
@@pechitashouse4778 yes connecting pin2 to 5v should trigger the alarm.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,3 МЛН
How to use an i2c LCD display with arduino - including library install
18:58
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,6 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
How to use a PIR SENSOR to detect motion
4:36
Garage Geek Guy
Рет қаралды 12 М.
Arduino pir sensor led and buzzer code | pir motion sensor projects
3:52
Mr ProjectsoPedia
Рет қаралды 91 М.