Arduino DC Motor Control Tutorial - L298N | H-Bridge | PWM | Robot Car

Arduino DC Motor Control Tutorial - L298N | H-Bridge | PWM | Robot Car

How To Mechatronics

6 лет назад

1,215,783 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@shlomibenyair3405
@shlomibenyair3405 - 17.01.2024 11:31

Hello i need your help, can u send your email please?

Ответить
@Moon_Athelete
@Moon_Athelete - 20.11.2023 10:39

Bro I need the code for uoading

Ответить
@user-kr8ok2no1s
@user-kr8ok2no1s - 15.10.2023 04:29

Also, I think the resistor is incorrectly sized. Should be 1k

Ответить
@user-kr8ok2no1s
@user-kr8ok2no1s - 15.10.2023 04:24

Thank you to you for taking the time to put together a video to help others online with their robotics projects. There are some mistakes though...ena, in1, in2, should be outputs. Button should be an input. The resistor should be on the positive side of the or on the 5v wire or the pin 4 wire, this is to protect the circuit. You don't necessarily rotDirection in your code, you can change directions without this.

Ответить
@oribenzihry8571
@oribenzihry8571 - 28.08.2023 18:36

Hi, I actually did the same thing. but it worked for me only when I gave the arduino voltage separatly via usb or 5v and I had to have 2 packs of battery otherwise it would boot when I plugged it like in the viodeo... why is that?

Ответить
@samadhistate9637
@samadhistate9637 - 10.06.2023 17:38

In the website notes regarding the L298N you say: "In this case the 5V pin will be used as input as we need connect it to a 5V power supply in order the IC to work properly." But in your schematic diagram nothing is connected to the 5V pin. And it looks like the Arduino is being powered by the same 12V battery that is powering the 2 motors.

Ответить
@user-pd4qf8ok1g
@user-pd4qf8ok1g - 05.06.2023 09:14

@madhan gowri

Ответить
@hl5hl5
@hl5hl5 - 04.06.2023 21:20

Is there a way to have continuous loop motion, as for a linear actuator motor to go back and forth by itself? Do you just take away VOID loop out of the code?

Ответить
@user-pl4fx2ci3e
@user-pl4fx2ci3e - 18.04.2023 03:25

i love h bridge

Ответить
@kamleshkumavat9949
@kamleshkumavat9949 - 05.04.2023 13:19

I done all the connection properly But My 1st motor works and the 2nd motor don't even rotate please Tell me the solution

Ответить
@franciscocarrizo7562
@franciscocarrizo7562 - 30.03.2023 03:23

Te hago una consulta.. que motores me recomendas de 12 o 24 v para mover un equipo de 40 kg de peso distribuido en 4 ruedas

Ответить
@Infinityautomotivetools
@Infinityautomotivetools - 01.03.2023 19:00

Hello. Is possible the speed control with button?

Ответить
@Technoacademy969
@Technoacademy969 - 16.02.2023 20:24

I have adream

Ответить
@Alexander_Meyer
@Alexander_Meyer - 09.02.2023 20:20

This is so useful, thank you so so much!

Ответить
@tonysparapani3077
@tonysparapani3077 - 25.01.2023 03:31

How big of a motor can be controlled by the arduino?

Ответить
@danwii4820
@danwii4820 - 02.01.2023 02:51

could the joystick be replaced by a receiver for wireless input. Great video btw :)

Ответить
@sripal.jain4
@sripal.jain4 - 01.11.2022 11:12

Very detailed demo of the project 👍

Ответить
@juancox99
@juancox99 - 13.09.2022 02:42

Great video, thanks. I am setting up the car for my kid´s science class - if I am using 6 v circuit, all coding should be the same? Thanks!!

Ответить
@h7opolo
@h7opolo - 22.08.2022 13:25

i've never heard someone's voice crack so many times in one discussion.

Ответить
@mitsos306ify
@mitsos306ify - 03.08.2022 21:54

Great video and explanation!

Ответить
@AewJib
@AewJib - 03.08.2022 16:17

can i drive 3 motors in it?

Ответить
@bizeigel
@bizeigel - 23.07.2022 19:26

Great video. Thank you!

Ответить
@Bea-jl9lt
@Bea-jl9lt - 23.07.2022 08:39

