-
Good day. I have an ESP8266 / ESP-01S Board w/4MB flash. i.e https://www.amazon.com/dp/B08QF24GZZ I thought this was interesting: Note that I am aware of dupterm If I connect with Thonny via USB:
OK, well if pins 1 and 3 are used up for the REPL, and I am using the REPL, I guess only GPIO2 and 0 are left. What If I try them?
What is my question? How many uarts can the esp01 use 'at once' in one program? It seems like it could be 2 based on creating a variable for UART1, but then not based on the pin combos. p.s Just to try it and see what happens, I also put
in boot.py thinking maybe Thonny would then use that as the UART. It never came up, which again would make sense to me but I thought I should try and note the results. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
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). |
Beta Was this translation helpful? Give feedback.
-
Firstly, thank you very much for the reply @robert-hh I wish my google foo got me to that page but it didn't. That's pretty awesome for know at least UART1 can at least transmit. Many thanks here! For reference / FYI / For the curious, I tried to actually use the UART 1 on my ESP01s:
Also, this is what happens when iterating through all the pins:
I suppose that perhaps other ESP01's boards may work better. But this was my experience with the above links from Amazon. I was trying to push this ESP01 as far as I could on one of my projects. I guess the mileage may vary. |
Beta Was this translation helpful? Give feedback.
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.