Posts

Build Your Own Home Security System Using a PIR Sensor, Buzzer, and LCD Display

Image
Build Your Own Home Security System Using a PIR Sensor, Buzzer, and LCD Display Security is a priority for everyone, and with modern technology, creating a custom home security system is more accessible than ever. In this blog, we will guide you through building a **simple yet powerful motion detection security system** using a **PIR sensor**, an **LED**, a **buzzer**, and a **20x4 I2C LCD** to display real-time motion alerts. This system can detect any motion in the designated area, alert you with both visual (LED) and auditory (buzzer) signals, and log the status on the LCD screen. Whether you're monitoring a room, an entrance, or a garage, this project provides a cost-effective way to improve your home's security. Why Use a PIR Sensor? A **PIR (Passive Infrared) sensor** is commonly used for detecting motion. It senses the infrared radiation emitted by humans and animals. When a warm body passes in front of the sensor, it detects this change and triggers the system. **Advant...

Temperature control fan using Arduino uno ||Arduino control fan

Arduino code #include <DHT.h> #define DHTPIN 2       // Digital pin connected to the DHT sensor #define DHTTYPE DHT11  // DHT 11 DHT dht(DHTPIN, DHTTYPE); // Motor driver connections #define MOTOR_PIN_1 3  // Motor driver input 1 #define MOTOR_PIN_2 4  // Motor driver input 2 void setup() {   Serial.begin(9600);   dht.begin();   // Motor driver pins setup   pinMode(MOTOR_PIN_1, OUTPUT);   pinMode(MOTOR_PIN_2, OUTPUT); } void loop() {   delay(2000);  // Delay between sensor readings   // Read temperature   float temperature = dht.readTemperature();   if (isnan(temperature)) {     Serial.println("Failed to read temperature from DHT sensor!");     return;   }   Serial.print("Temperature: ");   Serial.print(temperature);   Serial.println(" °C");   // Set fan speed based on temperature   int speed = temperature * 4; // Speed of motor = temperature in Ce...