tuanpmt / espduino

ESP8266 network client (mqtt, restful) for Arduino
http://tuanpm.net/post/espduino
MIT License
382 stars 122 forks source link

Getting Garbage after esp.ready() #56

Open nirajbhatt7 opened 7 years ago

nirajbhatt7 commented 7 years ago

Can someone please help. I am getting garbage after esp.ready()

Output: ARDUINO: Starting Device ARDUINO: Waiting for ESP!!! _₺[ØÐPŠþX¹a‚ç·âÌþ8�+ˆ¢·A¢Ã⪚F¢ªÂ«PT"p©ÅS0Ø8


Code Sample: `

include

include

include

define esp8266reset A5 //arduino pin connected to esp8266 reset pin (analog pin suggested due to higher impedance)

SoftwareSerial espPort(9, 10); // RX, TX ESP esp(&espPort, &Serial, esp8266reset);

MQTT mqtt(&esp); boolean wifiConnected = false;

. . . . . .

void setup() { Serial.begin(19200); espPort.begin(19200);

Serial.println("ARDUINO: Starting Device");

esp.enable(); delay(500); esp.reset(); delay(500);

delay(1000);

Serial.println("ARDUINO: Waiting for ESP!!!"); while(!esp.ready());

Serial.println("ARDUINO: ESP is Ready");

`

nirajbhatt7 commented 7 years ago

Also note that my CHIP_PD is on A5 as I have a PCB that I designed last year and it was all working at some point in 2015 but now that I started playing with again, it has stopped working. Just FYI, I have taken latest for both and flashed ESP-01 with latest bin as well. My ESP-01 is 2 years old in case if that makes any difference

patmalcolm91 commented 7 years ago

I'm also having the exact same issue. Did you ever figure out a solution?

Edit: I'm using an Arduino Pro Mini clone, my CHP_PD is on pin 4, and my ESP-01 is newly bought (though not sure if the hardware itself is old) with the newest version of esp_bridge flashed.