I'm trying to make my esp8266 work with my arduino.
But when I send AT commands I get some weird symbols and some functions return "ERROR"
Here's the code I'm using.
#include "SoftwareSerial.h"
SoftwareSerial esp8266(6, 7); // RX, TX
void setup()
{
Serial.begin(9600); // serial port used for debugging
esp8266.begin(115200); // your ESP's baud rate might be different
}
void loop()
{
if(esp8266.available()) // check if the ESP is sending a message
{
while(esp8266.available())
{
char c = esp8266.read(); // read the next character.
Serial.write(c); // writes data to the serial monitor
}
}
if(Serial.available())
{
delay(10); // wait to let all the input command in the serial buffer
// read the input command in a string
String cmd = "";
while(Serial.available())
{
cmd += (char)Serial.read();
}
// send to the esp8266
esp8266.println(cmd);
}
}
Here's the Serial Monitor:
AT
OK
AT+RST
OK
ets Jan 8 2013,rst catse:2, boot lode:(3,7)
loab 0x40100000& len 1396, qoom 16
tail 4C�,kk�������e
load 0x3fge8000, len 776, room 4 tak0 t0�v�
�!jH+��
����(j5�!
,�2%1�
j
�sl��o�
Ai,Thinker Technology Co. Ltd.
invalid
AT+CWMODE?
+CWMODE:1
OK
AT+GMR
AT version;0.25.0.0(Juo 5 2015 17:27:16)
SDK version:1.0
ryJ 0
AT+CWLAP
+CWLAP:(4,"�P��R�*bj��b���*��2��*����Ҋ�b�Jj
��*A�B�br������Յź�aj��b����2j
":6�*AՉ����J
"�́������
The commands where, AT
, AT+RST
, AT+CWMODE?
, AT+GMR
, AT+CWLAP
Why am I getting this weird symbols and etc? I haven't upgraded the firmware, should I? There other commands I tried return "ERROR" or even "ERROQ"
I don't have a USB to TTL or any other board. I connected my board in the arduino with this schematic:
Cap = 10uF VolReg = LM1117 3.3v