So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Lukasas
#86874 Hello,

I got kinda weird problem with Arduino and ESP8266 module.
I connected pins like this:
Code: Select allESP TX -> Arduino 8
ESP RX -> Potentiometer (divide Arduino's 5V to 3.3V -> Arduino 7)
ESP GND -> Arduino GND -> Bench PS GND
EPS 3.3 -> Bench PS 3.3
EPS EN -> Bench PS 3.3


And I got this simple sketch
Code: Select all#include <SoftwareSerial.h>
SoftwareSerial mySerial(8, 7);
void setup()
{
  //Serial.begin(9600);
  Serial.begin(115200);
  mySerial.begin(115200);
}

void loop()
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}


It looks like everything works just fine, when i try like AT it responds
Code: Select allAT

OK

But when I try like AT+GMR is does this
Code: Select allAT+GMR

AT version:1.1.0.0(May 11 2016 18:09:56)
SDK vershon:1.5.4(bep:0:

I won't gets the whole message. Same for listing APs with AT+CWLAP
Code: Select allAT+CWLAP

+CWLAP:(3,"APTest1",-52,"84:b5:26:73:75:87#,1,-12,0)
+CWLAP:(4,"APTest2"ff6PRPO,063
3aa0,+43,91+,F,11)(k8'⸮⸮
⸮J
Pi,5"
(_-79,W"-d:8Ld8bd,A "::1C"B,2"+3sc16+""::6C"⸮$⸮⸮⸮Ҫ⸮bJ
LPe:f6+"F416):W9cd3LUCcf6
5-0::,AC,671W"Ao":"


I also have a small programmer, that has 3.3V connections, so I can wire it directly from EPS to that programmer and when I try these command, it works just fine. Am I doing something wrong or is there something I'm missing ?

I'm using Arduino UNO
I know that I can program the ESP directly, I'd like to try that when I get this to work.

Thanks
User avatar
By AcmeUK
#86935 I recommend that you do not try to control the esp from you Ardunio. It can be done but people regularly post here with problems.

What you need is a USB to serial converter to interface you PC directly to the esp.
You don't say what module you have. Here is information about using the 01, programming other modules is a case of connecting to the appropriate pins:-https://medium.com/@aallan/getting-started-with-the-esp8266-270e30feb4d1

However as a newcommer you will save yourself a lot of headache by purchasing a NodeMCU or a Wemos D1 Mini. Both have the USB to serial interface built in.