Problem "wasn't connect yet" with esp8266 + esp12E

Hi guys, I’m a beginner with Blynk App and i have a wifi car project to do, but I’ve a big problem with BLynk is that when i’m using the app the application says that my project “wasn’t online yet” so i checked if my esp8266 was connected to the wifi of my phone and it is. I tried looking at other topic on the same subject but i didn’t really understand how the people solved their problem.
So if someone can help me :pray: :pray:.
I know that some people want to see the code so i will put it under.



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

//declaration des emplacements on utilise les pins D5, D6; D7; D8 car ils sont en SPI
int vitmoteurd = 5;               
int vitmoteurg = 6; 
int dirmoteurd = 7;
int dirmoteurg = 8;   

//connexion en wifi
char auth[] = "xxx";///authentifiaction de l'app Blynk
char ssid[] = "xxx";///nom du wifi
char pass[] = "T10hom12fr#ed26";//mot de passe du wifi



//definition des valeurs joystick(Blynk)  
int rangenulle = 512;
int rangeminhaut = 712;
int rangeminbas = 312;
int rangemindroite = 712;
int rangemingauche = 312;


//definition de la vitesse
int vitessemin = 450;
int vitessemax = 1020;
int vitessenulle = 0;

//sous-programme controlant la mobilité
void controlmobilite(int y, int x)

{
  
    if(y > rangeminhaut && x > rangemindroite )
    {
        digitalWrite(dirmoteurd,HIGH);//on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);//on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);//on met a la vitesse max car on va tourner a droite
        analogWrite(vitmoteurg, vitessemin);//on met a la vitesse min car on tourne pas a droite fortement
    }

    else if(y > rangeminhaut && x < rangemingauche )
    {
        digitalWrite(dirmoteurd,HIGH);//on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);//on laisse le courant passer
        analogWrite(vitmoteurd, vitessemin);//on met a la vitesse min car on tourne pas a gauche fortement
        analogWrite(vitmoteurg, vitessemax);//on met a la vitesse max car on va tourner a gauche
    }

    else if(y > rangeminbas && x < rangemingauche )
    {
        digitalWrite(dirmoteurd,LOW);//on inverse le sens des moteurs
        digitalWrite(dirmoteurg,LOW);//on inverse le sens des moteurs
        analogWrite(vitmoteurd, vitessemin);//on met a la vitesse min car on tourne pas a gauche fortement
        analogWrite(vitmoteurg, vitessemax);//on met a la vitesse max car on va tourner a gauche
    }

    else if(y > rangeminbas && x > rangemindroite )
    {
        digitalWrite(dirmoteurd,LOW);//on inverse le sens des moteurs
        digitalWrite(dirmoteurg,LOW);//on inverse le sens des moteurs
        analogWrite(vitmoteurd, vitessemax);//on met a la vitesse max car on va tourner a droite
        analogWrite(vitmoteurg, vitessemin);//on met a la vitesse min car on tourne pas a droite fortement
    }
    
    else if(y > rangeminhaut && x <= rangemindroite && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);//on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);//on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);//on met a la vitesse max car on va tout droit
        analogWrite(vitmoteurg, vitessemax);//on met a la vitesse max car on va tout droit
    }

    else if(y <= rangeminhaut && y >= rangeminbas && x <= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);//on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);//on laisse le courant passer
        analogWrite(vitmoteurd, vitessenulle);//on met a la vitessenulle car on va a gauche
        analogWrite(vitmoteurg, vitessemax);//on met a la vitesse max car on va a gauche 
    }

    else if(y <= rangeminhaut && y >= rangeminbas && x >= rangemindroite)
    {
        digitalWrite(dirmoteurd,HIGH);//on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);//on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);//on met a la vitesse max car on va a droite
        analogWrite(vitmoteurg, vitessenulle);//on met a la vitessenulle car on va a droite
    }

    else if(y < rangeminbas && x <= rangemindroite && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,LOW);//on inverse le sens du courant 
        digitalWrite(dirmoteurg,LOW);//on inverse le sens du courant 
        analogWrite(vitmoteurd, vitessemax);//on met a la vitesse max car on va tout droit
        analogWrite(vitmoteurg, vitessemax);//on met a la vitesse max car on va tout droit
    }
    
    else if( y >= rangeminbas && y < rangenulle && x < rangenulle && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,LOW);//on va inverser le sens des moteurs
        digitalWrite(dirmoteurg,LOW);//on va inverser le sens des moteurs
        analogWrite(vitmoteurd, vitessenulle);//on met a la vitesse max car on va tourner lentement a gauche
        analogWrite(vitmoteurg, vitessemin);//on met a la vitesse max car on va tourner lentement a gauche
    }

     else if( y >= rangeminbas && y < rangenulle && x > rangenulle && x <= rangemindroite)
    {
        digitalWrite(dirmoteurd,LOW);//on va inverser le sens des moteurs
        digitalWrite(dirmoteurg,LOW);//on va inverser le sens des moteurs
        analogWrite(vitmoteurd, vitessemin);//on met a la vitesse max car on va tourner lentement a droite
        analogWrite(vitmoteurg, vitessenulle);//on met a la vitesse max car on va tourner lentement a droite
    }

    else if( y >= rangeminbas && y < rangenulle && x > rangenulle && x <= rangemindroite)
    {
        digitalWrite(dirmoteurd,HIGH);
        digitalWrite(dirmoteurg,HIGH);
        analogWrite(vitmoteurd, vitessemin);//on met a la vitesse max car on va tourner lentement a droite
        analogWrite(vitmoteurg, vitessenulle);//on met a la vitesse max car on va tourner lentement a droite
    }

    else if( y >= rangeminbas && y < rangenulle && x < rangenulle && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);
        digitalWrite(dirmoteurg,HIGH);
        analogWrite(vitmoteurd, vitessenulle);//on met a la vitesse max car on va tourner lentement a gauche
        analogWrite(vitmoteurg, vitessemin);//on met a la vitesse max car on va tourner lentement a gauche
    }

    else if(y==rangenulle && x==rangenulle)

    {
        analogWrite(vitmoteurd, vitessenulle);//on met a la vitesse à 0 car on veut s'areter
        analogWrite(vitmoteurg, vitessenulle);//on met a la vitesse à 0 car on veut s'areter
    }
}
    
