Это видео недоступно.
Сожалеем об этом.
How to connect a ESP32 to the L298N motor driver
HTML-код
- Опубликовано: 17 авг 2024
- This video goes over how you can connect the ESP32 microcontroller to the L298N dc motor driver as well as explaining the code to make it move.
Where you can buy (affiliate link)
amzn.to/3OXdtXi
Code for project: drive.google.c...
Thanks for providing this tutorial! In order for mine to work I had to power the dev board from the 5V supply on the L298N board
Thanks a lot 😄 ..... You explained the concept in an easy-to-understand way 💯👍.
on my case, the ledcSetup wasnt declare in this scope, i tried many things but i dont know
Thanks for the quick tutorial!
I thought the L298N was a 5v device whilst the ESP 32 pins are 3.3 V? Might this determine if the motor driver responds to the ESP 32 ? To fix it you would need a 'level shifter' board.
That's a fair concern and there are a lot of devices where'd that would be a problem! But with the L298, the minimum voltage to register a high input is 2.3 volts, so 3.3v logic signals will work as well as 5v! See this datasheet for reference components101.com/sites/default/files/component_datasheet/L298N-Motor-Driver-Datasheet.pdf
@@rcrobot2373 Thank you, I hadn't seen that datasheet!
hello how can I run 2 dc motors and 1 servo when I connect the two there is usually a problem and dc motors do not work can you help?
Thx a lot brother
Hello. Is the connection for 12v motor Dc is the same as the video? and what's your suggestion to control the speed of the motor?
The L298N can do 12V. What kind of motor are you wanting to control? Asking because the L298N probably won't work if the motor draws more than 1 amp.
The below tutorial goes in depth on how to control speed lastminuteengineers.com/l298n-dc-stepper-driver-arduino-tutorial/
Hi there, how did you make that circuit diagram first shown at 1:10 that displayed the pin connections? What software did you use and was it free?
I used fritzing (fritzing.org/) it's free, took me less than an hour to figure out how to use. Sorry for taking 2 months to answer!
im trying it but why my l298n wont work?
Hey Bro
If I Can Control 12V 775Motor With L298N
Probably not a great idea, some 775s can draw more than 20 amps and the L298N is only meant for 2 amps. A BTS7960 can drive up to 43A and I think controlling it is similar to the L298N. Sorry for the very very late reply! www.amazon.com/BTS7960-Driver-Module-Arduino-Current/dp/B07TFB22H5/ref=sr_1_12?crid=20H0MXR4MK0FJ&keywords=40+a+dc+motor+driver&qid=1664647206&qu=eyJxc2MiOiIxLjkzIiwicXNhIjoiMC4wMCIsInFzcCI6IjAuMDAifQ%3D%3D&sprefix=40+a+dc+motor+driver%2Caps%2C194&sr=8-12
Would I need add libaries to get it to work
No extra libraries required, just controlling the gpio is all you need to do
*You may need to install esp32 libraries if you haven't done so before see randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/
sir can i connect an nema17 motor to this project?
No , these controllers only control normal motors and these are used in applications where precision is not important , if you want to use nema 17 motor then you need to purchase stepper motor drivers like A4988 or any other you like.
I hope this helps you
Thank you
But how the hell do I wire it? How tf can I connect the pins?