ESP32 WT32-ETH01 - Flashing via TTL-USB adapter failing

Hey together,

I’m trying to install the Somfy RTS controller from this GitHub to an ESP32 with Ethernet. Since the board has no USB connector, I’m using a TTL-USB adapter for the connection to my computer. But it’s always throwing an error message in the various flashing tools. I’m very new to that area, never have implemented something with Arduino/ESP. But regarding the GitHub Readme it should be very straight forward.

I connected the adapter to my ESP following this guide.

Here are some pictures of the connection:

The USB adapter is connected via COM7:
device manager

I’m using the SomfyController.onboard.esp32.bin.zip from the releases page.

Trying the ESPhome Web tool, I’m getting the following error (after some minutes of “connecting”):

esphome web error

There is one red LED on the ESP board and one on the USB adapter. 2 LED’s at the USB board are flashing. I can’t find any boot button.

When using the flash download tool (using the settings from the GitHub repo, ChipType ESP32-D2WD, WorkMode Develop) there is no progress after clicking on start, only some dot’s appearing in the console:

Using the ESPhome-flasher, I’m getting the following error:

I’ve tried the following:

  1. Using 3V3 instead of 5V (I’ve also switched the Jumper in that case)
  2. Swapped RX and TX
  3. Connected to TXD and RXD instead of TX0 and RX0
  4. Using different GND pins

Nothing helped…

I’m using the following devices:

Do you have any idea on how to solve that issue? I would be very happy for any help here :frowning:

BR

You should be connecting to the 3v3 on the ESP32 and the 3v3 on the adapter. From what I can tell on the adapter the jumper should be set to 3v3 and the 5v tap should not be connected.

After that the RXD on the adapter should connect to TXD on the esp32 and the TXD on the adapter should connect to the RXD on the esp32. Of course the GND on the adapter should connect to the GND on the esp32. Finally, jumper IO0 to GND on the ESP32 and power up the board. It should now be in UART firmware mode.

Once you have flashed you will need to remove the jumper from IO0 and it should now run the bootloader from the correct location. Use web.ESPHome.io as it is the most user friendly.

Thanks for your response.

I’ve now connected:
GND → GND
3V3 → 3V3
RxD → TxD
TxD → RxD

And I’ve switched the jumper on the adapter to 3V3 → S1.
The jumper on the ESP32 is still on IO0 → GND.

The result of ESPHome Web, ESP Flash Download Tool and ESP HomeFlaser is still the same :frowning:

But I’ve seen, that now a small LED at the ESP32 is flashing synchronously to the red LED at the adapter (next to the RxD pin on the ESP32).

Are you sure, that it needs to be connected to RxD/TxD instead of Rx0 and Tx0? All the tutorials show it the other way: e.g., WT32-ETH01 (LAN+WiFi) (Flash Tutorial) - Hardware - WLED

It is the two pins on the upper right of the board with the ESP32 chip facing upward. These are labeled sometimes as RX0 and TX0. There is some confusion with the RS485 port on some boards. These too are sometimes labeled RXD and TXD since they are uart pins.

Okay, then it’s the RX0 and TX0 for me (there are still two other pins with RXD and TXD, but they are on the middle left of the board).

But still the same errors.

Yes I believe that is connected to the RS485 uart.

I have now ordered a Wifi based ESP32 board (this one).
Now, everything is working like a charm, except of one thing: The whole board is only working while connected via USB cable with my PC. As soon as I switch to a PSU, it’s not working anymore (It’s not connecting to Router, only time to time, but only for seconds. AP mode works well).
I’ve tried around 11 different chargers (smartphone chargers, Anker PSUs, Raspberry Pi chargers, camera chargers).

I’ve also installed WLED for a quick test, and that one worked with one of my Raspberry Pi Chargers. I then flashed it back to the SomfyRTS package. AP mode again worked well, but as soon as I connect it to the router, it’s not working anymore (even with the same power supply, which worked for WLED). It’s again only working when connected to my computer.

Do you have any idea, where this is coming from?

After flashing the firmware did you remove power then the jumper on IO0 → GND and let the device boot? Also, at that point you need to switch to the 5v pin on the ESP32 for that external power supply. Only do this with the power completely disconnected. You also should not have the ethernet cable attached when initially flashing as there is no protection over the ethernet pins.

It’s not the ethernet board anymore. It’s now a default wireless board with an USB module attached. So I haven’t had a jumper on it while flashing.

True.
Chapeau.

Update: It’s not the PC connection, it’s the USB C Hub connection which makes it work. I’ve disconnected my Notebook from the Docking station but the ESP board still works (HP G5 Docking station).

While directly connected to my desktop PC it’s also not working.

Any ideas? Is my board broken?

The WT32-ETH01 does not have a USB port. How are you connecting to the USB C Hub? If you have connected both 5v and 3v3 at the same time then you have likely damaged the board.

No it’s NOT the WT32-ETH01 board anymore. I ordered a wirleless board from AZdelivery. It’s an ESP-WROOM-32 board. This one has an USB port.

Did you flash it with the SomfyController.onboard.esp32.bin file extracted from the zip for release v2.3.0?

Yes exactly:

Ok now I am up to speed. With the radio disconnected, is the esp32 stable? The power requirements for ESP32 are very low.

No, unfortunately it does not matter whether the CC1101 module is connected or not.

That is very odd. Am I reading this correctly that when it is plugged into a powered hub it works fine but when you connect it to a power adapter it does not.

Yes, thats the issue… I have absolutely no idea, where this is coming from…

Do you know how much power the board needs? Would be 5V/3A enough in normal conditions?

3A is waaay more than enough. Peak power draw is closer to around 500mA when transmitting wifi.