My Serial monitor outputs do not appear when Blynk runs

Read this before creating new topic:

Hello, when I start blynk in my project, I cannot get Serial monitor outputs. Everything else is fine and works correctly, but when I load my code to my card by activating the “ Blynk.begin(auth, ssid, pass); ‘ line, my ’Serial.println(”Here In Loop“); ‘ in the loop method and ’Serial.println(”Here In Setup"); ” in the setup method do not appear on the Serial monitor. When I load the code to my card by commenting or deleting the line “ Blynk.begin(auth, ssid, pass); ”, all my Serial.println outputs appear on the monitor.

(Example) Serial.println(“Here In Setup”); I do not see the output on the monitor.

void setup() {
  Serial.begin(115200);
  Serial.println("Here In Setup");
  Blynk.begin(auth, ssid, pass);
  FastLED.addLeds<WS2812, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
  FastLED.clear();
}

(Example) Serial.println(“Here In Setup”); I see the output on the monitor.

void setup() {
  Serial.begin(115200);
  Serial.println("Here In Setup");
  //Blynk.begin(auth, ssid, pass);
  FastLED.addLeds<WS2812, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
  FastLED.clear();
}

(Example) Serial.println(“Here In Setup”); I see the output on the monitor.

void setup() {
  Serial.begin(115200);
  delay(1000);
  Serial.println("Here In Setup");
  Blynk.begin(auth, ssid, pass);
  FastLED.addLeds<WS2812, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
  FastLED.clear();
}

• Esp8266
• iOS 16

My Code:

#define BLYNK_TEMPLATE_ID "******"
#define BLYNK_TEMPLATE_NAME "Home"
#define BLYNK_AUTH_TOKEN "****************"
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "***********************";
char ssid[] = "******";
char pass[] = "*******"; 

BlynkTimer timer;

void setup() {
  Serial.begin(115200);
  Serial.println("Here In Setup");
  Blynk.begin(auth, ssid, pass);
  FastLED.addLeds<WS2812, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
  FastLED.clear();
}

void loop() {
  Serial.println("Here In Loop");
  Blynk.run();
  timer.run();
  
}

This clearly isn’t your full code, and without seeing the full code then it’s impossible to help.

Also, do you see any unreadable characters in your serial monitor when your device boots?

Pete.

Yes i see any unreadable characters in my serial monitor when i device boots.

This is my full code:

#define BLYNK_TEMPLATE_ID "********"
#define BLYNK_TEMPLATE_NAME "Home"
#define BLYNK_AUTH_TOKEN "**************"
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

//------------ FasdLed --------

#define FASTLED_ESP8266_RAW_PIN_ORDER
#include <FastLED.h>
#define NUM_LEDS 4
#define DATA_PIN D7
#define COLOR_ORDER GRB

CRGBArray<NUM_LEDS> leds;

//------------ FasdLed --------

char auth[] = "********";
char ssid[] = "*******"; 
char pass[] = "*******"; 

BlynkTimer timer;

int r,g,b;

BLYNK_WRITE(V0)
{
 openLeds(255, 255, 255, 3);
}

BLYNK_WRITE(V1)
{
  r = param[0].asInt();
  g = param[1].asInt();
  b = param[2].asInt();
 
  openLeds(r, g, b, 3);

  Serial.println(r);
  Serial.println(g);
  Serial.println(b);
}

BLYNK_WRITE(V2)
{
  int valueV1 = param.asInt();
  if(valueV1 == 1)
  {
    Serial.println("Burada V2");
  }
  openLeds(255, 255, 0, 3);
  
}


BLYNK_WRITE(V3)
{
  Serial.println("Burada V3");
  closeLeds(3);
}


void setup() {
  Serial.begin(115200);
  Serial.println("Here In Setup");
  Blynk.begin(auth, ssid, pass);
  FastLED.addLeds<WS2812, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
  FastLED.clear();
}

void loop() {
  Serial.println("Here In Loop");
  Blynk.run();
  timer.run();
  
}


void Blynk_Delay(int milli){
   int end_time = millis() + milli;
   while(millis() < end_time){
       Blynk.run();
       yield();
   }
}



void openLeds(int r, int g, int b, int ledSize){
    FastLED.clear();
  
    for(int i=0; i<=ledSize; i++)
    {
       leds[i] = CRGB(r, g, b);
    }
    
    FastLED.show();
}


void closeLeds(int ledSize){
  FastLED.clear();
  
  for(int i=0; i<=ledSize; i++)
  {
     leds[i] = CRGB(0, 0, 0);
  }
    
    FastLED.show();
}

My serial monitor output:

Delete this line of code…

and change this…

to this…

Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);

Change this…

to this…

Serial.begin(74880);

and set your serial monitor to 74880

When you post serial output please copy/paste the text and use triple backticks rather than posting screenshots.

Do you have any other connections to your board other than the USB cable and D7?

Pete.

I think you asked me to delete the line

char auth = "**************”;

And I deleted it. I updated the line

Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);

in this way. I updated the line Serial.begin(74880); in this way and got the following output on the serial monitor. No, I did not give any other connection to my card except usb and D7.

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v00047410
~ld
rf cal sector: 1020
freq trace enable 0
rf[112] : 0⸮[117] Connecting to HelloWorld
[4942] Connected to WiFi
[4942] IP: 192.168.1.101
[4942] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.3.2 on ESP8266

 #StandWithUkraine    https://bit.ly/swua


[4958] Connecting to blynk.cloud:80
[54

I’d try rebooting your router.

If that doesn’t work then add:

#define BLYNK_DEBUG

to your sketch near the top.

Pete.

1 Like

My problem was solved, thank you.

1 Like

By doing what? I have the exact same issue, exact same output. Tried everything Pete Knight suggested and nothing. I get the ASCII Blynk logo, “Connecting to blynk.cloud:80”, a couple bytes of garbage, then radio silence. If I comment out the “Blynk.begin(…” statement it works fine.

Those “couple of lines of garbage” are data that is being sent to the serial monitor at a different baud rate to the message that you are able to read.
I suggested that the baud rate used for the serial output be changed from 115200 to 74880 because @erkan was using an ESP8266 and the native baud rate of ESP8266 based boards is often 74880.

When a board boots-up, it outputs data at its native baud rate. If it crashes, it also does the same.
If you’re seeing “garbage” before or after intelligible text then these are messages from your board which may contain a clue about the root cause of your problem.

Try altering the baud rate of your serial monitor until the output from your sketch is garbage, but the messages from your board are readable. You’ll then have found the baud rate that your board is outputting messages on, and you can change the Serial.begin() message to match this. You will the be able to see the messages from the board, and the debug output from your sketch in the same serial monitor screen.

Pete.

Thanks for the Pete! However, I’m giving up on Blynk.

The project I am developing is in the proof-of-concept stage and after just one day of playing around on Blynk I’m getting a “message limit reached” and Blynk is demanding $99 if I want continue development before 14-MAR. I’m currently looking for an alternate platform.