Connect arduino nano to wifi by using an ESP8266-01

First question, AT commands are not working. I even bought an ESP programmer from amazon (https://www.amazon.ca/ESP8266-Breakout-Programmer-Downloader-Auto-Download/dp/B08F9X3M5J/ref=sr_1_10?crid=AVEAB31M9R2I&keywords=esp8266%2B01%2Bwith%2Bprogrammer&qid=1663855077&sprefix=%2Caps%2C41&sr=8-10&th=1)
I was able to program the ESP and send random data to Firebase cloud but the AT commands still wouldn't work. What can I do?

Second, to make the nano and ESP talk to each other using SoftwareSerial, I wrote a simple Serial.print("Hello from arduino") and uploaded it to nano. Then, I connected the ESP to the nano with the following connections:
Rx->Rx, Tx->Tx (I even tried connecting Rx->Tx ),
3.3V+EN(ESP)-> 3.3V ,
GPIO0(esp)->GND(nano)
and RST(nano)->GND(nano) to bypass the arduino ATmega chip and upload the following to the ESP:

#include <SoftwareSerial.h>
SoftwareSerial myserial(0,1);

void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
Serial.print("Hello world");
myserial.begin(9600);
delay(5000);
}

void loop() {
  // put your main code here, to run repeatedly:
  String incoming="";
  boolean stringR= false;
while (myserial.available()){
  incoming = myserial.readString();
  stringR = true;
  }
if(stringR){
  Serial.print("Received String:"+incoming);
  }
}

How can I make my ESP and Nano connect through software Serial? What am I doing wrong?

The whole point of this project is to connect my Nano to Wifi and send the data I receive from sensors to Firestore cloud. Any tips?

Thanks!!

Someone correct me if I’m wrong - I thought programming the 8266 meant the ability to send AT commands was lost.

Be careful with voltages the 8266 is 3.3v , the Nano 5v

1 Like

Wrong. What will one receiver "hear" from another receiver?
Why talk into the mouth of the other guy?

Please post schematics. Don't forget the powering stuff.


this is how I'm wiring my circuit

Sure but I don't have those devices and the picture tells me nothing. Please, schematics, not arts.

Can't do that.
Those pins are already used by the USB<>Serial chip.
Use different pins for SoftwareSerial.

Why this two-processor Nano-ESP kludge.
Can't you use a single processor with WiFi, like the WeMos D1 mini or NodeMCU.
Leo..

Hi, did you get any help from here? How to easily and quickly program the ESP8266 01 module via an arduino nano with example. - YouTube

Essentially, I want to use the XIAO nrf52840 and connect it to wifi. But because the Xiao is similar to the nano, I've started to use nano as it has much more online examples.
I'm going to re-do this video How to easily and quickly program the ESP8266 01 module via an arduino nano with example. - YouTube step by step and re-post my schematics + code.
Maybe at that point someone could help me figure out what I'm doing wrong.

Thanks for all your replies!!

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