Arduino + ESP8266 (Can't connect to wifi)

im a beginner here and im trying to make a smart pet feeder using arduino uno and esp8266 to control remotely. the problem is i cant connect the esp to the internet and i dont know why (the blue led didn’t turn on and the serial monitor is empty) . Here’s my code

#include <Blynk.h>

/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  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: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  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.

  WARNING!
    It's very tricky to get it working. Please read this article:
    http://help.blynk.cc/hardware-and-libraries/arduino/esp8266-with-at-firmware

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#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[] = "d8482d70823d44c2af88fbb3a64cfb27";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "7ac218";
char pass[] = "280346045";

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

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

// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200

ESP8266 wifi(&EspSerial);

void setup()
{
  // Debug console
  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();
}


And here’s my circuit design
image

Can someone pls help me cuz rhis is a school project and its driving me insane.
Thanks

I’d say that’s the first place to look.

Also, I wouldn’t bother with the logic level shifter.

If you search the forum you’ll find plenty of code and hook-up diagrams for this hardware setup.

Pete.

You mean lowering the baud rate to 9600?

Oh the old automated pet feeder. Reminds me of this wonderful project. It may be worth checking out for some ideas.

wayy too complicated (i still cant connect my arduino to wifi) for me but thanks anyway

If simplicity is what you are after, get an ESP dev board like the WeMos D1 Mini or a NodeMCU. It will make things so much easier.

1 Like

It’s not quite as simple as that. When you search you’ll find info about setting the ESP baud rate using AT commands.

Pete.

@K4K4P As per the Blynk Help Center (link at top of this page… scroll up to see)

http://help.blynk.cc/how-to-connect-different-hardware-with-blynk/arduino/esp8266-with-at-firmware

Im sorry i still dont understand

Meaning both the sketch (simple) and the ESP itself (not as simple) need to be set to the same BAUD… as per my link above.

We aren’t going to do your homework for you.

This forum is a great resource for people who want to start using Blynk, but aren’t really sure how to get going. It has a great search facility and has all the answers you need. Sometimes it has a bit too much information and it can be difficult to know where to start, which is why I pointed you in the right direction with my comments.
Since joining the forum you’ve spent just 32 minutes reading some of that information, which is way too little. If you’re not prepared to do the research then you don’t deserve to get the credits for your school project.

If you do the research and still have some specific problem that you’re struggling to understand/overcome then please come back and share what you’ve done so far, and explain in some detail what your problem is and what solutions you’ve tried to date.

Pete.