I feel like you are truly the best, I have learned everything from your videos. YOU are the person they were talking about when they said that it's the information age.
@andreguimaraes19666 ай бұрын
Parabéns pelo vídeo! Esse material me ajudou muito aqui no meu projeto! Um forte abraço de André Guimarães - São José dos Campos - São Paulo - Brazil.
@robojax6 ай бұрын
Olá, muito prazer em saber. Saudações do Canadá. Ahmad
@shafagh_projects3 жыл бұрын
You are a genious. so great tutorial and thanks for t=sharing this with us.
@robojax3 жыл бұрын
You are welcome. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338
@jaslarja2 жыл бұрын
could you connect 2 L298N to 1 Esp32 for 4 motors?
@sheriftamer64867 ай бұрын
Yeah but the best way is to c9nnect on motor drive for 4 motors i did it with 4 12v dc motor and worked perfectly
@draculla1232 ай бұрын
I have same doubt
@Omar-AlAni-78Ай бұрын
@@sheriftamer6486 never worked for me. Seems one L298N can handle correctly 2 dc motors only. 4 motors seem to be too much for one L298N.
@nathanbinene93062 жыл бұрын
hope to hear from you soon
@Kub_437 ай бұрын
Hi, i have a problem with the librery, is not working, im ussing the arduino IDE 2.3.3 and if i run the esp32 2dc motors example, without touching anything of the code, it display errors about "'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?" and 'ledcSetup' was not declared in this scope
@Kub_437 ай бұрын
For anyone that faces the same problem, the library is compatible until version 2.0.17, beacause espressif made changes in version 3 to the pwm functionallities. it would be cool to see this library in versions > 3 tho, it simplifies everything
@arseniusdavin1835 ай бұрын
@@Kub_43 so how do you solve the problem?
@naufalchoirulanandaa3 күн бұрын
Sir, why with 12v voltage and 4 dc motors my L298N module makes noise and the motors don't rotate?
@robojax3 күн бұрын
It means incorrect wowing or no less than 30% PWM signal
@aadc81733 жыл бұрын
thankyu
@martijncuijpers-ww1vs9 ай бұрын
Is it possible to use 2 L298N modules to control 4 DC motors using ESP32? I tried to modify the code but i really get stuck. I want to control them by wifi. With 2 motors and you library works really good, but we always want more :) thanks in advance!
@robojax9 ай бұрын
Yes if you have enough pins. Just define different ping and different object name.
@martijncuijpers-ww1vs9 ай бұрын
Do you have any code for this?😇. I managed to modify the .ino file, but both .h files and the cpp file are more challeging. Maybe you have some tips how to easy modify those files? I am a beginner in programming....😂
@MegaBCAD5 жыл бұрын
Can you do a video controlling two 200 watt motors for track steering /differential drive steering with forwards and reverse with a joy stick
@robojax5 жыл бұрын
So you wan to control DC motor with joystick? 200W
@MegaBCAD5 жыл бұрын
@@robojax yes like on an electric wheelchair
@robojax5 жыл бұрын
Sure I will do the video. I will put in on my list. But the motor controller is of your choice. Because there 100s of types of motor drivers.
@nathanbinene93062 жыл бұрын
Hello Ahmad thank you for the video I would like to know what should I have to do for both Motors to run simultaneously in clockwise or anti-clockwise cause I am designing a robot which will have 2 DC Motors however the robot has to move Forward , Backward, Turnleft and Turnright. I am using ESP32 and L298N
@robojax2 жыл бұрын
Hello, I believe I have explained every line and what they do. so I would suggest watching the video 2 or 3 times until you understand it. Just see which line in the code makes the motor to run make copy of the same line in the line below it and change the value to make the other motor rurn. or may be watch this video kzbin.info/www/bejne/rZ-YdWqgZt6Vrrs and learn which line controls a motor.
@adamelkoumy51415 жыл бұрын
Thank you Ahmed for such a great video
@robojax5 жыл бұрын
You are welcome.
@AYA-GAMING_SHORTS5 ай бұрын
I connected my l298 to esp32 with 5v pin. BUT when I connected the motor to l298 then the reading of voltage given the motor by l298 is just 1.6v . What can I do? Plz reply me plz.🥹
@robojax5 ай бұрын
Hi, means L298 is not getting input signal. or power supply is not connected properly. Check wiring and I assume you did not touch the code.
@phillipneal81945 жыл бұрын
Thank you
@robojax5 жыл бұрын
you are welcome.
@000ahmet2 жыл бұрын
Hi, can nodemcu drive a brushless motor without using esp?
@robojax2 жыл бұрын
Hi, brushless motor has three wires and needs Electronic Speed Controller or ESC. that is totally different but yes it can. you just need to feed PWM signal to ESC.
@chiragshah6873 Жыл бұрын
Hi thank you for the video, and all works perfect with a 12v input adapter for my l298n and a microusb 5v laptop power for esp32s. However, if i pull a cable from my l298n 5V to esp32s, the esp32s works but the motor no longer spins. Can you help how i can power both with same source, do i need a bigger adaptor. Adaptor output - 12V DC Current - 2000MA Motor - 12V, 150RPM
@robojax Жыл бұрын
supply 5V to ESP32.
@chiragshah6873 Жыл бұрын
@@robojax you mean external right.. ?, cant pull from l298n??
@viveksharma_2311 ай бұрын
Can we connect 4 bo motors to motor driver plz reply ?
@robojax11 ай бұрын
Please watch and get the answer
@viveksharma_2311 ай бұрын
Watched downloaded too I am constructing a automatic firefighting robot with 4 bo motorz
@polycrusAct3 жыл бұрын
make with one servo motor and with dc motor 😺😺i'm from brazil, 🇧🇷 sp
@robojax3 жыл бұрын
Welcome from Brazil. Sorry I did not understand. you want to have both servo motor and dc motor? this is very unusual. I have so many servo related videos. if you watch them, you can combine both together. ***** Free Arduino Course worth $200**** Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338
@mattrichardson43513 жыл бұрын
Hi Im doing Up my sons ride on car and need to run two motors off the back and one motor for steering.. I have the ESP32 and the Dual L298N Motor driver model too .. any pointers would help
@robojax3 жыл бұрын
Hi, this should work. just identify the pins. check or test be lifting the car and turning it ON. using whatever controller you have try going forward and se which wheels rotate. then turn left and check which motor rotate and the same for right turn. I am not sure if the car has servo to physically turns the wheel or just by controlling the each motor it rotates. My point is to see if 4 motor is used when running the car or just two sets run together. this can be checked to see if two L298N is used or 1. here an one of 4 videos on a smart car kzbin.info/www/bejne/gHXKgIyBpMSth5o using L298N. Search my channel on more on car. Here is how to find Specific KZbin Video in a channel bit.ly/findKZbinVideo
@mattrichardson43513 жыл бұрын
@@robojax you absolute legend 🤟🏼I’ll check all the pins and make sure what’s running what .. I know I have two differently on the back but could possibly have a servo motor up front for the steering.. I’ll have to pull it off and have a look and follow your guild more .. will report back later 😀
@bektinurwanto7 ай бұрын
i cannot use the code sir, have error Robojax_L298N_DC_motor.cpp:159:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 159 | ledcAttachPin(ENA, CHA);
@robojax7 ай бұрын
It means your have not installed the esp32 driver
@bektinurwanto7 ай бұрын
@@robojax i'm use Arduino ide 2.3.1, i think led attachpin not used again..
@offon87814 жыл бұрын
is there a way to use this library to run the motors with rotations instead of speed?
@robojax4 жыл бұрын
You made me watch the video to what is wrong. this is for Speed and Direction of rotation.
@offon87814 жыл бұрын
@@robojax is there more documentation of this library, such as a list of commands?
@robojax4 жыл бұрын
I am replying now after 14 hours. you could just click on our channel name "Robojax" and then search for L298N . So 14 hour waiting is very long. here is kzbin.infosearch?query=L298N
@srimansingaravelan3 жыл бұрын
hi robojax my esp32 is written in d series and pin 17 16 not available please help, and i want to write code for two l29n for four motor through wifi
@robojax3 жыл бұрын
Hi, please watch this for WiFi kzbin.info/www/bejne/hZ3UaYGOnLOsiaM Here is how to find Specific KZbin Video in a channel bit.ly/findKZbinVideo
@TN-qr1cm2 жыл бұрын
I tried the same experiment but I cannot get both motors to run at the same time they run interchangeably: one runs and the other is not then they switch. do you know why is that?
@robojax2 жыл бұрын
if you have not changed the code, then wiring is wrong. check it.
@k.v.saimadhav42514 жыл бұрын
What is the external power supply you used ?
@robojax4 жыл бұрын
there are millions of power supply. You can use $2V module of $500. Here is one kzbin.info/www/bejne/qoLHhpmvZdqsi7M that works directly from AC but I have tones of videos showing to get voltage from DC
@bbjodel37782 жыл бұрын
Hello Ahmad how to synchronize two motors with same rpm with a L298N ?
@robojax2 жыл бұрын
Just use the same value for both motors immediately after one another.
@adityaravindran89423 жыл бұрын
I am trying to send a message from a python code over wifi using sockets. but when i do this, the motor isnt running. can someone help me?
@varunkarnawat38294 ай бұрын
5 volts to which pin???
@robojax4 ай бұрын
to the pin shown in video. I don't remember. I have to watch to answer. so please watch carefully when I explained the moduel.
@kritikaprasan75915 жыл бұрын
Sir i have lolin nodemcu module ...wat shd I give for preference and which version of nodemcu shd I install
@robojax5 жыл бұрын
Hi, here is the video to control motor using NodeMCU kzbin.info/www/bejne/nYCweYhmhp2opqM
@zarrougahmed19495 жыл бұрын
Can you make a video about sending messages using two ESP32 please.
@robojax5 жыл бұрын
sending messages from one to the other you mean? with Router or without Router?
@zarrougahmed19495 жыл бұрын
@@robojax Without a router. Can we send it for example using the serial monitor?
@thealked26744 жыл бұрын
Hello Is there a way to control the motors via the serial port?
@robojax4 жыл бұрын
Hello, I've shown how to control a 360 servo in this video kzbin.info/www/bejne/mJDbp6hsrLyUnKM and you can use the same method to control DC motor. But you have to understand the this DC motor .
@thealked26744 жыл бұрын
@@robojax Thanks, it helped me I have a question if I wanted to control 4 motors, how should I configure this line of code? or what should I do?Robojax_L298N_DC_motor robot2(IN1, IN2, ENA, CHA, IN3, IN4, ENB, CHB);
@robojax4 жыл бұрын
watch the video carefully in the code section. I mentioned "we create object" called motor. then you create another object called motorB. So the object motor will be for motor1 and motor2 but motorB will be for motor 3 and 4. Or watch my other videos so you learn the meaning of object . See all my videos on L298N kzbin.infosearch?query=L298N
@Karacowski5 жыл бұрын
Nice
@robojax5 жыл бұрын
Thanks
@sssedo15733 жыл бұрын
Do you get a code without your library?
@robojax3 жыл бұрын
Please watch the section where I explained the code and do exactly as I have mentioned
@sssedo15733 жыл бұрын
@@robojax hmm but I wanted to make it on my own with pwm and control 2 motors. Is there any possibility maybe you look up my code and tell me what I did wrong?
@philippeantonietti4 жыл бұрын
thank you has worked fine with my esp32, i would just suggest some kind of schematics showing the pin connection suggestion for a new video: have you tried to do this with the "Blynk" mobile app ? I'm trying to do this as they have a nice interface with joystick thanks !!!!
@robojax4 жыл бұрын
You are welcome. the wiring diagram is available at my Arduino course at Udemy.com so anyone who purchase the course, gets wiring and more. I have seen 3 or 4 more people mentioned the word "blynk" and when I checked it I did not like it . They should offer some free option for limited access for students . I am search ing for other option and until then, I will not participate with this operation. they should offer free or limited device like 5 device or 5 project . Then they should charge for commercial projects.
@philippeantonietti4 жыл бұрын
@@robojax yes I agree that makes sense, the free option which they offer is very limited! you won't be able to get much done. Try to email they, as a digital media 'influencer' you may be able to get some extra benefits to your followers, best regards
@robojax4 жыл бұрын
someone should offer like 2 to 5 device full feature for free.
@اميرالشمزتي5 ай бұрын
I worked on the video but a library link is not funny in the description box
@robojax5 ай бұрын
The link is under the viddeo I just checked and tested the link. it says "Download code and resources for this video"
@gauravtambe68994 жыл бұрын
Hello Sir, Will the program be same for Node Mcu Esp8266??? Liked this video but I need it for esp8266.
@robojax4 жыл бұрын
I did not make the video for ESP8266. Here is the video showing how to control it over WiFi. if you learn this (ESP32) video you should be able to use it with ESP8266 from this kzbin.info/www/bejne/nYCweYhmhp2opqM
@lassemikkelsen36872 жыл бұрын
i tryed your code but one motor is driving faster than the other one how?
@robojax2 жыл бұрын
the code is fine. you may have two different motors. if you are using it for the same project, get identical motors.
@chimpofm5 жыл бұрын
good afternoon Sir. will your L298N code work with a TB6612FNG?
@robojax5 жыл бұрын
I have not tested it but it should work. In your hip PWMA is ENA in L298N is and PWMB is ENB
@ViệtPhanNhất2 ай бұрын
how can i get the libarary ESP32_L298N_DC_motor_wifi_page.h
@ViệtPhanNhất2 ай бұрын
please help me
@robojax2 ай бұрын
Just visit the resources page. The li so don't look blue. Read the text just below th video on robojax.com
@ViệtPhanNhất2 ай бұрын
how can i get libarary ESP32_L298N_DC_motor_wifi_page.h sir
@robojaxАй бұрын
it is on the resource page. read the text and click to download it.
@mewiipk5 жыл бұрын
Hello, I run your code and it says that "... Arduino/libraries/robojax_L298N-DC-Motor_library/Robojax_L298N_DC_motor.cpp:157:34: error: 'analogWrite' was not declared in this scope analogWrite(enPin, toPWM(value)); ^ exit status 1 Error compiling for board ESP32 Wrover Module." What should I do?
@robojax5 жыл бұрын
Hello, It means you have escaped the video and not fully watched it. Please watch and follow the instruction.
@alexandruflorea4764 Жыл бұрын
@@robojax you are saying the same thing for each issue, let's be honest, you don't know. With my issue, I watched your full video 10 times and didn't solve anything. Very bad library.
@khansarh4444 Жыл бұрын
what the controler ?? theacer ? pliss
@robojax Жыл бұрын
What? Do you mean the microcontroller? Learn here kzbin.info/www/bejne/Y16pm2uHedF6q7M
@اميرالشمزتي5 ай бұрын
Can you give me Link Download Library
@robojax5 ай бұрын
The link is under the viddeo I just checked and tested the link. it says "Download code and resources for this video"
@bbjodel37782 жыл бұрын
Ok Ahmad, thank you, but i don't have a same rpm.....
@robojax2 жыл бұрын
You should get them same rom if enough power is supplied to the motor. Check thr motor w voltage while running and if it is too low it means your power supply can’t supply enough power (cut) power supply to the motors. Use different power supply
@fawahziwah3 жыл бұрын
Hello Ahmed, great video you have there! But can i ask a question. Why do i get this error whenever i tried compiling the codes? Hope u can help, thanks! no matching function for call to 'Robojax_L298N_DC_motor::Robojax_L298N_DC_motor(int, int, int, int, int, int, int, int)'
@robojax3 жыл бұрын
It means you did not watch the video fully and skipped. I have mentioned and shown to install library. So follow the instruction and install the library.
@fawahziwah3 жыл бұрын
@@robojax i watched and rewatched your video for countless time. Already install the library from the zip files as u did. Did exactly the same. But still getting the same error. My friends who used this library last year also have the same problem this year, last time it was fine. Mind to tell us where we did wrong?
@alexandruflorea4764 Жыл бұрын
this is top secret, I have the same issue and couldn't solve. Watched the video many times, not sure what I'm doing wrong.
@ailefy98984 жыл бұрын
can you please make a Bluetooth car with esp32 and this L298N motor driver please, please I request you
@robojax4 жыл бұрын
interesting. this would be very useful. But my list is full other projects.
@ailefy98984 жыл бұрын
thank you for responding sir .any youtuber didn't respond to me till now except you!
@roscoe3dp4704 жыл бұрын
@@ailefy9898 Esp 32 and a PS3 controller via Bluetooth
@roscoe3dp4704 жыл бұрын
kzbin.info/www/bejne/j5mpl6WAq5WIetE
@phillipneal81945 жыл бұрын
I am getting the 'analogWrite' error message. It comes from the robojax library
@robojax5 жыл бұрын
I have tested this many times. please post the error here
@phillipneal81945 жыл бұрын
@@robojax Arduino: 1.8.10 (Mac OS X), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None" /Users/pneal/esp32/libraries/robojax_L298N-DC-Motor_library/Robojax_L298N_DC_motor.cpp: In member function 'void Robojax_L298N_DC_motor::rotate(int, int, int)': /Users/pneal/esp32/libraries/robojax_L298N-DC-Motor_library/Robojax_L298N_DC_motor.cpp:157:34: error: 'analogWrite' was not declared in this scope analogWrite(enPin, toPWM(value)); ^ Multiple libraries were found for "Robojax_L298N_DC_motor.h" Used: /Users/pneal/esp32/libraries/robojax_L298N-DC-Motor_library exit status 1 Error compiling for board ESP32 Dev Module. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@robojax5 жыл бұрын
It says "Multiple libraries were found for "Robojax_L298N_DC_motor.h" please delete the older one.
@phillipneal81945 жыл бұрын
@@robojax HI ! Ok. I did as you said and now it compiles, loads and runs. Thank you very much.
@robojax5 жыл бұрын
You are welcome. I am glad you resolved it.
@highfacility92004 жыл бұрын
How can i install progtam to esp32 ? I need pin links pls.
@robojax4 жыл бұрын
which link? have you watched the video? int the first 40 seconds I said "you can get the code by clicking on the link below the video in the description". Please watch it fully without skipping, you will have no questions left. I have not wasted time. it is about learning.
@viveksharma_2311 ай бұрын
My esp 32 has only 15 pins and your is having 20 how ?
@robojax11 ай бұрын
ESP32 has fixed pins. it is offered as different board. if you don't see the required pins, then get the one that has 30pin .
@นริศราเพียรเพ็ง3 жыл бұрын
Please give me the code of ESP32.
@robojax3 жыл бұрын
Have you watch the video? I mentioned it in the first few minutes of the video.!
@clobel552 ай бұрын
YOU INCLUSE THE CODE WHICH IS FINE, BUT WHY ON EARTH WOULD YOU FOREGO THE SCHEMATIC
@robojax2 ай бұрын
because I explain every pin, every input and input. I have done in some videos. but this L298N have been explained multiple times and did not feel to include the wiring diaram.
@kenadams42464 жыл бұрын
Thank you Ahmad for a very nice video. I am very excited to get started on this project but I'm having issues. Please help me find out what I am doing wrong. After using the Board Manager to install files for the ESP32, I downloaded the Library you provided a link to, "Robojax_ESP8266_DC_motor_speed.zip". After adding/installing the library, I closed the Arduino IDE, restarted it and found there were 2 issues: 1) After looking through File>Examples, these were no examples listed as Robojax (i.e. no Robojax ESP L298N DC Motor or anything Robojax). 2) I did go ahead and open the sketch that was in the Library file you provided. I attempted to compile it and got the error message, "Robojax_ESP_L298N_DC_motor.h: No such file or directory". Thank you in advance for pointing me in the right direction.
@robojax4 жыл бұрын
You are welcome. Thank you for letting me know. I had updated the library and forgot to update this page. Now you can download and try it. Thank you for not skipping the ads and keep watching it. This will help me a lot.
@kenadams42464 жыл бұрын
@@robojax Thanks for the updated info. I will give it a try. On a related note, based on everything I have read, I am surprised the L298N works with the ESP32. It is my understanding that the L298N requires a 5 volt signal on the logic inputs while the ESP32's output is 3.3V. Would it be more reliable to use a logic level shifter to take the 3.3V up to 5V? Just curious. Thanks again for the tutorial!
@robojax4 жыл бұрын
I have tested it and it works without any issue. For 3.3V and 5V logic, the LOW is up to 0.8V so this module works fine.
@kenadams42464 жыл бұрын
I gave the updated code a try and it works great! Thanks again Ahmad for an awesome project and video! I hope you continue to post amazing projects like this!👍👍
@malalatianarajaomason5184 жыл бұрын
Hi Ahmed, I tried your tutorial on my esp wroom 32. But after compiling, I got this message " Leaving, Hard resetting with RTS pin". And I'm stuck there. Do you have an idea? Thank you in advance
@robojax4 жыл бұрын
Start with this kzbin.info/www/bejne/aoCyd5-JbJqiraM make sure you can turn ON and OFF LED. then come back to the motor.