I'm new to arduino stuff and i'm currently trying to connect an ESP8266-01
(https://www.reichelt.de/entwicklerboards-esp8266-wifi-modul-debo-esp8266-p192142.html) with my arduino nano
. I'm using this (https://www.youtube.com/watch?v=ji71cHaGW8w) as tutorial and my wiring is almost the same.
ESP8266-01 upload wiring
I can upload without any problems. The only difference is, that using the 3V3
directly without any extra components. I measured 120mA
(stable) and they should be enough.
This is my ESP8266-01 code:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write("Hello from ESP");
delay(2000);
}
After uploading to the ESP8266-01 i'm changing the wiring to this (except that i'm connecting Vcc
directly to 3V3
). This is my Arduino code:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
void setup()
{
Serial.begin(9600);
mySerial.begin(9600);
delay(5000);
}
void loop(){
String IncomingString="";
boolean StringReady = false;
while (mySerial.available()){
IncomingString=mySerial.readString();
StringReady= true;
}
if (StringReady){
Serial.println("Received String: " + IncomingString);
}
}
Once again, uploading is no Problem, but i'm not getting any signs of life. The ESP8266-01 LED is not blinking (only when uploading) and there's no output in the serial monitor. I already switched the ESP8266-01 with another, but nothing changed.
EDIT: I tested the ESP8266-01 with blink and an accesspoint example and it worked without any problems.
mySerial.println("Hello, world?");
and then try again. Maybe also try to just swap RX and TX until it works (although it seems fine to me but it won't hurt to try). And keep in mind that the Uno uses 5v and the ESP 3v3, so you might have a problem when the Uno sends a 5v signal via serial to the 3v3 ESP. – user14699696