DIY Reminder Using PIR Sensor and LCD
by 21guerra5635 in Circuits > Arduino
252 Views, 1 Favorites, 0 Comments
DIY Reminder Using PIR Sensor and LCD
Have you ever forgot something because you were in too much of a hurry?
Then this project is the project for you because this easy DIY will help by reminding you if you have forgotten something and making sure that it's not too late.
Step 1: Gather the Materials
All these materials can be easily found in an electronics shop.
1. Arduino Uno
2. PIR sensor
3. LCD display
4. resistors
5. wiring
6. breadboard
Step 2: Introduction
This project is a DIY to solve a first world problem that has affected someone at least once in their life. That is forgetting something when you are going out in your car and then remembering once you have already left your house. This project uses a sensor, that you would put outside your front door or outside your bedroom door to remind you if you forgot anything that you needed to bring.
Step 3: Make Connections
There are very few connections just look at the connections on the image above.
Can be done on tinkercad.
Step 4: the Code
Attach the following code to the Arduino on your computer.
#include LiquidCrystal
lcd(12,11,5,4,3,2);
void setup() {
Serial.begin(9600);
lcd.begin(16,2);
pinMode(8,INPUT);
}
void loop() {
int a = digitalRead(8);
Serial.println(a);
if(a==1)
{
lcd.setCursor(0,0);
lcd.print("Did you forget");
lcd.setCursor(0,1);
lcd.print("anything?");
delay(2000);
lcd.clear();
}
else {
}
}