{"id":27921555,"url":"https://github.com/amarnath718/automatic-room-light-controller","last_synced_at":"2026-04-24T16:04:10.265Z","repository":{"id":289328470,"uuid":"970873671","full_name":"Amarnath718/Automatic-room-light-controller","owner":"Amarnath718","description":"An automatic room light controller with people counter. Using arduino, counts the number of people in the room, with the help of IR sensor, turns an AC - DC LED bulb ON only when at least when one person is in the room. Count displayed on OLED display and serial monitor.","archived":false,"fork":false,"pushed_at":"2025-05-03T13:36:37.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T21:52:14.279Z","etag":null,"topics":["arduino","arduino-uno","electronics","embedded","ir-sensors","oled-display-ssd1306","project"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amarnath718.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-04-22T17:03:03.000Z","updated_at":"2025-05-03T13:36:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"28f327b9-f5da-4890-88ff-6657cd0e020b","html_url":"https://github.com/Amarnath718/Automatic-room-light-controller","commit_stats":null,"previous_names":["amarnath718/automatic-room-light-controller"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Amarnath718/Automatic-room-light-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarnath718%2FAutomatic-room-light-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarnath718%2FAutomatic-room-light-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarnath718%2FAutomatic-room-light-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarnath718%2FAutomatic-room-light-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amarnath718","download_url":"https://codeload.github.com/Amarnath718/Automatic-room-light-controller/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarnath718%2FAutomatic-room-light-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","arduino-uno","electronics","embedded","ir-sensors","oled-display-ssd1306","project"],"created_at":"2025-05-06T21:51:17.268Z","updated_at":"2026-04-24T16:04:10.260Z","avatar_url":"https://github.com/Amarnath718.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💡💡Automatic room light controller with people counter (For single entry/exit)💡💡\n## ⚙️ Components required\n*  Arduino Uno (1) - Main controller\n*  IR sensors (2) - One close to the entry and one slightly inside room\n*  Relay module (1) - To turn on and off the AC LED bulb on trigger from arduino\n*  AC-DC 12W LED Bulb - To be connected to AC power supply via relay module\n*  Connection wires - For AC Current supply\n*  0.96 inch I2C OLED Display (1) - To display the count (Number of people in room) \n*  Breadboard (1)\n*  Jumper wires \n\n## 🔗Connections\n## IR Sensor 1 (Entry sensor)\n* VCC --\u003e 5V \n* Ground --\u003e Gnd pin\n* Out --\u003e digital pin 2\n## IR sensor 2 (Exit sensor)\n* VCC --\u003e 5V\n* Ground --\u003e Gnd pin\n* Out --\u003e digital pin 3\n## 5V 1 channel Relay module (Normally open config.)\n* VCC --\u003e 5V\n* Ground --\u003e Gnd pin\n* In --\u003e digital pin 7\n## OLED Display \n* VCC --\u003e 5V\n* Ground --\u003e Gnd pin\n* SDA --\u003e A4\n* SCL --\u003e A5\n       \n## ⚙️⚙️ How it works:\nWhen a person enters, IR sensor 1 (Entrance sensor) is triggerred, indicating person entered the room, Count goes from 0 to 1 in OLED display as well as in serial monitor, thus the\nbulb turns ON. As people enters, count increases. When person exits the room, IR sensor 2 triggers, hence count decreases. The bulb turns off only when no people are in the room, i.e, when\ncount = 0.Since both sensors are placed a little close to each other (Both inside the room), a delay is set between two sensors in such a way that when one sensor activates (Entrance),\nthe other (Exit) one remains deactivated for a very small instance of time, preventing from simultaneous change in the count and false triggers.\n       \n* ⭕Note 1: Here, the two IR sensors are placed 3.5 cm apart from each other. If distance is to be varied in different cases, try changing the delay in the code for precise count control.\n* ⭕ Additional libraries required: Adafruit GFX Library, Adafruit SSD1306 (Both for OLED Display).\n        \n\n\n       \n       \n       \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarnath718%2Fautomatic-room-light-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famarnath718%2Fautomatic-room-light-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarnath718%2Fautomatic-room-light-controller/lists"}