I’m trying to flash an 8 relay board marked ESP12F_Relay_X8_V1.1 (303ESP12F06) for use with ESPHome. I didn’t get it here, but this looks identical in terms of layout etc: Amazon
I’ve attached TX0 on the relay board to RX on an FT232 to AZDelivery USB-TTL adapter; the relay board RX0 goes to the TX pin on the TTL device. Gnd is connected to Gnd. I have shorted the IO0 and Gnd on the relay board. The relay board is fed with a 24V supply. The 5V jumper is selected on the TTL device. The USB-TTL device is connected to a USB port on my Windows machine.
I’m trying to flash the relay board using the ESPHome addon to HomeAssistant. When selecting New Device, it offers two potential connections. COM1 Serial and USB3. It doesn’t matter which I select, it always fails to initialise.
Has anyone else had any luck flashing these relay boards?
I have similar trouble with this board. I have tried two different PL2303 TTL-USB adapters on two different computers but it fail to connect to the board, using the Arduino IDE.
I have now ordered CP2102 microusb to serial adapter to test with this board.
However, as an alternative solution for my need I do have a NodeMCU card hooked up to a 8 channel solidstate relay module board. That is working well, but I was thinking it might be more elegant with this all-in-one board.
I have connected the relay board as instructed, putting the IO0 to GND to enter flash mode. The board came pre-programmed with some sort of a relay-test program that make the relays operate rapidly in sequence non stop as soon as power is connected. I am not sure how the board is suposed to act when flash mode is enabled, but I did expect it to halt the program when in flash mode. This board contiunues its program even in flash mode.
I have this board and flashed it with esphome. One thing to make sure is that you pull io0 to gnd before you connect power. When you do it that way it should not run the sequential relay program and should be in flashing mode.
I managed to connect to the board now. It turned out I had a bad GND connector, so tha board never got into flash mode.
Note that the serial monitor needs to be set to 74880 baud in order to read data without just getting garbage in the monitor.
Now, it will output this when in flash mode:
ets Jan 8 2013,rst cause:2, boot mode:(1,7)
But whatever I flash into the board, it does not seem to work. Using Arduino IDE.
I did try various example code but I always only get output like this in the serial monitor after a reset:
I have the esp12f_relay_x1_v1.2, and managed to configured it without problems. Here are the steps i took:
1. connect jumper to GND and Io0
2. connect USB to TTL FT232RL to board: GND to GND, RX to TX, TX to RX, VCC to VCC
3. connect USB to computer. the relais should be silent
3a. remove jumper
4. open home assistant ESPHOME
5. create new device
6. install software, wait several minutes until done
7. disconnect and reconnect USB from computer
8. have ESPHOME discover new device
9. done.