This is so sick! I want an arduino so bad omg

Ответить
@bugraates478
@bugraates478 - 21.07.2022 17:35

I like this in-depth review dude, you're awesome!

Ответить
@mariabarbarasalinasluna4808
@mariabarbarasalinasluna4808 - 15.07.2022 23:17

Wow, excellent tutorial !!!! thanks :) :) :)

Ответить
@Tropicsca
@Tropicsca - 29.06.2022 03:35

I will be using one these to make a gokart soon mwahaha. I'm going to craft the PWM around a foot pedal so I can adjust the speed with my foot

Ответить
@ezzatluqman4603
@ezzatluqman4603 - 28.06.2022 11:00

The most well explained video so far that i found! thanks for showing the better understanding how to connect this driver to arduino. I am planning to do an 8 motor of ROV on my own. My question is how can we connect this motor driver if i should be using 4 piece of them? since 1 piece of driver is use for a pair of motor

Ответить
@vishwanathreddy7324
@vishwanathreddy7324 - 27.05.2022 13:52

Sir how we make spincoater using DC motor with arduino ...

Ответить
@BadPracticeAutomation
@BadPracticeAutomation - 25.05.2022 21:25

I’ve tried to replicate the example with the motor l298n and push button. Everything works fine except the potentiometer isn’t controlling the speed. I’ve triple checked the pins and the code but I can’t figure out why the potentiometer isn’t working.

I was wondering if anyone had any ideas.

Ответить
@abdallahkhamis881
@abdallahkhamis881 - 19.05.2022 22:05

Great Video thanks a lot .. We really really appreciated .. keep going

Ответить
@ankursolanky4129
@ankursolanky4129 - 08.05.2022 00:03

How did you connect the jumper wires to the battery bay and Arduino board?

Ответить
@quintonvehon2638
@quintonvehon2638 - 22.04.2022 16:46

Thank you for including the written article for this video!! Both resources are clear and easy to follow.

Ответить
@landmarker
@landmarker - 28.03.2022 16:45

I want to test a vehicle with 8 wheels and motors. Which Arduino do I need? or how can I go about it?
any help would be appreciated :)

Ответить
@OMARYassin1
@OMARYassin1 - 03.03.2022 11:32

You just rescued me ❤️

Ответить
@fouzanjaved5441
@fouzanjaved5441 - 09.02.2022 17:11

Sir, can you also give me the circuit diagram and the codes for the 4 dof ps2 controlled robotic arm car?

Ответить
@TBoys_Space
@TBoys_Space - 09.02.2022 03:10

@howtomechatronics Please what software or program did you use in creating the electrical connection animation?

Ответить
@skillmaninfinity702
@skillmaninfinity702 - 08.01.2022 14:14

i have done all the things but no action when i move the joy stick

Ответить
@muhammadmustafadurrani6813
@muhammadmustafadurrani6813 - 08.01.2022 12:16

Can you please tell me why is mine not working I am moving the joy stick but nothing happens

Ответить
@skillmaninfinity702
@skillmaninfinity702 - 08.01.2022 11:50

plese can you tell me the code i cant open your website

Ответить
@muhammadmustafadurrani6813
@muhammadmustafadurrani6813 - 08.01.2022 10:31

You are the best arduino teacher

Ответить
@supernova6553
@supernova6553 - 25.12.2021 22:56

if i took this h-bridge and replaced its mosfets, could that turn it into a high power h-bridge?

Ответить
@clarencenikel_6420
@clarencenikel_6420 - 22.12.2021 22:07

I want to use a foot motor from a vacuum cleaner, can I use this same setup using a 120v DC motor? If so, what type of battery should I use to power up a 120v?

Ответить
@davidebak5102
@davidebak5102 - 28.11.2021 05:44

Il tuo codice mi da problemi

Ответить
@educationaltechnology8363
@educationaltechnology8363 - 21.10.2021 11:09

can I use other boards to control PWM signal without Arduino?

Ответить
@MrGessio
@MrGessio - 20.09.2021 01:51

If someone has a problem with his L298N that it is not working remember to connect the gnd from the l298n to the gnd from the arduino

Ответить
@sirajhussain791
@sirajhussain791 - 23.08.2021 12:40

Excellent

Ответить