Huzzah esp8266 serial 'pin' definition

I am wanting to receive serial information into the rx pin of a Huzzah 8266, but the log is showing numbered pins which I’d like some help confirming that it is correct - my googling is not helping :frowning:

In my yaml config file I have added the following (there is more but I am trying to keep it relevant):

  board: huzzah

  id: uart_bus
  tx_pin: TX
  rx_pin: RX
  baud_rate: 9600

When checking the boot log, I can see:

[23:21:07][C][logger:233]: Logger:
[23:21:07][C][logger:234]:   Level: DEBUG
[23:21:07][C][logger:235]:   Log Baud Rate: 0
[23:21:07][C][logger:236]:   Hardware UART: UART0
[23:21:07][C][uart.arduino_esp8266:102]: UART Bus:
[23:21:07][C][uart.arduino_esp8266:103]:   TX Pin: GPIO1
[23:21:07][C][uart.arduino_esp8266:104]:   RX Pin: GPIO3
[23:21:07][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[23:21:07][C][uart.arduino_esp8266:108]:   Baud Rate: 9600 baud
[23:21:07][C][uart.arduino_esp8266:109]:   Data Bits: 8
[23:21:07][C][uart.arduino_esp8266:110]:   Parity: NONE
[23:21:07][C][uart.arduino_esp8266:111]:   Stop bits: 1
[23:21:07][C][uart.arduino_esp8266:113]:   Using hardware serial interface.

The objective is to read serial sensor using Custom UART Text Sensor — ESPHome

RX is GPIO3. RX is defined in one of the .h files in the compiler chain. I don’t know which file but that doesn’t matter. You can use RX or GPIO3 interchangeably, but if in the future you use a different board, using the “friendly” RX would assure that you are using the correct GPIO.

1 Like

Documented here Configuration Types — ESPHome and Generic ESP8266 — ESPHome and this is helpful ESP8266 Pinout Reference: Which GPIO pins should you use? | Random Nerd Tutorials

1 Like

Thankyou both - much appreciated. I knew that ESP8266 was fairly standardised but I hadn’t quite realised just how much :slight_smile:

Now on to step 2 :slight_smile:

1 Like