Skip to content

Multiple UARTs on the esp8266 / esp01? #15280

Closed Answered by robert-hh
jouellnyc asked this question in ESP8266
Discussion options

You must be logged in to vote

The ESP8266 has in theory 2 UARTs available with ID 0 and 1. UART 1. The default pins are 1 and 3 for UART 0 and 2 and 8 for UART 1. Since Pin 8 is used internally, UART 1 is TX only. UART 0 can be swapped to use pins 15 (tx) and 13 (rx).
See the documentation at https://docs.micropython.org/en/latest/esp8266/quickref.html#uart-serial-bus:
Two UARTs are available. UART0 is on Pins 1 (TX) and 3 (RX). UART0 is bidirectional, and by default is used for the REPL. UART1 is on Pins 2 (TX) and 8 (RX) however Pin 8 is used to connect the flash chip, so UART1 is TX only.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jouellnyc
Comment options

You must be logged in to vote
2 replies
@robert-hh
Comment options

@jouellnyc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants