I'm projecting a PCB board with a Raspberry RP2040 and the WiFi module Ai-Thinker ESP-12F (it is the only available from my PCB provider) following the official documentation, but I have some doubts about electrical connection between RP2040 and ESP-12F. I would like to use Raspberry RP2040 as main processor and ESP-12F only as Wi-Fi modem for data transmission (using Blynk IoT service). This is my PCB schema; this is the Ai-Thinker datasheet.

RP2040 Pinout

This table is taken from the official RP2040 datasheet. These are the first 10 pins of the RP2040. Can I connect TX from RP to RX of ESP and viceversa? How do I connect other pins in order to use ESP-12F as modem for data transmission over Wi-Fi?

  • \$\begingroup\$ There's no such thing as an ESP32-12F. Do you mean the ESP-12F (which is an ESP8266)? What do you want to accomplish by connecting these devices? You can certainly connect the serial ports of both devices (RX to TX and vice versa), but exactly what kind of data do you want to transfer between them? \$\endgroup\$
    – StarCat
    Jan 6 at 21:40
  • 1
    \$\begingroup\$ Usually TX is the output and RX is the input, so you would need to drive ESP32's RX from RPi's TX, and vice versa. Connecting both TX outputs together won't work. If you're not sure, it's a good idea to give yourself a way to swap TX/RX on your board. \$\endgroup\$
    – MarkU
    Jan 6 at 22:45
  • \$\begingroup\$ It depends what you want the boards to do and communicate between them. Obviously Tx and Rx are not enough as also ground connection is needed. \$\endgroup\$
    – Justme
    Jan 6 at 23:47
  • \$\begingroup\$ Thanks for comments. I want to give to Raspberry RP2040 Wi-Fi connectivity. So i want to use RP2040 as main processor and ESP-12F only for data transmission over Wi-Fi. I'm asking for the correct wiring diagram because I didn't find any example or documentation on Net. \$\endgroup\$
    – TechRevo
    Jan 7 at 6:01


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.