Page 1 of 2

Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Wed May 17, 2017 8:11 am
by fariqatrash
Hi there.
can somebody help me on how can I connect to the Blynk with this Cytron Shield.

I always got error command comflicting with each other.

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Wed May 17, 2017 11:32 am
by bengchet
Hi,

Please refer to this post. Thanks.

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Thu May 25, 2017 2:03 pm
by Syaabani
i already use the sketch from post but my serial monitor show this,

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Fri May 26, 2017 2:30 pm
by Idris
Hi Syaabani,

If not mistaken, software serial is quite hard to handle high speed baudrate (i.e 115200). You can try to lower down the baudrate to 9600bps.

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Fri May 26, 2017 4:34 pm
by Syaabani
I ALREADY CONNECT WITH BLYNK BUT HAVE ERRO THERE. CAN U HELP ME SIR?

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Fri May 26, 2017 5:40 pm
by Idris
Hi Syaabani,

It is connected to WiFi network, but not connected to Blynk server. Either the internet is slow, or Blynk server got problem. Try to restart you board (power off and on again).

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Sat May 27, 2017 7:31 am
by bengchet
Hi,

You can add few lines as the code shown below. This is to reset the ESP8266 module before starting the program to solve "Failed to enable MUX" issue.
If it shows "Failed to disable echo" issue, it is pin selection problem for UART, so you need to double check either the mini jumpers or at the coding.

CODE: SELECT_ALL_CODE
#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[] = "your auth token";

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

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

// Software Serial on Uno, Nano...
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(10, 11); // 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);
 
  EspSerial.println("AT+RST"); <-- add these 4 lines here
  delay(1000);
  while(EspSerial.available())
    EspSerial.read();

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

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


Attached is also screenshot of my test, I used Uno, but it should work for Mega as well.
blynk2.png
blynk2.png (17.48 KiB) Viewed 4480 times

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk (SOLVED)

PostPosted: Sat May 27, 2017 9:06 pm
by Syaabani
thank you for helping me. <3 CYTRON

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Thu Jun 01, 2017 10:49 am
by Idris
Hi Syaabani,

Glad to hear that. :)

Thanks.

Re: Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

PostPosted: Wed Feb 28, 2018 2:54 pm
by muizz21
how to connect to wifi (blynk) with use the battery without use serial monitor?