Program 8 chan ESP32 relay card without USB

Hello!

I’d like to program such a relay card with integrated ESP32 which doesn’t have a USB port.
As I understand, I need to solder the headers to the board, use a serial to USB adapter - but then?

I guess it’s:
0O to GND
5V to 5V
RX to TX
TX to RX
GND to GND
Is that it to be able to start programming?

Is a UART to USB adapter (CH340G) the right one to use for connection?
Anyone who could just push me into the right direction?
I’m still a beginner.

Thanks a lot!

Do you have any documentation for that specific board?

All I got is the amazon product description:

One of the product pictures has the description how to program the thing :slight_smile:

1 Like

I use couple of these with ESPHome - no issues at all. CH340G should be ok.

1 Like

Hello again!

I just want to share that connecting the mentioned relay card with HA worked like a charm and I didn’t expect it to be that easy!

Maybe for others who are in the same situation, here’s what I did:

  1. I used the 8 chan relay card with integrated ESP32 WROOM chip
  2. I used a CH340G UART to TTL USB adapter
  3. I soldered the 6-pin header to the board
  4. I connected the card withe adapter as follows:
    RX to TX
    TX to RX
    GND to GND
  5. I connected 00I and GND with a jumper
  6. I powered the card with 12V (this specific card can handle 7-30V. Be careful what your card can handle)
  7. I connected the USB adapter to my HA-computer (a NUC in this case)
  8. I set up ESPHome in HA
  9. I opended ESPHome, added a new device and followed the installation steps. Very intuitive. But on youtube there’s a ton of videos explaining how to add a ESP32 to ESPhome
  10. Power off, power on, done!

And from here you can basically go into the programming of the card.

Visit this thread for more information about the pinout of the card and the code to control the relays:

Hope this helps someone :slight_smile: