- First Download the code from the link below. Now open Arduino and Go to File>New.
- Now a new window will appear. Next, Delete all the existing code and Paste the given code.
- In the code, you will find Additional Board Manager URL now copy the URL and do the next step. For Different OS you have a different option.
- MAC: Go to Arduino > Preferences
- Windows: Fille > Preferences
- Now Paste it in the Additional Board Manager URL section and press Ok.
- Now go to Tools > Board > Boards Manager
- Search for ‘ESP8266‘ and install the latest version.
- After the installation Then go to Tools > Board and then select the ESP-12E Module. So, The Board is selected Now.
- Next, Select the Right COM Port.
- Then compile the Programme First and then Upload to NodeMCU. After a few seconds, the code will be compiled and then Uploaded to NodeMCU Car.
Additional Board Manager URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json
Step 1
- Connect the Car with the battery.
- Now Install the Application link below.
- Connect with the WiFi. In the general case, you will find the Wifi SSID is ‘Make DIY’. You can change the wifi Name by changing the SSID.
- Now open the app and you will be able to control the car with the app.
- The car also has a speed slider by which you can control the speed of the WiFi car Using NodeMCU.
Troubleshoot:
Here I am defining some general troubleshoot of the car.
Not Moving Right Direction:
- Suppose you are pressing the forward button but the car is going to the back or it is rotating to the clockwise or anticlockwise direction. Then you have to do a simple step.
- Just face your car to the forward direction and then press the forward button.
- Next check which wheel is rotating which side.
- If it is rotating in the wrong direction then change motor wires. And your problem will be solved.
**I will add more Troubleshoot for WiFi car Using NodeMCU if I get more.
NodeMCU WiFi controlled Car Code:
#define ENA 14 // Enable/speed motors Right GPIO14(D5)
#define ENB 12 // Enable/speed motors Left GPIO12(D6)
#define IN_1 15 // L298N in1 motors Rightx GPIO15(D8)
#define IN_2 13 // L298N in2 motors Right GPIO13(D7)
#define IN_3 2 // L298N in3 motors Left GPIO2(D4)
#define IN_4 0 // L298N in4 motors Left GPIO0(D3)
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
String command; //String to store app command state.
int speedCar = 800; // 400 - 1023.
int speed_Coeff = 3;
const char* ssid = "Make DIY";
ESP8266WebServer server(80);
void setup() {
pinMode(ENA, OUTPUT);
pinMode(ENB, OUTPUT);
pinMode(IN_1, OUTPUT);
pinMode(IN_2, OUTPUT);
pinMode(IN_3, OUTPUT);
pinMode(IN_4, OUTPUT);
Serial.begin(115200);
// Connecting WiFi
WiFi.mode(WIFI_AP);
WiFi.softAP(ssid);
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
// Starting WEB-server
server.on ( "/", HTTP_handleRoot );
server.onNotFound ( HTTP_handleRoot );
server.begin();
}
void goAhead(){
digitalWrite(IN_1, LOW);
digitalWrite(IN_2, HIGH);
analogWrite(ENA, speedCar);
digitalWrite(IN_3, LOW);
digitalWrite(IN_4, HIGH);
analogWrite(ENB, speedCar);
}
void goBack(){
digitalWrite(IN_1, HIGH);
digitalWrite(IN_2, LOW);
analogWrite(ENA, speedCar);
digitalWrite(IN_3, HIGH);
digitalWrite(IN_4, LOW);
analogWrite(ENB, speedCar);
}
void goRight(){
digitalWrite(IN_1, HIGH);
digitalWrite(IN_2, LOW);
analogWrite(ENA, speedCar);
digitalWrite(IN_3, LOW);
digitalWrite(IN_4, HIGH);
analogWrite(ENB, speedCar);
}
void goLeft(){
digitalWrite(IN_1, LOW);
digitalWrite(IN_2, HIGH);
analogWrite(ENA, speedCar);
digitalWrite(IN_3, HIGH);
digitalWrite(IN_4, LOW);
analogWrite(ENB, speedCar);
}
void goAheadRight(){
digitalWrite(IN_1, LOW);
digitalWrite(IN_2, HIGH);
analogWrite(ENA, speedCar/speed_Coeff);
digitalWrite(IN_3, LOW);
digitalWrite(IN_4, HIGH);
analogWrite(ENB, speedCar);
}
void goAheadLeft(){
digitalWrite(IN_1, LOW);
digitalWrite(IN_2, HIGH);
analogWrite(ENA, speedCar);
digitalWrite(IN_3, LOW);
digitalWrite(IN_4, HIGH);
analogWrite(ENB, speedCar/speed_Coeff);
}
void goBackRight(){
digitalWrite(IN_1, HIGH);
digitalWrite(IN_2, LOW);
analogWrite(ENA, speedCar/speed_Coeff);
digitalWrite(IN_3, HIGH);
digitalWrite(IN_4, LOW);
analogWrite(ENB, speedCar);
}
void goBackLeft(){
digitalWrite(IN_1, HIGH);
digitalWrite(IN_2, LOW);
analogWrite(ENA, speedCar);
digitalWrite(IN_3, HIGH);
digitalWrite(IN_4, LOW);
analogWrite(ENB, speedCar/speed_Coeff);
}
void stopRobot(){
digitalWrite(IN_1, LOW);
digitalWrite(IN_2, LOW);
analogWrite(ENA, speedCar);
digitalWrite(IN_3, LOW);
digitalWrite(IN_4, LOW);
analogWrite(ENB, speedCar);
}
void loop() {
server.handleClient();
command = server.arg("State");
if (command == "F") goAhead();
else if (command == "B") goBack();
else if (command == "L") goLeft();
else if (command == "R") goRight();
else if (command == "I") goAheadRight();
else if (command == "G") goAheadLeft();
else if (command == "J") goBackRight();
else if (command == "H") goBackLeft();
else if (command == "0") speedCar = 400;
else if (command == "1") speedCar = 470;
else if (command == "2") speedCar = 540;
else if (command == "3") speedCar = 610;
else if (command == "4") speedCar = 680;
else if (command == "5") speedCar = 750;
else if (command == "6") speedCar = 820;
else if (command == "7") speedCar = 890;
else if (command == "8") speedCar = 960;
else if (command == "9") speedCar = 1023;
else if (command == "S") stopRobot();
}
void HTTP_handleRoot(void) {
if( server.hasArg("State") ){
Serial.println(server.arg("State"));
}
server.send ( 200, "text/html", "" );
delay(1);
}
Credit – Make DIY
Department of Anesthesiology, Mayo Clinic, Rochester, MN, USA buy cialis online 20mg
Great goods from you, man. I have have in mimd
your stuff prior to and you’re simply extremely fantastic.
I actually like what you’ve bought right here, certainly like what you’re sayijng and the
way in which by which you are saying it. You are making it entertaining and you sttill care for to stay it wise.
I can’t wait to learn much more from you. That is actually a great site.
Here iis my website: http://arspun.com/comment/html/?203026.html
– SPASOWAĆ (nic nie wrzuca i wycofuje się z rozgrywki), albo WEJŚĆ (czyli wrzuca $3 – bo na razie dał tylko $1), albo też PODBIĆ (czyli wrzucić powyżej $3). Załóżmy, że gracz WCHODZI. Gracz 3 robi to samo (ale wrzuca tylko $2, bo dał już wcześniej $2 „dużą ciemną”). Gracz 4 i Gracz 5 PASUJĄ. Poczekaj na dobrą rękę i zagraj małą, niewinną dziewczynkę, która boi się dużego, złego wilka. Nie wdawaj się w liczne bezsensowne potyczki. Nieważne, jaki jesteś cudowny, w pokerze chodzi o profit i podejmowanie dobrych decyzji w odpowiednim momencie, a nie o to, żeby być szeryfem przy stole. Please let us know about the problem by visiting our Help Center and contacting us with the URL and/or the page from which you linked to get here.
https://lukaswtng432198.blogdeazar.com/15565997/888-poker-jak-wyplacic
Bonusy kasynowe są jedną z najlepszych rzeczy, oferowanych przez kasyna online! Te bonusy są zazwyczaj oferowane w formie procentu do maksymalnej kwoty. 50 Darmowych Spinów i do 4000 zł w bonusie na start w kasynie Betsson Sekrety Do Wygrania W Kasynie – 50 FS dla nowych graczy w kasyno online Buffstreams to strona z transmisjami sportowymi na żywo, która udostępnia je zupełnie za darmo. Witryna powstała tak, aby zmaksymalizować użyteczność i niezawodność dla jej użytkowników. Przykładem mogą być przyciski „Live Now” i „Upcoming”, które informują o aktualnych streamach online i tych nadchodzących. Sporty dostępne na stronie obejmuja piłkę nożną, koszykówkę, tenis ziemny, hokej na lodzie, sporty amerykańskie, sporty walki, sporty motorowe, golf, rugby, rzutki i futbol australijski.
buy lanoxin 250 mg generic lanoxin 250mg for sale molnunat 200mg price
order acetazolamide 250 mg generic azathioprine 50mg for sale buy azathioprine sale
cost lanoxin 250 mg micardis 20mg sale molnupiravir 200 mg brand
amoxil pill order amoxicillin 250mg pill stromectol tablets for sale
buy coreg 6.25mg pill order elavil 50mg amitriptyline 50mg tablet
order priligy 90mg without prescription order generic priligy purchase domperidone sale
fosamax cheap buy nitrofurantoin purchase ibuprofen online
indocin 75mg sale cenforce 50mg tablet cenforce online buy
buy generic pamelor paroxetine sale purchase paroxetine
I’m not sure where you are getting your information, but good topic.
I needs to spend some time learning more or understanding more.
Thanks for excellent information I was looking for this info for my mission.
My page – New jersey Fake Id
purchase doxycycline online chloroquine medication medrol 8 mg over the counter
When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three
e-mails with the same comment. Is there any way you can remove people from
that service? Appreciate it!
Take a look at my blog :: faraday bed canopy
famotidine 40mg ca order remeron 15mg oral remeron
purchase tadalafil pill buy trimox 500mg for sale order trimox 250mg pills
order generic requip buy ropinirole 2mg generic purchase trandate generic
order nexium 40mg pills order esomeprazole 20mg online cheap buy lasix 40mg
cost tricor 200mg oral fenofibrate 160mg buy sildenafil pill
I have read your article carefully and I agree with you very much. This has provided a great help for my thesis writing, and I will seriously improve it. However, I don’t know much about a certain place. Can you help me?
order minocycline 50mg pills terazosin drug brand terazosin 5mg
coupon for cialis Cialis generic sildenafil 50mg generic
oral glucophage tamoxifen 20mg price tamoxifen 20mg canada
cialis 40mg pill ed solutions buy erectile dysfunction medications
order clomiphene generic buy prednisolone oral prednisolone 40mg
order provigil sale generic provigil promethazine us
This site certainly has all of the info I wanted about this subject and didn’t know who to ask.
Feel free to surf to my page: Emf canopy for 5g
I don’t know whether it’s just me or if everybody else experiencing problems with your
website. It appears as though some of the written text
within your content are running off the screen. Can someone else please provide feedback and let me know
if this is happening to them too? This may be a issue
with my internet browser because I’ve had this happen before.
Thank you
Feel free to visit my site :: Rf frequency blocker
buy isotretinoin 10mg online ampicillin pill brand ampicillin 250mg
buy deltasone without prescription order deltasone online amoxil 250mg generic
Hi there it’s me, I am also visiting this web site on a regular basis,
this web page is actually fastidious and the users are
really sharing fastidious thoughts.
Also visit my web page … florida id fake
ivermectin rx stromectol 12mg drug prednisone 5mg without prescription
order generic isotretinoin 20mg zithromax 250mg without prescription buy zithromax 500mg pill
Very good article! We are linking to this great post
on our site. Keep up the good writing.
Feel free to surf to my page :: Fake south Carolina drivers license
albuterol brand augmentin for sale online amoxiclav online
prednisolone 5mg cheap buy gabapentin online cheap buy lasix 40mg generic
I’m curious to find out what blog platform you are utilizing?
I’m experiencing some minor security problems with my latest site and I’d like to find something more
safeguarded. Do you have any suggestions?
Also visit my web-site; Emf Shielding Canopy
modafinil 200mg usa buy modafinil lopressor 50mg ca
buy dutasteride online cheap order orlistat online xenical 60mg pills
buy inderal 10mg pills order fluconazole 200mg pill coreg order
ditropan 2.5mg oral order generic oxybutynin 2.5mg buy generic oxcarbazepine
Hello, always i used to check webpage posts here early in the morning, for the reason that i like to learn more and more.
imuran 25mg brand order azathioprine 50mg generic order generic naprosyn 500mg
Very good information. Lucky me I discovered your website
by chance (stumbleupon). I’ve bookmarked it for later!
Greetings from Los angeles! I’m bored at work so I decided to browse your site on my iphone
during lunch break. I love the information you provide here and can’t
wait to take a look when I get home. I’m amazed at how fast your
blog loaded on my cell phone .. I’m not even using
WIFI, just 3G .. Anyways, good blog!
simvastatin 10mg usa generic sildalis sildenafil 50mg for sale
cefdinir pills buy generic omnicef protonix 20mg sale