USB Serial for Arduino Micro - help needed


I try to have an Arduino Micro blynking via USB Serial. Below is the code and I followed the guidelines running the script.
It seems that I get connected to the blynk cloud ( DSR is OFF: what does this mean? ) however on my phone i get the info the Arduino Micro is offline.

I have a Blynk Board from Sparkfun running which updates data nicely.

What am I doing wrong…

Thx, Gernot

  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:
    Blynk community:  
    Social networks:  

  Blynk library is licensed under MIT license
  This example code is in public domain.

  =>          USB HOWTO:

  This example shows how value can be pushed from Arduino to
  the Blynk App.

  For this example you'll need SimpleTimer library:
  Visit this page for more information:

  App project setup:
    Value Display widget attached to V5

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

#include <BlynkSimpleStream.h>
#include <SimpleTimer.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "XXX656ef096e4980b70e825c9c592XXX";

SimpleTimer timer;

// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void myTimerEvent()
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V5, millis() / 1000);

void setup()
  // Debug console

  // Blynk will work through Serial
  // Do not read or write this serial manually in your sketch
  Blynk.begin(Serial, auth);

  // Setup a function to be called every second
  timer.setInterval(1000L, myTimerEvent);

void loop()
{;; // Initiates SimpleTimer

and after pressing the reset on Arduino Micro the log in the cmd will update

Comment out this line, as it interferes with the USB link, and you can’t use it anyhow for same reason.

// #define BLYNK_PRINT Serial

Thanks @Gunner

Just tried but no success

Your hardware connects fine, no doubt about that. Did you double check the Auth token?

Also, this line is called twice… not sure if that could interfere, but remove one of them anyhow.

1 Like

Thanks @Gunner that saved me another evening & many frustrations :slight_smile: