Overly new to this, stuck on getting started

loaded library get this error, did it the way it says in getting started

Arduino: 1.6.9 (Windows 8.1), Board: “Arduino/Genuino Uno”

C:\Users\PUCHUU~1\AppData\Local\Temp\arduino_modified_sketch_577545\ESP8266_Shield.ino:33:25: fatal error: ESP8266_Lib.h: No such file or directory

#include <ESP8266_Lib.h>

                     ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

We need more details. You mentioned Arduino only, but error is about ESP8266

What’s your setup? Please also post your sketch.

arduino with a ESP-12E ESP8266 UART WIFI Wireless Shield for Arduino UNO R3 shield plugged in USB


**************************************************************
 * Blynk is a platform with iOS and Android apps to control
 * Arduino, Raspberry Pi and the likes over the Internet.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 *
 *   Downloads, docs, tutorials:www.blynk
 *   Blynk community:         
 *   Social networks:            
 *                             
 *
 * Blynk library is licensed under MIT license
 * This example code is in public domain.
 *
 **************************************************************
 *
 * This example shows how to use ESP8266 Shield (with AT commands)
 * to connect your project to Blynk.
 *
 * Note: Ensure a stable serial connection to ESP8266!
 *       Firmware version 1.0.0 (AT v0.22) is needed.
 *       You can change ESP baud rate. Connect to AT console and call:
 *           AT+UART_DEF=9600,8,1,0,0
 *       In general, Soft Serial may be unstable.
 *       It is highly recommended to switch to Hard Serial.
 *
 * Change WiFi ssid, pass, and Blynk auth token to run :)
 * Feel free to apply it to any other example. It's simple!
 *
 **************************************************************/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial1

// or Software Serial on Uno, Nano...
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

void setup()
{
  // Set console baud rate
  Serial.begin(9600);
  delay(10);
  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  Blynk.begin(auth, wifi, ssid, pass);
}

void loop()
{
  Blynk.run();
}

still looking for help but i think its my shield

Which board have you selected in the IDE?

Because if you are uploading an esp8266 sketch you need to select esp8266 as the board

I did that it didnt work

If you could show us the error that would help.

And maybe how you connected your stuff?

well if i go to upload it without the shield it says done uploading as normal, the minute I attach the shield…

Sketch uses 14,364 bytes (44%) of program storage space. Maximum is 32,256 bytes.
Global variables use 619 bytes (30%) of dynamic memory, leaving 1,429 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9d
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9d
Invalid library found in C:\Users\puchuumetal\Documents\Arduino\libraries\ESP8266_Shield: C:\Users\puchuumetal\Documents\Arduino\libraries\ESP8266_Shield

1 Like

@puchuumetal the original error message indicates you don’t have the four libraries set up correctly. Also avoid version 1.6.10 of the Arduino IDE for now and use 1.6.9.

Libraries should be set up like this.

But that there is not what I am getting, why does it upload successfully when I have the shield detatched from the arduino but the minute I add it to the arduino it gives me a failure? currently using 1.6.9

You get the failure because they are all trying to use the same port. You can’t flash a new sketch with all the shield wires connected. Think through it logically.

It is very difficult to follow you sketch and error messages as they are not formatted with </> but I think your problem is you are using the wrong serial ports for the Uno.

If you read the sketch notes then this:

// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial1

// or Software Serial on Uno, Nano...
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX

Needs to become:

// Hardware Serial on Mega, Leonardo, Micro...
//#define EspSerial Serial1

// or Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX

I was informed by someone whos worked with this shield that the shield doesnt work on serial1 but I will look into it, and those two sketch notes look the same

The sketch extracts are very subtly different if you look at them. There is no Serial1 on an Uno (or Nano), just Mega’s and Leonardo’s etc as per the comments in the sketch.

You keep mentioning a esp8266 “shield” can you provide a link to the product?

yes sorry I should have done that

I could not find any documentation, but I was able to make contact with the seller who linked me to a few sites on how to do the firmware, but it was all in chinese, the one document I was able to translate says this

About using Arduino USB -TTL under no circumstances to flash firmware tutorial (not available in all
Arduino Uno Arduino and other single serial device)
2015 -12 -17 v1 by Wang Tongze China, Beijing

  1. In the case of the non-energized Arduino WiFi ESP8266 WiFi expansion board superimposed on
    Arduino, will switch to ON DFU

  2. Use jumper RESET (RST) Arduino connected to GND on the power after the dip to ON 1,2
    // At this point you can open the Arduino IDE’s serial monitor to communicate with ESP8266 Shield,
    without writing any program to the Arduino board

  3. Open ESP8266 a brush to write the software key and select the port number to Arduino to ESP8266 Shield brush firmware writing operation.
    Other issues refer to the information package!

@puchuumetal looking at the photos of this product it has male headers to each side of the ESP module. Presumably you wire up the rx and tx male connections to the female headers for tx and rx as per the Blynk sketch (pins 3 and 2 for software serial).