void setup()

{
    //lancement de la communication 
    Serial.begin(115200);

    //lancement de l'app Blynk
    Blynk.begin(auth, ssid, pass);

    //on definit tous nos pin comme des sorties
    pinMode(vitmoteurd, OUTPUT);
    pinMode(vitmoteurg, OUTPUT);
    pinMode(dirmoteurd, OUTPUT);
    pinMode(dirmoteurg, OUTPUT);

    digitalWrite(vitmoteurd, LOW);//on n'allume pas directement les moteurs
    digitalWrite(vitmoteurg, LOW);//on n'allume pas directement les moteurs
    digitalWrite(dirmoteurd, HIGH);//on initialise dans le sens des moteurs
    digitalWrite(dirmoteurg, HIGH);//on initialise dans le sens des moteurs

}

void loop()

{
    Blynk.run();
}

BLYNK_WRITE(V1)

{

    int x = param[0].asInt();
    int y = param[1].asInt();
    controlmobilite(x,y);


}

And I’m sorry if there are mistake in the text english is not my main language and i’m still learning it :yum:

@bragdon please edit your post, using the pencil icon at the bottom, and change the characters that you’ve used at the top and bottom of your code to triple backticks so that the code displays correctly.
Triple backticks look like this:
```

Pete.

Thanks for the advice it does 5 min i’m trying to find the way to have the correct form but didin’t find it :grin:

and i forgot to mention it but i already try to redo the project, to change the phone, to change my password and name wifi but nothing change.
And while i’m at it, when i look at the monitor serie in Arduino IDE i just have somme characters who come one after an other but the most repiteted is the “?” but in the other sense.
u⸮⸮⸮G⸮R

When you use numbers like this, and then use them for pinMode and digitalWrite commands, the compiler assumes that you are referring to GPIO pins, rather than the numbers that are screen printed on to your NodeMCU.
The two are different, and GPIO’s 6-11 are special ports which are only available within the chip and writing to them will stop the chip from working correctly.

You should either put a “D” in front of these numbers, or replace them with the corresponding GPIO numbers (14, 12, 13 & 15)

Pete.

OH ok so it’s actually not the same thing between arduino and esp8266.
My bad to directly assume the fact that this was the same thing.
Anyways thank you Pete,
I will try it out and take you informed.

@ PeteKnight
So i did it but the problem is persisting, this is driving me crazy.

Post your full (modified) code and the output from your serial monitor.

Pete.

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

///declaration des emplacements on utilise les pins D5, D6; D7; D8 car ils sont en SPI
int vitmoteurd = D5;               
int vitmoteurg = D6; 
int dirmoteurd = D7;
int dirmoteurg = D8;   

///connexion en wifi
char auth[] = "xxx";///authentifiaction de l'app Blynk
char ssid[] = "xxx";///nom du wifi
char pass[] = "T10hom12fr#ed26";///mot de passe du wifi


///definition des valeurs joystick(Blynk)  
int rangenulle = 512;
int rangeminhaut = 712;
int rangeminbas = 312;
int rangemindroite = 712;
int rangemingauche = 312;


///definition de la vitesse
int vitessemin = 450;
int vitessemax = 1020;
int vitessenulle = 0;

///sous-programme controlant la mobilité
void controlmobilite(int y, int x)

{
  
    if(y > rangeminhaut && x > rangemindroite )
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tourner a droite
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse min car on tourne pas a droite fortement
    }

    else if(y > rangeminhaut && x < rangemingauche )
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse min car on tourne pas a gauche fortement
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tourner a gauche
    }

    else if(y > rangeminbas && x < rangemingauche )
    {
        digitalWrite(dirmoteurd,LOW);///on inverse le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on inverse le sens des moteurs
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse min car on tourne pas a gauche fortement
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tourner a gauche
    }

    else if(y > rangeminbas && x > rangemindroite )
    {
        digitalWrite(dirmoteurd,LOW);///on inverse le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on inverse le sens des moteurs
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tourner a droite
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse min car on tourne pas a droite fortement
    }
    
    else if(y > rangeminhaut && x <= rangemindroite && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tout droit
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tout droit
    }

    else if(y <= rangeminhaut && y >= rangeminbas && x <= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitessenulle car on va a gauche
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va a gauche 
    }

    else if(y <= rangeminhaut && y >= rangeminbas && x >= rangemindroite)
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va a droite
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitessenulle car on va a droite
    }

    else if(y < rangeminbas && x <= rangemindroite && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,LOW);///on inverse le sens du courant 
        digitalWrite(dirmoteurg,LOW);///on inverse le sens du courant 
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tout droit
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tout droit
    }
    
    else if( y >= rangeminbas && y < rangenulle && x < rangenulle && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,LOW);///on va inverser le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on va inverser le sens des moteurs
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitesse max car on va tourner lentement a gauche
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse max car on va tourner lentement a gauche
    }

     else if( y >= rangeminbas && y < rangenulle && x > rangenulle && x <= rangemindroite)
    {
        digitalWrite(dirmoteurd,LOW);///on va inverser le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on va inverser le sens des moteurs
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse max car on va tourner lentement a droite
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitesse max car on va tourner lentement a droite
    }

    else if( y >= rangeminbas && y < rangenulle && x > rangenulle && x <= rangemindroite)
    {
        digitalWrite(dirmoteurd,HIGH);
        digitalWrite(dirmoteurg,HIGH);
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse max car on va tourner lentement a droite
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitesse max car on va tourner lentement a droite
    }

    else if( y >= rangeminbas && y < rangenulle && x < rangenulle && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);
        digitalWrite(dirmoteurg,HIGH);
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitesse max car on va tourner lentement a gauche
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse max car on va tourner lentement a gauche
    }

    else if(y==rangenulle && x==rangenulle)

    {
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitesse à 0 car on veut s'areter
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitesse à 0 car on veut s'areter
    }
}
    
void setup()

{
    ///lancement de la communication 
    Serial.begin(115200);

    ///lancement de l'app Blynk
    Blynk.begin(auth, ssid, pass);

    ///on definit tous nos pin comme des sorties
    pinMode(vitmoteurd, OUTPUT);
    pinMode(vitmoteurg, OUTPUT);
    pinMode(dirmoteurd, OUTPUT);
    pinMode(dirmoteurg, OUTPUT);

    digitalWrite(vitmoteurd, LOW);///on n'allume pas directement les moteurs
    digitalWrite(vitmoteurg, LOW);///on n'allume pas directement les moteurs
    digitalWrite(dirmoteurd, HIGH);///on initialise dans le sens des moteurs
    digitalWrite(dirmoteurg, HIGH);///on initialise dans le sens des moteurs

}

void loop()

{
    Blynk.run();
}

BLYNK_WRITE(V1)

{

    int x = param[0].asInt();
    int y = param[1].asInt();
    controlmobilite(x,y);

}


i don’t know how to copy paste the output of the serial monitor so i did a screen

@PeteKnight when i try to crtl A +crtl C in the chat, just this appears

t*⸮ 

Highlight the text using the mouse then copy with CTRL C

Pete.

I know I know but this is the problem when I’m doing it, it is just taking this I don’t know why…

When you view your serial monitor, is it showing legible information?

If so, then maybe restarting your PC will clear your paste buffer.

Pete.

When I’m using the monitor Serie I can see something but the probleme is that he has no meaning behind it. It is like in the picture I send, a lot of character with no meaning because they don’t even exist on my keyboard after I know that he can be related with ascii code but anyways it has no meaning in this context. The monitors always sends me this and the inverse interrogation point is the most repetitive.
And I already try to restart my PC and my phone and even to change the USB port but nothing change😭

What baud rate is your serial monitor set to, in the bottom right hand corner?

Pete.

First EDIT : @PeteKnight Sorry Pete I’m writing some stupidities, I don’t have more reply allowed so I will used this one and mention u into the message idk if u will see it.
But my baud rate is 9600 in my monitor serie

Second EDIT : @PeteKnight Sorry So like I said i don’t have more reply for 13 hours because visibly there is a restraint on how many message a new user can post. I try to bypass it but like u say it is wrong and not acceptable so i understand for the seconde account. So i change my baud rate to 115200 in the monitor serie and now i can see some information
i will post it here

[35074] Connected to WiFi
[35074] IP: 192.168.43.128
[35074] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on NodeMCU

[35081] Connecting to blynk-cloud.com:80
[38176] Login timeout
[40176] Connecting to blynk-cloud.com:80
[43207] Login timeout
[45207] Connecting to blynk-cloud.com:80
[48248] Login timeout
[50248] Connecting to blynk-cloud.com:80
[55282] Connecting to blynk-cloud.com:80
[58315] Login timeout
[60315] Connecting to blynk-cloud.com:80
[65362] Connecting to blynk-cloud.com:80
[68410] Login timeout
[70410] Connecting to blynk-cloud.com:80
[75450] Connecting to blynk-cloud.com:80
[78490] Login timeout
[80490] Connecting to blynk-cloud.com:80
[83518] Login timeout
[85518] Connecting to blynk-cloud.com:80
[88598] Login timeout
[90598] Connecting to blynk-cloud.com:80
[93638] Login timeout
[95638] Connecting to blynk-cloud.com:80
[100679] Connecting to blynk-cloud.com:80
[103968] Login timeout
[105968] Connecting to blynk-cloud.com:80
[111293] Connecting to blynk-cloud.com:80
[114413] Login timeout
[116413] Connecting to blynk-cloud.com:80
[119449] Login timeout
[121449] Connecting to blynk-cloud.com:80
[124652] Login timeout
[126652] Connecting to blynk-cloud.com:80
[129773] Login timeout
[131773] Connecting to blynk-cloud.com:80
[136808] Connecting to blynk-cloud.com:80
[139829] Login timeout
[141829] Connecting to blynk-cloud.com:80
[146858] Connecting to blynk-cloud.com:80
[149889] Login timeout
[151889] Connecting to blynk-cloud.com:80
[157168] Connecting to blynk-cloud.com:80
[160208] Login timeout
[162208] Connecting to blynk-cloud.com:80
[165237] Login timeout
[167237] Connecting to blynk-cloud.com:80
[172527] Connecting to blynk-cloud.com:80
[175574] Login timeout
[177574] Connecting to blynk-cloud.com:80
[182620] Connecting to blynk-cloud.com:80
[185659] Login timeout
[187659] Connecting to blynk-cloud.com:80
[192802] Connecting to blynk-cloud.com:80
[195837] Login timeout
[197837] Connecting to blynk-cloud.com:80
[200878] Login timeout
[202878] Connecting to blynk-cloud.com:80
[205919] Login timeout
[207919] Connecting to blynk-cloud.com:80
[210960] Login timeout
[212960] Connecting to blynk-cloud.com:80
[218007] Connecting to blynk-cloud.com:80
[221049] Login timeout
[223049] Connecting to blynk-cloud.com:80
[228088] Connecting to blynk-cloud.com:80
[231118] Login timeout
[233118] Connecting to blynk-cloud.com:80
[238158] Connecting to blynk-cloud.com:80
[241200] Login timeout
[243200] Connecting to blynk-cloud.com:80
[246249] Login timeout
[248249] Connecting to blynk-cloud.com:80
[253288] Connecting to blynk-cloud.com:80
[256357] Login timeout
[258357] Connecting to blynk-cloud.com:80

THIRD EDIT : @PeteKnight I did but nothing change
the new code is

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

///declaration des emplacements on utilise les pins D5, D6; D7; D8 car ils sont en SPI
int vitmoteurd = D5;               
int vitmoteurg = D6; 
int dirmoteurd = D7;
int dirmoteurg = D8;   

///connexion en wifi
char auth[] = " SHtS-1OgjiyZt0OfQffvL-guL2n9NmQz ";///authentifiaction de l'app Blynk
char ssid[] = "ThomasD";///nom du wifi of your home and not ur phone
char pass[] = "T10hom12fr#ed26";///mot de passe du wifi


///definition des valeurs joystick(Blynk)  
int rangenulle = 512;
int rangeminhaut = 712;
int rangeminbas = 312;
int rangemindroite = 712;
int rangemingauche = 312;


///definition de la vitesse
int vitessemin = 450;
int vitessemax = 1020;
int vitessenulle = 0;

///sous-programme controlant la mobilité
void controlmobilite(int y, int x)

{
  
    if(y > rangeminhaut && x > rangemindroite )
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tourner a droite
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse min car on tourne pas a droite fortement
    }

    else if(y > rangeminhaut && x < rangemingauche )
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse min car on tourne pas a gauche fortement
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tourner a gauche
    }

    else if(y > rangeminbas && x < rangemingauche )
    {
        digitalWrite(dirmoteurd,LOW);///on inverse le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on inverse le sens des moteurs
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse min car on tourne pas a gauche fortement
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tourner a gauche
    }

    else if(y > rangeminbas && x > rangemindroite )
    {
        digitalWrite(dirmoteurd,LOW);///on inverse le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on inverse le sens des moteurs
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tourner a droite
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse min car on tourne pas a droite fortement
    }
    
    else if(y > rangeminhaut && x <= rangemindroite && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tout droit
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tout droit
    }

    else if(y <= rangeminhaut && y >= rangeminbas && x <= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitessenulle car on va a gauche
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va a gauche 
    }

    else if(y <= rangeminhaut && y >= rangeminbas && x >= rangemindroite)
    {
        digitalWrite(dirmoteurd,HIGH);///on laisse le courant passer
        digitalWrite(dirmoteurg,HIGH);///on laisse le courant passer
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va a droite
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitessenulle car on va a droite
    }

    else if(y < rangeminbas && x <= rangemindroite && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,LOW);///on inverse le sens du courant 
        digitalWrite(dirmoteurg,LOW);///on inverse le sens du courant 
        analogWrite(vitmoteurd, vitessemax);///on met a la vitesse max car on va tout droit
        analogWrite(vitmoteurg, vitessemax);///on met a la vitesse max car on va tout droit
    }
    
    else if( y >= rangeminbas && y < rangenulle && x < rangenulle && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,LOW);///on va inverser le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on va inverser le sens des moteurs
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitesse max car on va tourner lentement a gauche
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse max car on va tourner lentement a gauche
    }

     else if( y >= rangeminbas && y < rangenulle && x > rangenulle && x <= rangemindroite)
    {
        digitalWrite(dirmoteurd,LOW);///on va inverser le sens des moteurs
        digitalWrite(dirmoteurg,LOW);///on va inverser le sens des moteurs
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse max car on va tourner lentement a droite
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitesse max car on va tourner lentement a droite
    }

    else if( y >= rangeminbas && y < rangenulle && x > rangenulle && x <= rangemindroite)
    {
        digitalWrite(dirmoteurd,HIGH);
        digitalWrite(dirmoteurg,HIGH);
        analogWrite(vitmoteurd, vitessemin);///on met a la vitesse max car on va tourner lentement a droite
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitesse max car on va tourner lentement a droite
    }

    else if( y >= rangeminbas && y < rangenulle && x < rangenulle && x >= rangemingauche)
    {
        digitalWrite(dirmoteurd,HIGH);
        digitalWrite(dirmoteurg,HIGH);
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitesse max car on va tourner lentement a gauche
        analogWrite(vitmoteurg, vitessemin);///on met a la vitesse max car on va tourner lentement a gauche
    }

    else if(y==rangenulle && x==rangenulle)

    {
        analogWrite(vitmoteurd, vitessenulle);///on met a la vitesse à 0 car on veut s'areter
        analogWrite(vitmoteurg, vitessenulle);///on met a la vitesse à 0 car on veut s'areter
    }
}
    
void setup()

{
    ///lancement de la communication 
    Serial.begin(115200);

    ///lancement de l'app Blynk
    Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8080);

    ///on definit tous nos pin comme des sorties
    pinMode(vitmoteurd, OUTPUT);
    pinMode(vitmoteurg, OUTPUT);
    pinMode(dirmoteurd, OUTPUT);
    pinMode(dirmoteurg, OUTPUT);

    digitalWrite(vitmoteurd, LOW);///on n'allume pas directement les moteurs
    digitalWrite(vitmoteurg, LOW);///on n'allume pas directement les moteurs
    digitalWrite(dirmoteurd, HIGH);///on initialise dans le sens des moteurs
    digitalWrite(dirmoteurg, HIGH);///on initialise dans le sens des moteurs

}

void loop()

{
    Blynk.run();
}

BLYNK_WRITE(V1)

{

    int x = param[0].asInt();
    int y = param[1].asInt();
    controlmobilite(x,y);

}

LAST EDIT BECAUSE I FIND THE ANSWER
@PeteKnight I find the solution on an other post where u already respond to my problem
My problem was that i put my phone with a direct connection with the esp8266. So it was not working because of this so now I put my home wifi on my phone and in the code and now it is working.
SO thank you Pete, I’m glad that you help me.
Goodbye and have a nice day :grin:

That isn’t what I asked…

Pete.

So, you’re telling your NodeMCU to send data to your PC at 115200, but you’re telling your PC to expect that data at 9600.

Can you see the problem with that approach?

Pete.

1 Like

Creating a second account is unacceptable behaviour on this forum.
Your second account has been deactivated. Please don’t create duplicate accounts in future, otherwise your email an IP addresses will be blocked.

Your original account is not blocked, so ther should be no restrictions on you posting using that account.

Pete.