Problem with SoftwareSerial for ESP8266

Hi there
I'm working on a project using Arduino UNO and my RX TX ports are already taken by another. device. So in order to connect esp8266 to my Arduino, I need SoftwareSerial. I know that Arduino has a standard library called espsoftwareserial but my problem is that the library's documentation is weak and confusing. I just want to send an HTTP post request to a server using wifi and I need a practical code example or documentation for esp and softwareserial

You don't need a special version of SoftwareSerial to communicate with the ESP. Just set up SoftwareSerial on 2 pins of your choice (not 0 and 1) on the Uno and you can communicate with the Serial interface on the ESP

You will, however, need to use a voltage converter on the data lines between the 2 boards as the Uno uses 5V and the ESP used 3.3V

Why do you need to use the Uno in the first place rather than just the ESP ?

Level shifter is not strictly required as, practically, the IO pins of ESp8266/NodeMCU are 5V logic tolerant.

Why do you need to use the Uno in the first place rather than just the ESP ?

I need lots of pins and nodeMCU boards cant handle that

use an I2C portexpander - or implement a portexpander on the Arduino if you can't await the delivery of an I2C portexpander.
But let the ESP be the "master" - not the Arduino.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.