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.
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:
I used the 8 chan relay card with integrated ESP32 WROOM chip
I used a CH340G UART to TTL USB adapter
I soldered the 6-pin header to the board
I connected the card withe adapter as follows:
RX to TX
TX to RX
GND to GND
I connected 00I and GND with a jumper
I powered the card with 12V (this specific card can handle 7-30V. Be careful what your card can handle)
I connected the USB adapter to my HA-computer (a NUC in this case)
I set up ESPHome in HA
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
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: