Thursday, 13 April 2023

Flashing WLED to WT32-ETH01

The WT32-ETH01 is an ESP32 board that includes a 100Mb ethernet port. They usually cost around £15 in the UK and are great for driving pixel LEDs usng WLED and xLights over a LAN. Unlike WiFi, there's no bandwidth or latency issues.

They are relatively easy to flash to run WLED, but you'll need a USB to TTL adapter. I use an FT232 adapter by Moyina from Amazon (approx £10) with a switchable 3.3v/5.5v output.

The flash process is documented on the WLED Discourse group but I've summarised it here too.

First, download the the flash tools from Expressif. Unzip the download to a new folder and you should see something like flash_download_tool_x.y.z.exe.

You'll need the latest release WLED_0.xx.y_ESP32_Ethernet.bin and the bootloader file.
At the time of writing, esp32_bootloader_v4.bin was available as part of the 0.13.1 release.

Now connect up the WT32-ETH01 board to the USB adapter. Set the USB adapter to 5v and connect:

USB->ESP32
VCC -> 5v
GND -> GND
TXD -> RX0
RXD -> TX0

Be careful not to apply power to the LINK pin or reverse 5v/GND as they are close together.

Connect a jumper wire between GND and IO0 (next 2 pins after RX0) to put the ESP32 into programming mode. When plugged into a computer, both devices should power-up.


Now start the ESP32 flashing tool. Choose ESP32 and Develop mode.


In the first two boxes, click "..." and choose the bootloader bin and then repeat for the WLED bin. For the bootloader, put 0x0 after the @. Put 0x10000 after the WLED binary. Make sure both selections are ticked and the filenames appear in green. If they aren't selected, the tool won't flash the files.

Change SPI mode to DOUT.

Select the COM port that matches your USB to TTL adapter - it's a drop down so if nothing is shown make sure the drivers for your adapter are installed.

Click START and it should show the MAC addresses of the WT32-ETH01 board and begin flashing.


After the flash has completed you can remove the power, remove the link to IO0 and re-apply the power. WLED should start an access point that you can join with your mobile phone. At this point you may need to switch to a different 5v supply as some USB adapters can't supply enough power to configure the 100Mb ethernet connection.

No comments:

Post a Comment

Heltec v3 and Wireless Tracker poor Bluetooth

The Heltec LoRa32 v3 and Wireless Tracker both seem to suffer from a limited Bluetooth range. In my experience unless you are in the same r...