https://github.com/matesoft2033/signal-detection-lcd
An Arduino project using Adafruit LCD to display system status based on signal input.
https://github.com/matesoft2033/signal-detection-lcd
arduino-programming embedded-systems lcd-display pir-sensor ultrasonic-sensor
Last synced: 4 months ago
JSON representation
An Arduino project using Adafruit LCD to display system status based on signal input.
- Host: GitHub
- URL: https://github.com/matesoft2033/signal-detection-lcd
- Owner: matesoft2033
- Created: 2025-02-08T19:28:53.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-08T19:59:13.000Z (5 months ago)
- Last Synced: 2025-02-08T20:28:20.370Z (5 months ago)
- Topics: arduino-programming, embedded-systems, lcd-display, pir-sensor, ultrasonic-sensor
- Language: C++
- Homepage: https://www.tinkercad.com/things/3joX91VP9AS-lcd-ipr-and-piezo?sharecode=lEEG7kYPQ0_kl7-CPF_PBfpeMoTCeVGT43g9hkbGiik
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π¨ LCD Security Alert System
An Arduino-powered **security alert system** that uses an **Adafruit LCD display** to show status messages based on a detected signal. It includes **LED alerts** to indicate warnings.
## πΈ Circuit Diagram
Hereβs the circuit setup for this project:
## π§ Features
β **Real-time status display** using `Adafruit_LiquidCrystal`
β **Signal detection** using a digital sensor
β **Alert system** with LED blinking
β **Automatic LCD updates**## π Components Used
- **Arduino Board** (Uno/Nano)
- **Adafruit LCD Display**
- **LED** (for alert system)
- **Resistors & jumper wires**
- **PIR sensor**## π How It Works
1. **Connect the Circuit**: Follow the diagram above.
2. **Upload the Code**: Load `lcd_alert.ino` to your Arduino.
3. **Power On**:
- If a signal is detected, the LCD displays **"Unidentified"**, and the LED blinks.
- If no signal is detected, the LCD displays **"All Fine"**, and the LED turns off.## π Code
```cpp
#includeAdafruit_LiquidCrystal lcd(0);
int signal;
void setup() {
pinMode(2, OUTPUT);
pinMode(3, INPUT);
pinMode(4, OUTPUT);
pinMode(6, OUTPUT);
lcd.begin(16,2);
}void loop() {
signal = digitalRead(3);
if (signal == 1) {
digitalWrite(6, LOW);
digitalWrite(2, HIGH);
lcd.setCursor(2,0);
lcd.print("Unidentified");
for (int i = 0; i < 10; i++) {
digitalWrite(4, HIGH);
delay(100);
digitalWrite(4, LOW);
delay(100);
}
} else {
digitalWrite(2, LOW);
digitalWrite(4, LOW);
digitalWrite(6, HIGH);
lcd.clear();
lcd.setCursor(2,0);
lcd.print("All Fine");
}
}