Blynk arduino usb npt working whwn we add a button

Blynk arduino usb npt working whwn we add a button

#define BLYNK_PRINT SwSerial

#include <SoftwareSerial.h>
SoftwareSerial SwSerial(0, 1); // RX, TX

#include <BlynkSimpleStream.h>

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

void setup()
  // Debug console

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

void loop()
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!

You’re going to have to provide more information. I’d start with the info you were asked to provide when you created the topic:

  1. 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

Also, you’ve chosen a non-standard baud rate for your serial and SoftwareSerial connections. Why is this?

You are currently using the same pins for both the Serial connection to your PC, and your debug serial connection, which won’t work.

Do you actually have a TTL to Serial (FTDI) adapter available? If not, then the SoftwareSerial and debug serial code can be removed.


Arduno uno


Android beta version

local server beta 2

9600 is too slow 128000 is comparately fast

and also serial connection stops for 5 sec

I have absolutely no idea why you felt it necessary to create 6 separate posts to answer these questions!

Are you going to respond to this:

And this:

I have no idea what you mean by this, especially as you are using 1000000 as your baud rate.
If you do wish to use SoftwareSerial for debugging then it won’t support baud rates higher than 9600 on the Uno.



in this forum it is told that we can use bandwidth upto 12800

yes sir after removing that from my code it is working fine
Thank you sir

Bandwidth and baud rates are entirely different things.

The problem with SoftwareSerial is that it is using a software library to emulate a hardware serial port. This is never going to be as efficient as using an actual hardware port, and the primary limiting factor is the processing power of the board. In the case of the Uno, this is extremely under-powered.
If you want to use SoftwareSerial serial effectively with Blynk on an Uno then the maximum reliable baud rate is 9600.