Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roshho/mta-smart-table-lamp

Make your own MTA Table Lamp for much cheaper and adjustable whitebalance based on the sun using an ESP32!
https://github.com/roshho/mta-smart-table-lamp

esp32 esp32-arduino lamp mta

Last synced: about 2 months ago
JSON representation

Make your own MTA Table Lamp for much cheaper and adjustable whitebalance based on the sun using an ESP32!

Awesome Lists containing this project

README

        

# MTA Smart Table Lamp ๐ŸšŠ๐Ÿฎ
## ๐Ÿš€ About
Make your own MTA Table Lamp for much cheaper and adjustable whitebalance based on the sun using an ESP32!


lamp changing white balance and being switched on/off
lamp from front

## โš™๏ธ Hardware
### ๐Ÿ–จ๏ธ 3D Models (CAD stl files)
- The following thingiverse contains 3 STL files.
- ``mta-base-lid.stl`` can be printed with 15-30% infill.
- You could fill it with sand or metal BBs for weight.
- ``mta-base.stl`` can be printed with 15-30% infill.
- This is where you will double side tape onto the central tower.
- ``mta-lamp-shade.stl`` is where you will print in slow/delicate setting. You should set the wall thickness layer between 2-4.

### ๐Ÿช› Hardwares involved
- Neopixel hw160 or any rgb strip (but may require different transistors)
- ESP32 (using Lilygo ESP32 TTGO in this case)
- Breadboard
- Male-to-male header cables
- Button/SDPT switch

### แฏค Circuit diagram
- Referring to the ``rgb_led_circuit.fzz`` or the following screenshot, route the hardware as shown above.
circuit

## ๐Ÿ–ฅ๏ธ Software
### ๐Ÿ“ Instructions
- Lamp will change white balance based on the nautical twilights, civil twilights, sunrise/sunset, and solar noon.
- Switch will turn the lamp on and off.

### ๐Ÿ“‹ Instructions to run arduino code
1) Using the [Arduino IDE](https://www.arduino.cc/en/software), open the respective ``.ino`` file
2) Install [TTGO T-display driver](https://github.com/Xinyuan-LilyGO/TTGO-T-Display)
3) Assign Arduino IDE port to the one that Lilygo TTGO is connected to
4) Install TFT_eSPI library (display library)
- Under Arduino IDE/tools/library_manager, search ``tft_espi``
- Navigate to the library, e.g. Documents/Arduino/libraries/tft_espi
- Open up the file Arduino/libraries/TFT_eSPI/User_Setup_Select.h
- comment out the line ``#include ``
- uncomment out the line include ``>``
- note - commenting out means adding ``//`` in front of the line, to uncomment, remove ``//`` but donโ€™t remove the ``#`` sign
5) Install [Adafruit Neopixel](https://github.com/adafruit/Adafruit_NeoPixel) under ``Arduino IDE/Library Manager``
6) Install [SPI](https://docs.arduino.cc/language-reference/en/functions/communication/SPI/) under ``Arduino IDE/Library Manager``
7) Go to ``sunrise-sunset-n-current-time.ino`` and change the wifi name and password to your own wifi name and password.
8) Compile and upload the code from the ``.ino`` to your Lilygo TTGO
9) Money ๐Ÿ’ธ๐Ÿ’ธ๐Ÿ’ธ