Compiling and uploading the software part is probably easier than the assembly though there are still some caveats. We provide a compiled version of the software as a release, which you can upload as described in Upload release. If you still want to compile and upload yourself you need to make sure that you comply with the requirements as described in Compiling. If you already uploaded any release before you can follow the OTA section.
Uploading a pre-built binary aka release is probably the easiest option. There are two ways of doing so: The first installation needs to be done using USB. If you want to update the software you can upload it wirelessly as described in the OTA section.
- Download and unzip ESPEasyFlasher
- Download the latest release
- Place
code.ino.bin
inside theESPEasyFlasher
folder - Using a USB cable plug in the Christmas Tree to your PC
- Start/Execute ESPEasyFlasher
- Select the COM-Port of your ESP
- Select the firmware
.\code.ino.bin
- Press
Flash
- Enjoy your Christmas Tree
Alternatively (for example on Linux) you can use the esptool directly using python from the commandline. For this use the command:
python3 esptool.py --chip esp8266 --port <your port> --baud 460800 --before default_reset --after hard_reset write_flash 0x0 code.ino.bin
- Download the latest release
- Activate the AP mode of the Christmas Tree by holding down the button until the lowest/largest ring lights up (~3 seconds)
- Connect your phone/tablet/pc with the wifi network of the Christmas Tree
- The Christmas Tree will show up as
LED Christmas Tree AC12B35D67EF
(the last part will differ for you as it is the MAC address)
- The Christmas Tree will show up as
- Once connected your phone/tablet/pc should ask you to sign in (captive portal). On Android you will need to click on the popup on other devices (iOS, MacOS) the captive portal will open automatically. Once opened you are greeted with the OTA GUI.
- If the page for whatever reason does not open, open a webbrowser and enter
4.3.2.1/ota
- Press
Select file
and select the downloadedcode.ino.bin
. - Press
Upload
and wait until the browser displayscannot load webpage
- Enjoy your new Christmas Tree Features
Compiling the software yourself involves a custom setup of libraries and settings inside the Arduino IDE or VS Code.
- Download or Clone the repository
- To clone run
git clone [email protected]:enwi/LED-Christmas-Tree.git
orgit clone https://github.com/enwi/LED-Christmas-Tree.git
- To update the submodule run
git submodule update --init
- To clone run
- Make sure you have installed
- Arduino IDE version
1.8.13
or newer - ESP8266 Core exactly version
2.7.4
(background FastLED/FastLED#1322) - ArduinoJSON version
6.18.5
or newer - FastLED version
3.4.0
or newer - AceButton version
1.9.1
or newer - ESPAsyncTCP version
1.2.2
or newer - ESPAsyncWebServer version
1.2.3
or newer
- Arduino IDE version
- Open the project in Arduin0 IDE (or VSCode)
- Select Board
LOLIN(WEMOS) D1 R2 & mini
- Select CPU Frequency
160 MHz
(background no flickering) - Using a USB cable plug in the Christmas Tree to your PC
- Upload the software
- Enjoy your Christmas Tree