กลับไปหน้ารวมไฟล์
room-automation-ed91e6-en.md
The tutorial video don`t forget to subscribe!!!!!

My project is about room automation, which means that it will light up your room as programmed. I decided to make this project because I needed an idea for a school project. This system has an LDR module so if there's light in your room it won't light up any more lights.

Project Perspective

Room automation is a fundamental and innovative smart home project. By focusing on the essential building blocks—a PIR motion sensor and an LDR light sensor—you'll learn how to automate your room's lighting using specialized software logic and a robust hardware setup.

Technical Implementation: Sensors and Motion

The project reveals the hidden layers of simple motion-to-light automation:

  • Identification layer: The PIR Motion Sensor acts as the high-resolution eye of your project, detecting invisible infrared (IR) heat movement from your user within a 7-meter range.
  • Sensing layer: The LDR (Photoresistor) acts as your analog light sensor, measuring the surrounding brightness and converting it into a proportional 0-5V signal (0-1023).
  • Communication layer: The Arduino code follows a specialized "multi-threshold" strategy: it only turns "ON" the lights if both a motion is detected AND the room is "Dark."
  • Actuation layer: A 5V Relay Module (or simply an LED for testing) acts as the physical tool, switching on your 110/220V home lighting securely.
  • Timing Logic layer: The Arduino follows a specialized "auto-off" strategy: it requests and performs a 30-second delay before turning the lights "OFF" if no more motion is detected.

Hardware Infrastructure

  • Arduino Uno: The "brain" of the project, managing the PIR and LDR sensor inputs and coordinating the relay output tasks.
  • PIR Motion Sensor: Providing contactless and reliable motion monitoring for your user's movements.
  • LDR (Photoresistor): Providing analog light detection for your smart light settings.
  • 5V Relay Module: Effectively handles the high current and power required to drive your home light bulb while protecting the Arduino.
  • Micro-USB Cable: Used to program the Arduino directly from your computer for power and code.
  • Jumper Wires: Connect all of your pins between the Arduino, sensors, and the relay module.

Access and Interaction Step-by-Step

The room automation process is designed to be very efficient:

  1. Initialize Hardware: Correctly seat the PIR and LDR sensors on your breadboard following the provided diagram.
  2. Setup Output Sync: In the setup() function, define the PIR pin as INPUT and the relay pin as OUTPUT.
  3. Execution Loop: When your user enters a dark room, the Arduino triggers the relay and turns "ON" the lights in real-time.
  4. Visual Feedback Integration: Watch as your room automatically lights up, with a celebrating buzzer or LED sound for each successful check.

Future Expansion

  • OLED Status Dashboard Integration: Add a small OLED display inside your room to show the current "Lux Level" and your "Motion Status" (Active/Idle).
  • Multi-sensor Climate Sync Synchronization: Connect several more sensors (e.g., DHT11 for temperature or MQ-2 for gas) to build a truly "Smart" autonomous room controller.
  • Cloud Interface Registration Support Synchronization: Add a WiFi module (ESP8266/ESP32) and link to a cloud dashboard to precisely control and track your room usage from your smartphone wirelessly over WiFi.
  • Advanced Velocity Profile Customization Support: Add a small slider or potentiometer to manually adjust your "Light Threshold" or your "Off Delay" (seconds) for your automatic lights.

Room automation is a perfect project for any electronics enthusiast looking for a more interactive and engaging smart house tool!

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
author: "shassandanish1"
category: "Home & Automation"
components:
  - "1x Arduino UNO"
  - "1x PIR Motion Sensor"
  - "1x LDR (Photoresistor)"
  - "1x 5V Relay Module or LED"
  - "1x 10k ohm Resistor (for LDR)"
  - "1x Breadboard (generic)"
  - "10x Jumper wires (generic)"
  - "1x Micro-USB Cable"
description: "A fun and simple project to automatically light up your room using a PIR motion sensor and an LDR light sensor with an Arduino."
difficulty: "Easy"
documentationLinks: []
downloadableFiles:
  - "https://projects.arduinocontent.cc/6e383498-8253-45e3-962a-766591bceac7.ino"
encryptedPayload: "U2FsdGVkX18NWACnzC9d3dcWg4Y3D3RjDsppjyE3rgdIbviOm/mfDuXzCwMeF+hLv/crVtAUQP6VdODvX7xG4imvuQBe+FZ+4lh4Xy/viUI="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/room-automation-ed91e6_cover.jpg"
lang: "en"
likes: 0
passwordHash: "443b0a9b72dc87662f30765077fdce6abe7d73efcd99b08d415542b74b1c2624"
price: 1499
seoDescription: "An intuitive and simple automatic room lighting system for beginners interested in Arduino smart home and PIR-to-LDR sensor projects."
tags:
  - "room-automation"
  - "pir-motion"
  - "ldr"
  - "smart-home"
  - "arduino"
  - "beginners"
title: "Room automation"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/euX4764xhVE"
views: 1164