Before creating the topic
- Search forum for similar topics
- Check http://docs.blynk.cc and http://help.blynk.cc/
- Add details :
• Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
• Smartphone OS (iOS or Android) + version
• Blynk server or local server
• Blynk Library version
• Add your sketch code. Code should be formatted as example below.
Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.
void loop()
Hello,
My Arduino Uno with ESP8266 is working fine with Blynk but when I am adding P10 DMD to UNO Blynk fails to connect with “blynk-cloud.com”. Please help me out of this problem. Below is the Serial output and the code-
The output is like this:
[29]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/ v0.6.1 on Arduino Uno
[536] Connecting to andro234
AT
ATE0
AT+GMR
[3590] AT version:1.3.0.0(Jul 14 2016 18:54:01)
SDK version:2.0.0(5a875ba)
v1.0.0.3
Mar 13 2018 09:35:47
OK
AT+CIPMUX=1
[4614] Failed to enable MUX
AT+CWMODE?
AT+CWJAP=“andro234”,“xyasd1234”
AT+CIFSR
[13620] +CIFSR:STAIP,“192.168.43.160”
+CIFSR:STAMAC,“84:0d:8e:b0:57:2e”
[13621] Connected to WiFi
AT+CIPCLOSE=1
AT+CIPCLOSE=1
AT+CIPSTART=1,“TCP”,“blynk-cloud.com”,80
AT+CIPSEND=1,37.
Write to App
Write to App
Write to App
AT+CIPSEND=1,5
AT+CIPCLOSE=1
Write to App
AT+CIPCLOSE=1
AT+CIPSTART=1,"","",80
Write to App
AT+CIPCLOSE=1
AT+CIPSTART=1,"","",80
Write to App
AT+CIPCLOSE=1
AT+CIPSTART=1,"","",80
Write to App
AT+CIPCLOSE=1
AT+CIPSTART=1,"","",80
Write to App
AT+CIPCLOSE=1
AT+CIPSTART=1,"","",80
Write to App
AT+CIPCLOSE=1
AT+CIPSTART=1,"","",80
The Code is:
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
//#include<TimerOne.h>
#include <TimeLib.h>
#include <WidgetRTC.h>
#include “ledP11.h”
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “xxxxxxxxxxxxxxxxxxxxxxxxxxx”;
// Your WiFi credentials.
// Set password to “” for open networks.
char ssid[] = “xxxxxxxxxx”;
char pass[] = “xxxxxxxxxx”;
// Hardware Serial on Mega, Leonardo, Micro…
//#define EspSerial Serial1
// or Software Serial on Uno, Nano…
// Your ESP8266 baud rate:
#define ESP8266_BAUD 115200
ESP8266 wifi(&Serial);
BlynkTimer timer;
WidgetRTC rtc;
LedP11 myled;
int pinValue=0;
BLYNK_CONNECTED(){
// Blynk.syncVirtual(V1);
Serial.println(“Blynk Connected”);
rtc.begin();
}
BLYNK_WRITE(V0)
{
int slideValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// You can also use:
// String i = param.asStr();
// double d = param.asDouble();
Serial.print("V0 Slide value is: ");
Serial.println(slideValue);
}
boolean myflag=true;
BLYNK_WRITE(V7)
{
pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// You can also use:
// String i = param.asStr();
// double d = param.asDouble();
Serial.print(“V7 Button value is: “);
Serial.println(pinValue);
if(pinValue==22) myflag=!myflag;
String st=””;
if(myflag) st=“OK”; else st=“NOT OK”;
//myflag=!myflag;
Blynk.virtualWrite(V5,st);
}
void myTimerEvent(){
Serial.println(“Write to App”);
String currtime=String(hour())+":"+minute()+":"+second();
Serial.println(currtime);
//int t=millis()/1000;
myled.showmsg_single_static(“Satyam Shivam Sundaram”,0);
//Timer1.detachInterrupt();
}
void setup()
{
// Debug console
Serial.begin(9600);
delay(10);
// Set ESP8266 baud rate
//EspSerial.begin(ESP8266_BAUD);
Serial.begin(ESP8266_BAUD);
delay(10);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
timer.setInterval(1000L,myTimerEvent);
delay(10);
myled.init(3, 4, 8, 9 ,4);
delay(2000);
Serial.println(“OKKK”);
}
void loop()
{
Blynk.run();
timer.run();
}