Full Control of DC Motor with ESP8266 NodeMCU D1 Mini over WiFi

preview_player
Показать описание
In this lesson we learn how to use L298N Motor driver to control DC motor over WiFi using D1 Mini NodeMCU.

***** Free Arduino Course worth $200****

The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .

*** Purchase this DC motor from ***

**** Purchase L298N Motor Driver Module from ****

*** Purchase ESP8266 NodeMCU ***

Use Chapters from timeline or click on the time
00:00 Introduction
03:18 Wiring Explained
07:01 Code Explained (speed only)
18:32 Demonstration speed only
21:51 Demonstration on mobile phone
24:46 Code for full control
30;24 Demonstration of full control
32:35 Demonstration of full control on mobile phone

Tutorial by Ahmad Shamshiri form Canada
****************************
****************************

Get other projects code and learn Arduino
#robojax #robojaxArduinoCourse #robojaxEXP8266

**** AFFILIATE PROGRAM ****
Рекомендации по теме
Комментарии
Автор

great video! i have done the motor setup, but just needed to know the web part and this helped!

danialothman
Автор

Can you drop the link of the getting started with the esp8266? I couldn't find it. Thanks

Ahmed-gvlg
Автор

Is there a way to trigger direction change by with a relay switch. I want the device to press a contact on the end of its travel telling it to reverse direction. Great tutorial.

MobileGameLounge
Автор

Is it possible to use your library with ENC28j60 modul (Ethernet) to this project ?

deci
Автор

anything that needs to be added to display the rpm value?

anasarifien
Автор

can you help please. I have uploaded the code, i get an ip address but when i try to navigate to the ip, http, i get "connection was reset". Im using a nodemcu ESP8266, on the serial monitor i also get "Motor 1 Braked"

TashTech
Автор

Excelent video i have a question:
How can I make a button that gives me a flat value for example 25%?

fontechtecno
Автор

Hi, @Robojax is there a way to connect 2 motors and the 2 motors gets controlled by this website(the 2 motors are for the forward and backwards wheel). Big Fan!

justadude
Автор

I am using Arduino Due for the first time. I used a Hall Effect Sensor and a simple code to get a tachometer reading from a rotating shaft. I wish to control an actuator 12volt DC motor using the tachometer reading. When the tachometer RPM reading is less than 250 RPM I want the motor shaft to turn clockwise, when the reading is more than 250 I want the motor to turn counter- clockwise and when the reading is 250 RPM I want the motor to stop. Do you have a video that will help?

petersotropa
Автор

Can you share code for control direction motor dc over wifi?? please

PesonaSelebgramIndonesia
Автор

I need this for a large 12 HP / 24 VOLT DC motor at 300 AMPS. CaN YOU DO??

johnslugger
Автор

cool, very good your project... friend, can you do it with control by 2 pushibuton and wifi

mesquitamk
Автор

When I run this sketch, I only get motor speed and start/stop control but no direction control. What am I missing?

danandnancystone
Автор

I'm getting this error -- redefinition of 'const uint8_t D0'. plz help me solve this error

samiulhaqqq
Автор

Assalomu alaykum my name is Burhan and I am from Uzbekistan
I'm sorry to bother you again.
I had a question, how to control 2 motors
how to change the code, if possible, please let me know, thank you in advance, may God bless you

burxonturayev-sk
Автор

моя прошивка и у меня не хочет меняться скорость на esp8266
#define PIN_ENA D0 // Нога скорость вращения мотора №1
#define PIN_ENB D5 //Нога скорость вращения мотора №2
#define PIN_IN1 D1 // Нога направление вращения мотора №1
#define PIN_IN2 D2 //Нога направление вращения мотора №1
#define PIN_IN3 D6 // Нога управления направлением вращения мотора №2
#define PIN_IN4 D7 // Нога управления направлением вращения мотора №2
uint8_t power = 105; // Значение ШИМ (или скорости вращения)
void setup() {
// Установка всех управляющих пинов в режим выхода
pinMode(PIN_ENA, OUTPUT);
pinMode(PIN_ENB, OUTPUT);
pinMode(PIN_IN1, OUTPUT);
pinMode(PIN_IN2, OUTPUT);
pinMode(PIN_IN3, OUTPUT);
pinMode(PIN_IN4, OUTPUT);
// Команда остановки двум моторам
digitalWrite(PIN_IN1, LOW);
digitalWrite(PIN_IN2, LOW);
digitalWrite(PIN_IN3, LOW);
digitalWrite(PIN_IN4, LOW);
}
void loop() {
// Вращаем моторы в одну сторону с разной скоростью
while(power < 255) {
analogWrite(PIN_ENA, power); // Устанавливаем скорость 1-го мотора
analogWrite(PIN_ENB, power); // Устанавливаем скорость 2-го мотора
// Задаём направление для 1-го мотора
digitalWrite(PIN_IN1, HIGH);
digitalWrite(PIN_IN2, LOW);
// Задаём направление для 2-го мотора
digitalWrite(PIN_IN3, HIGH);
digitalWrite(PIN_IN4, LOW);
delay(3000); // Пауза 3 секунды
power += 30; // Увеличиваем скорость
}
power = 225;
// Вращаем моторы в другую сторону с разной скоростью
while(power > 105) {
analogWrite(PIN_ENA, power); // Устанавливаем скорость 1-го мотора
analogWrite(PIN_ENB, power); // Устанавливаем скорость 2-го мотора
// Задаём направление для 1-го мотора
digitalWrite(PIN_IN1, LOW);
digitalWrite(PIN_IN2, HIGH);
// Задаём направление для 2-го мотора
digitalWrite(PIN_IN3, LOW);
digitalWrite(PIN_IN4, HIGH);
delay(3000); // Пауза 3 секунды
power -= 30; // Уменьшаем скорость
}
power = 105;
}

masterkit
Автор

Assalomu alykum static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15; here it is giving an error, I will be happy if you can fix it, I asked you for your telegram, I was sending things I didn't understand, thank you in advance, may God bless you

burxonturayev-sk