Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

Discussion on how to get started with various type of IoT projects

Cytron Shield-ESP-WiFi Rev 2.0 with Blynk

Postby fariqatrash » Wed May 17, 2017 8:11 am

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.
fariqatrash
Freshie
 
Posts: 4
Joined: Mon May 15, 2017 11:53 am

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

Postby bengchet » Wed May 17, 2017 11:32 am

Hi,

Please refer to this post. Thanks.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

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

Postby Syaabani » Thu May 25, 2017 2:03 pm

i already use the sketch from post but my serial monitor show this,
Attachments
failed disable echo.PNG
Syaabani
Greenhorn
 
Posts: 3
Joined: Mon Apr 03, 2017 2:25 pm

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

Postby Idris » Fri May 26, 2017 2:30 pm

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.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 359
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

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

Postby Syaabani » Fri May 26, 2017 4:34 pm

I ALREADY CONNECT WITH BLYNK BUT HAVE ERRO THERE. CAN U HELP ME SIR?
Attachments
MUX.PNG
Syaabani
Greenhorn
 
Posts: 3
Joined: Mon Apr 03, 2017 2:25 pm

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

Postby Idris » Fri May 26, 2017 5:40 pm

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).
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 359
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

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

Postby bengchet » Sat May 27, 2017 7:31 am

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
#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 1961 times
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

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

Postby Syaabani » Sat May 27, 2017 9:06 pm

thank you for helping me. <3 CYTRON
Attachments
blynk.PNG
Syaabani
Greenhorn
 
Posts: 3
Joined: Mon Apr 03, 2017 2:25 pm

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

Postby Idris » Thu Jun 01, 2017 10:49 am

Hi Syaabani,

Glad to hear that. :)

Thanks.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 359
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

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

Postby muizz21 » Wed Feb 28, 2018 2:54 pm

how to connect to wifi (blynk) with use the battery without use serial monitor?
muizz21
Greenhorn
 
Posts: 3
Joined: Tue Feb 13, 2018 7:25 pm

Next

Return to Getting Started - IoT

Who is online

Users browsing this forum: No registered users and 1 guest