{"id":22956775,"url":"https://github.com/roshho/mta-smart-table-lamp","last_synced_at":"2026-04-30T10:35:41.869Z","repository":{"id":267900938,"uuid":"902697989","full_name":"roshho/MTA-Smart-Table-Lamp","owner":"roshho","description":"Make your own MTA Table Lamp for much cheaper and adjustable whitebalance based on the sun using an ESP32!","archived":false,"fork":false,"pushed_at":"2024-12-13T05:20:26.000Z","size":19375,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-13T06:18:58.598Z","etag":null,"topics":["esp32","esp32-arduino","lamp","mta"],"latest_commit_sha":null,"homepage":"https://medium.com/@rh3210/mta-smart-lamp-finished-ish-ec61a18e0e4a","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/roshho.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}},"created_at":"2024-12-13T04:57:12.000Z","updated_at":"2024-12-13T05:20:29.000Z","dependencies_parsed_at":"2024-12-13T06:19:05.302Z","dependency_job_id":"bf51891f-3227-4dcc-9886-565ab87d3b4b","html_url":"https://github.com/roshho/MTA-Smart-Table-Lamp","commit_stats":null,"previous_names":["roshho/git-published-final-module"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshho%2FMTA-Smart-Table-Lamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshho%2FMTA-Smart-Table-Lamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshho%2FMTA-Smart-Table-Lamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roshho%2FMTA-Smart-Table-Lamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roshho","download_url":"https://codeload.github.com/roshho/MTA-Smart-Table-Lamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237679368,"owners_count":19349169,"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":["esp32","esp32-arduino","lamp","mta"],"created_at":"2024-12-14T17:11:41.377Z","updated_at":"2026-04-30T10:35:41.837Z","avatar_url":"https://github.com/roshho.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MTA Smart Table Lamp 🚊🏮\n## 🚀 About\nMake your own MTA Table Lamp for much cheaper and adjustable whitebalance based on the sun using an ESP32!\n\u003cp\u003e\n  \u003cimg src=\"media/demo.gif\" alt=\"lamp changing white balance and being switched on/off\" width=\"45%\" style=\"display: inline-block; margin-right: 10px;\" /\u003e\n  \u003cimg src=\"media/2.jpg\" alt=\"lamp from front\" width=\"45%\" style=\"display: inline-block;\" /\u003e\n\u003c/p\u003e\n\n## ⚙️ Hardware\n### 🖨️ 3D Models (CAD stl files)\n- The following thingiverse contains 3 STL files.\n    - ``mta-base-lid.stl`` can be printed with 15-30% infill. \n        - You could fill it with sand or metal BBs for weight. \n\t- ``mta-base.stl`` can be printed with 15-30% infill. \n        - This is where you will double side tape onto the central tower.\n\t- ``mta-lamp-shade.stl`` is where you will print in slow/delicate setting. You should set the wall thickness layer between 2-4.\n\n### 🪛 Hardwares involved\n- Neopixel hw160 or any rgb strip (but may require different transistors)\n- ESP32 (using Lilygo ESP32 TTGO in this case)\n- Breadboard\n- Male-to-male header cables\n- Button/SDPT switch\n\n### ᯤ Circuit diagram\n- Referring to the ``rgb_led_circuit.fzz`` or the following screenshot, route the hardware as shown above.\n\u003cimg src=\"media/circuits.png\" alt=\"circuit\" width=\"1000\" /\u003e\n\n## 🖥️ Software\n### 📝 Instructions\n- Lamp will change white balance based on the nautical twilights, civil twilights, sunrise/sunset, and solar noon. \n- Switch will turn the lamp on and off.\n\n### 📋 Instructions to run arduino code\n1) Using the [Arduino IDE](https://www.arduino.cc/en/software), open the respective ``.ino`` file\n2) Install [TTGO T-display driver](https://github.com/Xinyuan-LilyGO/TTGO-T-Display)\n3) Assign Arduino IDE port to the one that Lilygo TTGO is connected to\n4) Install TFT_eSPI library (display library)\n\t- Under Arduino IDE/tools/library_manager, search ``tft_espi``\n\t- Navigate to the library, e.g. Documents/Arduino/libraries/tft_espi\n\t- Open up the file Arduino/libraries/TFT_eSPI/User_Setup_Select.h\n\t- comment out the line ``#include \u003cUser_setup.h\u003e``\n\t- uncomment out the line include ``\u003cUser_Setups/Setup25_TTGO_T_Display.h\u003e\u003e``\n\t- note - commenting out means adding ``//`` in front of the line, to uncomment, remove ``//`` but don’t remove the ``#`` sign\n5) Install [Adafruit Neopixel](https://github.com/adafruit/Adafruit_NeoPixel) under ``Arduino IDE/Library Manager``\n6) Install [SPI](https://docs.arduino.cc/language-reference/en/functions/communication/SPI/) under ``Arduino IDE/Library Manager``\n7) Go to ``sunrise-sunset-n-current-time.ino`` and change the wifi name and password to your own wifi name and password.\n8) Compile and upload the code from the ``.ino`` to your Lilygo TTGO\n9) Money 💸💸💸\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froshho%2Fmta-smart-table-lamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froshho%2Fmta-smart-table-lamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froshho%2Fmta-smart-table-lamp/lists"}