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!!
