{"id":26749366,"url":"https://github.com/pythonicforge/smart-home-automation","last_synced_at":"2025-03-28T11:18:54.855Z","repository":{"id":281809263,"uuid":"946489803","full_name":"pythonicforge/Smart-Home-Automation","owner":"pythonicforge","description":"A Smart Home Automation system using an LDR and a TMP36 sensor to control an LED and a fan based on light and temperature conditions.","archived":false,"fork":false,"pushed_at":"2025-03-12T06:01:36.000Z","size":298,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T11:18:47.916Z","etag":null,"topics":["arduino","led-controller","photoresistor","smarthome","tmp36"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonicforge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-11T08:13:54.000Z","updated_at":"2025-03-12T06:01:40.000Z","dependencies_parsed_at":"2025-03-12T07:45:18.843Z","dependency_job_id":null,"html_url":"https://github.com/pythonicforge/Smart-Home-Automation","commit_stats":null,"previous_names":["pythonicforge/smart-home-automation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FSmart-Home-Automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FSmart-Home-Automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FSmart-Home-Automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicforge%2FSmart-Home-Automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonicforge","download_url":"https://codeload.github.com/pythonicforge/Smart-Home-Automation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017724,"owners_count":20710240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","led-controller","photoresistor","smarthome","tmp36"],"created_at":"2025-03-28T11:18:53.030Z","updated_at":"2025-03-28T11:18:54.846Z","avatar_url":"https://github.com/pythonicforge.png","language":"C++","readme":"# 🌟 _Smart Home Automation with LDR, Temperature Sensor \u0026 LCD Display_  \n\nThis project showcases a **Smart Home Automation System** using an **LDR (Light Dependent Resistor), TMP36 Temperature Sensor, and a 16x2 I2C LCD Display** to control an **LED (automatic night lighting), a fan (temperature-based cooling), and display real-time sensor readings.**  \n\n### 🚀 Features  \n✅ **Automatic night light** using an LDR  \n✅ **Temperature-based fan control** with a TMP36 sensor  \n✅ **Live sensor readings displayed on a 16x2 LCD**  \n✅ **Real-time debugging via Serial Monitor**  \n✅ Adjustable threshold values for **customization**  \n\n### 🔧 Components Used  \n- **LDR (Photoresistor)** – Detects ambient light levels  \n- **TMP36 Temperature Sensor** – Measures surrounding temperature  \n- **16x2 I2C LCD Display** – Shows live sensor readings  \n- **LED** – Turns on when it’s dark  \n- **Fan (Motor)** – Activates when temperature crosses a set threshold  \n- **Arduino UNO R3** – Microcontroller to process inputs and control outputs  \n- **Resistors \u0026 Wires** – For circuit connections  \n- **I2C Module** – Enables LCD communication with fewer pins  \n\n### 📜 Code Explanation  \n- Reads **LDR \u0026 temperature sensor values** using `analogRead()`  \n- Maps \u0026 processes sensor values for **LED \u0026 Fan control**  \n- Displays sensor data on **LCD using I2C communication**  \n- Uses **digitalWrite()** to toggle LED \u0026 Fan based on thresholds  \n- Outputs real-time readings via **Serial Monitor**  \n\n### 🔌 Circuit Connections  \n| Component | Arduino Pin |\n|-----------|------------|\n| LDR       | A0         |\n| TMP36     | A1         |\n| LED       | 9          |\n| Fan       | 5          |\n| LCD (SDA) | A4         |\n| LCD (SCL) | A5         |\n\n### 📺 LCD Display Output  \nThe **16x2 LCD screen** will display:  \n```\nTemp: 26.4°C   \nLight: 540 LUX  \n```\n\n### 🎯 How to Use  \n1. **Upload the code** to your Arduino  \n2. Adjust **lightThreshold** \u0026 **tempThreshold** if needed  \n3. Open **Serial Monitor** for debugging  \n4. **Observe** the LCD displaying real-time sensor values  \n5. Watch the **LED \u0026 Fan operate automatically** based on environmental conditions  \n\n### 📸 Simulation  \nThis project was built and tested in **TinkerCAD**. View or modify the simulation here:  \n[🔗 TinkerCAD Link](https://www.tinkercad.com/things/1syJ0ihAiga-smart-light-and-fan-automation?sharecode=nxrHhSjw3-JQ8oMcYJHdpOPWFktW9LUOS0673Uy2-4E)  \n\n## 📌 Future Improvements  \n- **Add a DHT11 sensor** for humidity monitoring  \n- **Integrate IoT connectivity** for remote monitoring \u0026 control  \n- **Use relay modules** for real-world appliance control  \n- **Upgrade LCD to an OLED display** for better readability  \n\u003cbr/\u003e\n\n\u003cbr/\u003e\n\u003cp align=\"center\"\u003e\n\u003ci\u003eMade with ❤️ by Hardik Jaiswal\u003c/i\u003e \u003cbr\u003e\n\u003ci\u003eExploring Embedded Systems \u0026 Smart Automation! 🚀\u003c/i\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicforge%2Fsmart-home-automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonicforge%2Fsmart-home-automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicforge%2Fsmart-home-automation/lists"}