Module wasn't online yet (blynk + robot arm + A.Uno( use as 5v power adapter)

Xin chào!
Em xin hỏi vấn đề này ạ.
Em đã chọn cổng 9 và board NodeMCU 1.0
Sau khi chạy code thì app thông báo thiết bị chưa được kết nối
Có ai biết tại sao không ạ?
Em cám ơn!

    #define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).

char auth[] = "2dffb009e963473fa314841ee456da5c";  //Paste your Auth Token Here 

// Your WiFi credentials.
// Set password to "" for open networks.

char ssid[] = "VNPT_QUACHHIEN"; //Enter your Wifi User Name
char pass[] = "hien1909"; //Enter your Wifi Password


Servo servo;
Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;

BLYNK_WRITE(V0)
{
  servo.write(param.asInt());
}

BLYNK_WRITE(V1)
{
  servo1.write(param.asInt());
}

BLYNK_WRITE(V2)
{
  servo2.write(param.asInt());
}

BLYNK_WRITE(V3)
{
  servo3.write(param.asInt());
}

BLYNK_WRITE(V4)
{
  servo4.write(param.asInt());
}
BLYNK_WRITE(V5)
{
  servo5.write(param.asInt());
}

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

  servo.attach(D0);
  servo1.attach(D1);
  servo2.attach(D2);
  servo3.attach(D3);
  servo3.attach(D4);
  servo3.attach(D5);
}

void loop()
{
  Blynk.run();
}

Hi, The sketch looks OK, can you post a copy of the Serial Monitor prints?

billd

This is not a valid Auth code.

Pete.


tôi lấy nó từ gmail , why not ?

The email address that this message came from does not appear to be the regular one that the Blynk servers uses when sending out Auth tokens.
Are you using a different Blynk server?

Pete.


nó chỉ hiện vậy à
tks.

image

These two need to be the same, and I’d suggest using 74880 for both, if you are using a NodeMCU v0.9

Pete.

i used it in 1 gmail but i will make it again in other phone

oh thanks you but i used v1.0 can u suggest any band
tks.

Sorry, I don’t understand.

Pete.

i used NodeMCU v1.0 and 115200 band is the right one ?

Probably 74880, but possibly 115200.
Test this by pressing the reset button and seeing which baud rate gives you a readable output - then use the same baud rate in your sketch and post your serial output.

When you post the serial output please copy/paste from the serial monitor instead of using screenshots.

Pete.


04:52:55.420 -> [30075] Connecting to blynk-cloud.com:80
04:52:58.329 -> [32974] Invalid auth token
04:53:04.413 -> [39075] Connecting to blynk-cloud.com:80
04:53:04.515 -> [39161] Invalid auth token
04:53:13.415 -> [48075] Connecting to blynk-cloud.com:80
04:53:13.518 -> [48156] Invalid auth token
04:53:22.411 -> [57075] Connecting to blynk-cloud.com:80
04:53:22.514 -> [57157] Invalid auth token

Exactly as I said originally.

Are you using a cloud server provided by someone else (getblocky.com maybe?)

Pete.

of course but i worried about this is NodeMCU or esp8266


sry about this basic question…
tks.

Sorry, your answer was not 100% clear to me.
Are you using a cloud server provided by a 3rd party (not Blynk)?

Pete.

yes

In that case, you need to be contacting that company for support.

@Pavel @Dmitriy - you may wish to look into this, it appears that a commercial company called getblocky.com is running a Blynk cloud server.

Pete.

05:29:32.399 -> [2570] Connected to WiFi
05:29:32.399 -> [2570] IP: 192.168.31.166
05:29:32.399 -> [2570] 
05:29:32.399 ->     ___  __          __
05:29:32.399 ->    / _ )/ /_ _____  / /__
05:29:32.399 ->   / _  / / // / _ \/  '_/
05:29:32.433 ->  /____/_/\_, /_//_/_/\_\
05:29:32.433 ->         /___/ v0.6.1 on NodeMCU
05:29:32.433 -> 
05:29:32.433 -> [2580] Connecting to blynk-cloud.com:80
05:29:32.501 -> [2675] Invalid auth token

lần đầu tôi thấy nó hiển thị như vậy , nó có đúng không ?
tks.

You need to be contacting getblocky for support, or using the Blynk cloud servers (and buying energy for widgets if necessary)

Pete.