/esp_led_lamp

A beautiful LED strip/matrix home ambient light

Primary LanguageC++GNU General Public License v3.0GPL-3.0

ESP LED LAMP

Beautifull ambient lighting for LED strips and matrices.

Animation

Application UI

UI Light UI Dark

Instruction for PWA installation (Web as Application)

For Android:

  1. Open Chrome.
  2. Navigate to http://esp_lamp.local.
  3. Tap "Add to Home screen."

For iOS:

  1. Open Safari.
  2. Navigate to http://esp_lamp.local.
  3. Tap the "Share" button.
  4. Select "Add to Home Screen."

Configuration

Customize the application for your specific settings by editing src/constants.h.

  • WIFI_MODE (0 - AP mode, 1 - STA mode)
  • WIFI_SSID and WIFI_PASSWORD
  • TIME_ZONE (hour offset for correct work of Night Mode)
  • MDNS_NAME (mDNS for local network, default address http://esp_lamp.local)
  • LED_PIN and LED_TYPE for your LED strip/matrix configuration
  • WIDTH and HEIGHT for your configuration (count of LEDs for vertical and horizontal)
  • MATRIX_VOLTAGE and CURRENT_LIMIT for your specific power supply

Firmware Installation

Prerequisites

Ensure the following are installed:

  1. PlatformIO
  2. Node.js

Uploading Firmware

For uploading the firmware, execute the following commands:

  • For wire USB upload:
pio run -e release
  • For OTA upload with default address (esp_lamp.local):
pio run -e ota -t upload
  • For OTA upload with a custom address:
pio run -e ota -t upload --upload-port esp_lamp_2.local

Uploading File System

To upload the file system, follow these steps:

  1. Make the upload_fs.sh script executable:
chmod +x ./upload_fs.sh
  • For automatically building the WebUI and uploading it using OTA with the default address (MacOS, *nix):
OTA=1 ./upload_fs.sh
  • For uploading OTA with a custom address:
OTA=1 ./upload_fs.sh --upload-port esp_lamp_2.local
  • For Windows users use manual build:
  1. Build WebUI:
cd ./www
npm run build
cd ..
  1. Upload the file system using OTA:
pio run -t uploadfs -e ota