NodeMCU Motor Shield L293D for ESP12E + Blynk
Control DC Motor via WIFI using L293D Motor Shield Board for ESP8266 use the app Blynk
http://www.blynk.cc/
Link Sketch : https://github.com/makertut/NodeMCU-L298D
::::::::::: SUPPORT CHANNEL ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Please Donate To Help Me Afford New Equipment And Software To Make My Videos More : https://goo.gl/1m8Dg2
Don’t forget to subscribe!
, https://i.ytimg.com/vi/sEjhM3cMlhc/hqdefault.jpg
source
OMFG FIIINNNAAALYYY.
After 7 Hours of work and search i was nearly giving up. This tutorial not even gave me access to a Smartphone-control it even let me understand the shield. I wasnt able to let them run on my own. THANK YOU.
hello. i am a newb. i need to know where and how to get the library/code to make this work. help me please
Can The Code be used for 1 stepper motor (NEMA 17), Tks ?
This is great
if (person == girl && person == engg )
{
serial write ( !! CRUSH !! ) ;
}
hello, do you have any tutorial where to use the timer?
Hello, I want to know what is the librairy for the code. I upload all the possible librairy but it doesn't work
ty and have a good day or night
How can I find the arduino code?!?!
muy bueno
are there any schematics or datasheet for the expansion module board ( L298) ? How do you know what GPIO control the motors?
help , …please you send me for sketch program ……………..
very useful video. Thanks.
Is 2000 energy balance necessary?
Why you used l293d? Not l298n?
Can you perform this similar experiment with esp32 board and L293d expansion module?
Can I directly link 7.4v lipo battery to the shield?
Potential malware on the qBqDBa link, lots of redirects. Poster please fix that link or remove it. Good video besides that. Thank you.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define derechaMotorSpeed D5 //14
#define derechaMotorDir D6 //12
#define izquierdaMotorSpeed D7 //13
#define izquierdaMotorDir D8 //15
char outh[] = "copiar el token ";
char ssid[] = "……….";
char pass[] = "…….";
int minRango = 312;
int maxRango = 712;
int minvelocidad = 450;
int maxvelocidad = 1020;
int novelocidad = 0;
void moveControl(int x, int y)
{
if(y >= maxRango && x >= minRango && x<= maxRango)
{
digitalWrite(derechaMotorDir,HIGH);
digitalWrite(izquierdaMotorDir,HIGH);
analogWrite(derechaMotorSpeed, maxvelocidad);
analogWrite(izquierdaMotorSpeed, maxvelocidad);
}
else if(x >= maxRango && y >= maxRango)
{
digitalWrite(derechaMotorDir, HIGH);
digitalWrite(izquierdaMotorDir,HIGH);
analogWrite(derechaMotorSpeed,minvelocidad);
analogWrite(izquierdaMotorSpeed,maxvelocidad);
}
else if(x <= minRango && y >= maxRango)
{
digitalWrite(derechaMotorDir,HIGH);
digitalWrite(izquierdaMotorDir,HIGH);
analogWrite(derechaMotorSpeed,maxvelocidad);
analogWrite(izquierdaMotorSpeed,minvelocidad);
}
else if(y < maxRango && y > minRango && x < maxRango && x > minRango)
{
analogWrite(derechaMotorSpeed,novelocidad);
analogWrite(izquierdaMotorSpeed, novelocidad);
}
else if(y <= minRango && x >= minRango && x <= maxRango)
{
digitalWrite(derechaMotorDir,LOW);
digitalWrite(izquierdaMotorDir,LOW);
analogWrite(derechaMotorSpeed,maxvelocidad);
analogWrite(izquierdaMotorSpeed,maxvelocidad);
}
else if(y <= minRango && x <= minRango)
{
digitalWrite(derechaMotorDir,LOW);
digitalWrite(izquierdaMotorDir,LOW);
analogWrite(derechaMotorSpeed,minvelocidad);
analogWrite(izquierdaMotorSpeed,maxvelocidad);
}
else if(y <= minRango && x >= maxRango)
{
digitalWrite(derechaMotorDir,LOW);
digitalWrite(izquierdaMotorDir,LOW);
analogWrite(derechaMotorSpeed,maxvelocidad);
analogWrite(izquierdaMotorSpeed,minvelocidad);
}
}
void setup()
{
Serial.begin(9600);
Blynk.begin(outh, ssid, pass);
pinMode(derechaMotorSpeed, OUTPUT);
pinMode(izquierdaMotorSpeed, OUTPUT);
pinMode(derechaMotorDir, OUTPUT);
pinMode(izquierdaMotorDir, OUTPUT);
digitalWrite(derechaMotorSpeed, LOW);
digitalWrite(izquierdaMotorSpeed, LOW);
digitalWrite(derechaMotorDir, HIGH);
digitalWrite(izquierdaMotorDir, HIGH);
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(V1)
{
int x = param[0].asInt();
int y = param[1].asInt();
moveControl(x,y);
}
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define derechaMotorSpeed D5 //14
#define derechaMotorDir D6 //12
#define izquierdaMotorSpeed D7 //13
#define izquierdaMotorDir D8 //15
char outh[] = "copiar el token ";
char ssid[] = "……….";
char pass[] = "…….";
int minRango = 312;
int maxRango = 712;
int minvelocidad = 450;
int maxvelocidad = 1020;
int novelocidad = 0;
void moveControl(int x, int y)
{
if(y >= maxRango && x >= minRango && x<= maxRango)
{
digitalWrite(derechaMotorDir,HIGH);
digitalWrite(izquierdaMotorDir,HIGH);
analogWrite(derechaMotorSpeed, maxvelocidad);
analogWrite(izquierdaMotorSpeed, maxvelocidad);
}
else if(x >= maxRango && y >= maxRango)
{
digitalWrite(derechaMotorDir, HIGH);
digitalWrite(izquierdaMotorDir,HIGH);
analogWrite(derechaMotorSpeed,minvelocidad);
analogWrite(izquierdaMotorSpeed,maxvelocidad);
}
else if(x <= minRango && y >= maxRango)
{
digitalWrite(derechaMotorDir,HIGH);
digitalWrite(izquierdaMotorDir,HIGH);
analogWrite(derechaMotorSpeed,maxvelocidad);
analogWrite(izquierdaMotorSpeed,minvelocidad);
}
else if(y < maxRango && y > minRango && x < maxRango && x > minRango)
{
analogWrite(derechaMotorSpeed,novelocidad);
analogWrite(izquierdaMotorSpeed, novelocidad);
}
else if(y <= minRango && x >= minRango && x <= maxRango)
{
digitalWrite(derechaMotorDir,LOW);
digitalWrite(izquierdaMotorDir,LOW);
analogWrite(derechaMotorSpeed,maxvelocidad);
analogWrite(izquierdaMotorSpeed,maxvelocidad);
}
else if(y <= minRango && x <= minRango)
{
digitalWrite(derechaMotorDir,LOW);
digitalWrite(izquierdaMotorDir,LOW);
analogWrite(derechaMotorSpeed,minvelocidad);
analogWrite(izquierdaMotorSpeed,maxvelocidad);
}
else if(y <= minRango && x >= maxRango)
{
digitalWrite(derechaMotorDir,LOW);
digitalWrite(izquierdaMotorDir,LOW);
analogWrite(derechaMotorSpeed,maxvelocidad);
analogWrite(izquierdaMotorSpeed,minvelocidad);
}
}
void setup()
{
Serial.begin(9600);
Blynk.begin(outh, ssid, pass);
pinMode(derechaMotorSpeed, OUTPUT);
pinMode(izquierdaMotorSpeed, OUTPUT);
pinMode(derechaMotorDir, OUTPUT);
pinMode(izquierdaMotorDir, OUTPUT);
digitalWrite(derechaMotorSpeed, LOW);
digitalWrite(izquierdaMotorSpeed, LOW);
digitalWrite(derechaMotorDir, HIGH);
digitalWrite(izquierdaMotorDir, HIGH);
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(V1)
{
int x = param[0].asInt();
int y = param[1].asInt();
moveControl(x,y);
}
Cannot open sketch
Amigo, seguindo teus tutoriais, cheguei neste projeto muito bacana, que estou com um parecido mais enrosquei no scetch, percebo que o amigo é bom de coração. Gostaria se possível o Sr. enviar o sketh deste projeto no meu e-mail santosre04@yahoo.com.br, fico agradecido.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define RightMotorSpeed 5
#define RightMotorDir 0
#define LeftMotorSpeed 4
#define LeftMotorDir 2
char outh[] = "………………";
char ssid[] = "…………..";
char pass[] = "……………";
int minRange = 312;
int maxRange = 712;
int minSpeed = 450;
int maxSpeed = 1020;
int noSpeed = 0;
void moveControl(int x, int y)
{
if(y >= maxRange && x >= minRange && x<= maxRange)
{
digitalWrite(RightMotorDir,HIGH);
digitalWrite(LeftMotorDir,HIGH);
analogWrite(RightMotorSpeed, maxSpeed);
analogWrite(LeftMotorSpeed, maxSpeed);
}
else if(x >= maxRange && y >= maxRange)
{
digitalWrite(RightMotorDir, HIGH);
digitalWrite(LeftMotorDir,HIGH);
analogWrite(RightMotorSpeed,minSpeed);
analogWrite(LeftMotorSpeed,maxSpeed):
}
else if(x <= minRange && y >= maxRange)
{
digitalWrite(RightMotorDir,HIGH);
digitalWrite(LeftMotorDir,HIGH);
analogWrite(RightMotorSpeed,maxSpeed);
analogWrite(LeftMotorSpeed,minSpeed);
}
else if(y < maxRange && y > minRange && x < maxRange && x > minRange)
{
analogWrite(RightMotorSpeed,noSpeed);
analogWrite(LeftMotorSpeed, noSpeed);
}
else if(y <= minRange && x >= minRange && x <= maxRange)
{
digitalWrite(RightMotorDir,LOW);
digitalWrite(LeftMotorDir,LOW);
analogWrite(RightMotorSpeed,maxSpeed);
analogWrite(LeftMotorSpeed,maxSpeed);
}
else if(Y <= minRange && x <= minRange)
{
digitalWrite(RightMotorDir,LOW);
digitalWrite(LeftMotorDir,LOW);
analogWrite(RightMotorSpeed,minSpeed);
analogWrite(LeftMotorSpeed,maxSpeed);
}
else if(y <= minRange && x >= maxRange)
{
digitalWrite(RightMotorDir,LOW);
digitalWrite(LeftMotorDir,LOW);
analogWrite(RightMotorSpeed,maxSpeed);
analogWrite(LeftMotorSpeed,minSpeed):
}
}
void setup()
{
Serial.begin(9600);
Blynk.begin(outh, ssid, pass);
pinMode(RightMotorSpeed, OUTPUT);
pinMode(LeftMotorSpeed, OUTPUT);
pinMode(RightMotorDir, OUTPUT);
pinMode(LeftMotorDir, OUTPUT);
digitalWrite(RightMotorSpeed, LOW);
digitalWrite(LeftMotorSpeed, LOW);
digitalWrite(RightMotorDir, HIGH);
digitalWrite(LeftMotorDir, HIGH);
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(V1)
{
int x = param[0].asInt();
int y = param[1].asInt();
moveControl(x,y);
}
I am having difficulty getting to your sketch the URL is bad. I would really like to see it, thanks in advance
The link to the code is to site no longer in use. The redirection doesn't work as the page (domain) is not found.
Thanks a lot
I have a problem, the problem is that the phone won't connect with the robot and they said wasn't online yet while I do a perfect televerering. Can anybody answer me ?
really good video !!!!!
al colocar la placa no se conecta con blynk. por que puede ser ?
I was happy to make my car working yesterday using the almost the same setup of Maker Tutor including the sketch code (thanks Make Tutor). I added to the Sketch forward turn left and right and a "shortcut" on the Motor Shield board (vin and vm)(look closely at the image: img_2304). I used 1S battery (I burned three NodeMCU module boards due to inappropriated voltages!). I add some photos here: http://tomatofamily.net/personal/IMG_2300.jpg; http://tomatofamily.net/personal/IMG_2301.jpg; http://tomatofamily.net/personal/IMG_2302.jpg; http://tomatofamily.net/personal/IMG_2303.jpg; http://tomatofamily.net/personal/IMG_2304.jpg. The different colour wires soldered on the motors give proper directions, which I experimented before.
cannot find ESP8266WiFi.h
Спасибо, за идею, класс! Это третий вариант который я пытался запустить. Бился, но скетчи не загружались, думал проблеммы с библиотеками. Оказалось что антивирус мне всё портил, отключил, прошилось! Но появитась вторая проблемма, 2 x шилда которые я заказал оказались бракованными (((( Жду новые.
Nice very nice
Actually you can use any motor shield for esp models and it's work just choose right female to male jumpier Wires
класс. спасибо .завелось с первого раза .вы лучшие !!!!!
I have one problem can you help me?
When I upload sketch to nodeMCU board, arduino program repords error "lynkSimpleEsp8266.h: No such file or directory"