กลับไปหน้ารวมไฟล์
automatic-light-19a203-en.md

Smart Lighting: Engineering for the Future

The Automatic Light project is a fundamental pillar of Smart Home Automation. In a world increasingly focused on "Human Welfare" and "Energy Efficiency," this project offers a simple but robust solution for reducing power consumption and increasing safety. By utilizing a light-sensitive sensor, your environment can automatically respond to the time of day—turning lights on as the sun sets and extinguishing them when natural light returns.

The Science of Sensing: The LDR Circuit

The heart of the build is the LDR (Light Dependent Resistor). This component changes its internal resistance based on the intensity of light falling on its surface:

  • The Voltage Divider: Because the Arduino can't measure resistance directly, we pair the LDR with a fixed 10k Ohm Resistor to create a "Voltage Divider." This translates the light intensity into a variable voltage that the Analog Pin (A0) can read as a value between $0$ and $1023$.
  • Hysteresis Tuning: The code includes a threshold (set to $900$ in this build). When the room gets dark and the sensor value drops below this mark, the Arduino triggers the lighting array.
  • Serial Feedback: The project utilizes the Serial Monitor at $9600$ baud, allowing you to observe the real-world light levels in your room and fine-tune your thresholds for different seasons or environments.

Multi-Output Actuation: Brightening your Space

Instead of a single weak light, this project utilizes four High-Brightness LEDs connected to pins $2, 3, 4,$ and $5$:

  1. Distributed Lighting: By spreading the LEDs, you can create a more "Ambient" lighting effect, suitable for nightlights or cabinet lighting.
  2. Logic Logic: Single digitalWrite commands simultaneously activate all four outputs, demonstrating how a single sensor can control an entire bank of devices.
  3. Low Power Footprint: The entire system can be powered from a laptop or a simple USB phone charger, making it a low-cost "Green Tech" addition to any room.

Designing the "Future" Look

While the prototype is built on a breadboard, the project encourages makers to experiment with the aesthetic. By using Translucent Plastics or 3D-printed diffusers, you can turn these simple red LEDs into a sleek, futuristic lamp. It is a perfect first project that provides immediate, practical results while teaching the core concepts of Analog-to-Digital Interfacing and Conditional Logic.

This project is 'just a future' step toward smart living. By using an LDR sensor to monitor ambient light, it automatically toggles four LEDs—turning on in the dark and off in the light. Simple, efficient, and a perfect entry into the Internet of Things.

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

title: "Automatic light"
description: "A smart, eco-friendly lighting system that uses photo-sensing technology to automate your environment."
author: "stt4236"
category: "Home & Automation"
tags:
  - "smart-home"
  - "energy-efficiency"
  - "sensors"
  - "sustainable-living"
  - "iot"
views: 2071
likes: 17
price: 435
difficulty: "Easy"
components:
  - "1x Arduino UNO"
  - "1x LDR (Light Dependent Resistor) Sensor"
  - "4x 5mm High-Brightness LEDs (Red recommended)"
  - "1x 10k Ohm Resistor (for voltage divider)"
  - "1x Half-size Breadboard"
  - "10x Jumper Wires (M/M)"
  - "1x USB Cable (Type A to B)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "30f2985ab95d96913e2a7cc9e55a16df119caef7111ac318a422bad434ce4808"
encryptedPayload: "U2FsdGVkX1+RohrbKRBkIVKxR8y1hW12hm5uxNBRcEw30vh7VdeNGY0ElT1yd4vYGOI2mvh6daSX0M0ApfL3b7pccJD75jsFc2l/4y7l0sc="
seoDescription: "Build your own Automatic Light with Arduino. Learn how to use an LDR sensor to create smart lighting that turns on at night and off during the day."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/automatic-light-19a203_cover.jpg"
lang: "en"