ThingSpeak Communication Library for Arduino with ESP8266

3 visualizaciones (últimos 30 días)
Mahmoud Al-Quzwini
Mahmoud Al-Quzwini el 4 de Mzo. de 2021
Comentada: Christopher Stapels el 5 de Mzo. de 2021
Hi,
I couldn't find information which Arduino pins are defined by your library to connect to RX and TX pins of ESP8266? I am using ESP8266 breakout (ESP-01).
Thanks
Mahmoud
  1 comentario
Mahmoud Al-Quzwini
Mahmoud Al-Quzwini el 5 de Mzo. de 2021
Hi Christopher,
Thanks for your reply. However I was asking about the pins used from the Arduino Uno side. Sorry if my orginal question was not clear.
Best
Mahmoud

Iniciar sesión para comentar.

Respuestas (1)

Christopher Stapels
Christopher Stapels el 5 de Mzo. de 2021
Those pins would be defined by your board properties, not by the ThingSpeak library. It seems that the standard is GPIO1 (TX) and GPIO3 (RX) for the ESP8266.
  2 comentarios
Mahmoud Al-Quzwini
Mahmoud Al-Quzwini el 5 de Mzo. de 2021
You provided the same answer, while I am asking which Arduino UNO pins should be connected to the ESP8266?
Thanks
Mahmoud
Christopher Stapels
Christopher Stapels el 5 de Mzo. de 2021
I would suggest programming the ESP8266 directly instead of using it to communicate with the UNO. Occasionally this is not possible though due to the linmited I/O on some ESP models, or due to the difficulty of changing pre existing hardware.
If you are set with using the ESP as an intemediary, you can use the D1 and D0 pins on the UNO. In the WriteMultipleFields.ino example in the library, you will see this table in the top of the file:
ESP8266 | Arduino without Serial1 | Arduino with Serial1
--------------------------------------------------------
RX | pin 7 | TX1
TX | pin 6 | RX1
GND | GND | GND
VCC | 5V | 5V
CH_PD | 5V | 5V
Since the UNO has serial, you should use D1 for TX , which connects to ESP RX and D0 RX to connect to ESP TX.
Sorry for the confusion on the answer versus the comment. I erased my original comment and added it as an answer. You might want to remove your comment above (but keep the one in the answer section) to make the thread easier to read. Thanks!

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre REST API en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by