BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Hii I am very new to Blynk please help me


#1

hii I am very new to Blynk please help me.
This is my code:-
#include <ESP8266_SoftSer.h>
#include <BlynkSimpleShieldEsp8266_SoftSer.h>
// Set ESP8266 Serial object
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(0,1); // RX, TX
ESP8266 WiFi(EspSerial);
char auth[]= “265d5d3975a5493787311b5835dd4b8f”;
char ssid[]= “Newton”;
char pass[]= “shashank103”;
int flf= 13;
int flr= 12;
int frf= 2;
int frr= 4;
int blf= 8;
int blr= 7;
int brf= 6;
int brr= 5;
void forward(){
digitalWrite(flf,HIGH);
digitalWrite(flr, LOW);
digitalWrite(frf, HIGH);
digitalWrite(frr,LOW);
digitalWrite(blf,HIGH);
digitalWrite(blr,LOW);
digitalWrite(brf,HIGH);
digitalWrite(brr, LOW);
}
void backward(){
digitalWrite(flf,LOW);
digitalWrite(flr, HIGH);
digitalWrite(frf, LOW);
digitalWrite(frr,HIGH);
digitalWrite(blf,LOW);
digitalWrite(blr, HIGH);
digitalWrite(brf,LOW);
digitalWrite(brr,HIGH);
}
void right(){
digitalWrite(flf,HIGH);
digitalWrite(flr, LOW);
digitalWrite(frf, LOW);
digitalWrite(frr,HIGH);
digitalWrite(blf,HIGH);
digitalWrite(blr,LOW);
digitalWrite(brf,LOW);
digitalWrite(brr,HIGH);
}
void left(){
digitalWrite(flf,LOW);
digitalWrite(flr,HIGH);
digitalWrite(frf, HIGH);
digitalWrite(frr,LOW);
digitalWrite(blf,LOW);
digitalWrite(blr,HIGH);
digitalWrite(brf,HIGH);
digitalWrite(brr, LOW);
}
void stopp(){
digitalWrite(flf,LOW);
digitalWrite(flr, LOW);
digitalWrite(frf,LOW);
digitalWrite(frr,LOW);
digitalWrite(blf,LOW);
digitalWrite(blr,LOW);
digitalWrite(brf,LOW);
digitalWrite(brr, LOW);
}
void setup() {
Serial.begin(9600);
delay(10);
EspSerial.begin(115200);
delay(10);
Blynk.begin(auth,WiFi,ssid,pass);
pinMode(flf,OUTPUT);
pinMode(flr,OUTPUT);
pinMode(blf,OUTPUT);
pinMode(blr,OUTPUT);
pinMode(frf,OUTPUT);
pinMode(frr,OUTPUT);
pinMode(brf,OUTPUT);
pinMode(brr,OUTPUT);
// put your setup code here, to run once:

}
BLYNK_WRITE(V1)
{
int x= param[0].asInt();
int y= param[1].asInt();
if(y>220){
forward();
}
else if (y<35){
backward();
}
else if(x>220){
right();
}
else if(x<35){
left();
}
else{
stopp();
}
}
void loop() {
Blynk.run();
// put your main code here, to run repeatedly:
}

I don’t know what to do next.
Please helpme.


Blynk for Beginners and help with your project
#2

Hello.

Please start off with reading the Welcome Topic and then fix your post by properly formatting your code for viewability

Then tell us what you are having problems understanding… in detail, not just “help me”.

Be aware that we are here to help you Learn about BlynkNot to fix your code, and not to teach you how to program.

Also… while awaiting further help, if available… you will read through the Documentation and the Help Center (all those links are at the top right of this page… scroll up if you can’t see them), as those pages will probably answer most of your questions.

Thank you.


#3

Also ESP8266_SoftSer is not used for 2 years already I think. Update your libraries :wink: