I am using the “ESP8266_Shield_Demo” sketch directly from Sparkfun’s library download.
- I mounted the shield onto an UNO and the sketch worked perfectly.
- I mounted the same shield onto an Arduino MEGA 2560 and ran the exact same sketch (changed the Board to MEGA and the port number used) in the Arduino IDE. Errorsa displayed in the Serial Monitor are:
Press any key to begin.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
Error talking to ESP8266.
which tells me the error occurs in the following code:
void initializeESP8266()
{
// esp8266.begin() verifies that the ESP8266 is operational
// and sets it up for the rest of the sketch.
// It returns either true or false – indicating whether
// communication was successul or not.
// true
int test = esp8266.begin();
while( test == 0)
{
Serial.println(F(“Error talking to ESP8266.”));
delay(250);
test = esp8266.begin();
}
Serial.println(F(“ESP8266 Shield Present”));
}
Shield is set to use SoftwareSerial!
I need to get the Arduino MEGA (or something equivalent memory-wise and processing power-wise) to work with this shield for my Weather Station.
Any suggestions or is there something I forgot when going from UNO to MEGA?