@@teampsi6771 hi , i tried to controll my motor with L298N and arduino nano , but my motor was not running . why it happened cause i checked the pins and program was also correct according with pin . but it doesn't work Can you help me please
he didn't put the code in so I did. //CODE: int In1 = 7; int In2 = 8; int ENA = 5; int SPEED = 210; void setup(){ pinMode(In1,OUTPUT); pinMode(In2,OUTPUT); pinMode(ENA, OUTPUT); digitalWrite(In1,HIGH); digitalWrite(In2, LOW);
//ENA 255 means high speed and 0 means low speed analogWrite(ENA, SPEED); } void loop(){
For anyone whose motor just pulses without rotating (which was happening to me) you just need to use an independent power supply for your Arduino so that the 9v battery's current doesn't get overcharged when trying to start the motor and power the Arduino at the same time.
thank you for sharing this topic clearly and concisely. I have wanted a CNC device since my first awareness. The possibility of this 65th anniversary gift is closing! thanks
4:33 Please explain the use of that 5v terminal, is it for enabling or powering Arduino? Is it 5v output or 5v input?? Also Can we use l293 with configuration?
So you're saying that motor voltage must always be equal or higher than power supply. In this video, you're using 9v Battery then your motor must be 9v or more right? Also what will happen if you don't remove Vin and GND while connecting it to PC?
At lower voltages depending on the Motor it will work but turn slower and with enough current it could have more torque. However if you pump in more voltage then the Motor is rated for say 15 Volts into a 12 Volt motor it could hurt it after a while. If you pump in say 24 Volts into the 12 volt motor it will die quickly. It's just a good rule of thumb to disable the power source such as a battery when plugging it into a PC. The PC itself will pump in 5 Volts into the device in this case the Arduino and could cause issues when trying to write code to it if you have the battery plugged in and the USB. Some MCUs such as the Arduino will do a reset when it's finished getting code written to it and depending on the Power Source it won't let it reset.
Bro I have done the same stuff wid two 5 volt dc motors but they are not rotating can suggest me anything I powered the bridge with 9 volts dc like you sir?
I connect the the l298n to a stepper motor nema17 my DC power supply shows no current being drawn when I send a signal to move the stepper one revolution and then stops I notice it's still continuously drawing max amps and it's in CC mode an till I reset the Arduino then it goes back to normal again it's like the pins 8,9,10,11 are causing it to still run some how also after about 30mins the rc522 RFID scanner stops working any ideas what this could be?
Hey your power supply is weak make sure to use 18650 batteries and don't use 9 volt battery..... If you are having trouble using l298n motor driver then you can also use l293d ic ... You can go through my channel there i have made a separate controller to wirelessly control dc motor and servo motor... Hope this helped you :)
What about sample wiring connection for 24Vpower supply to drive two 24V DCmotor, using Arduino Uno along a breadboard. Assuming Arduino Board is powered by 9V Battery, ENA and ENB enable.
Can this also work with a 9V 5A DC motor? As long as I have a power supply of 9V that also has a current of at least 5A? The only L298N that I could find has a value of 25W though, and the motor has 9*5=45W power. I don't know if that'll work.
I programed a stepper motor that stop 24 time in one loop. Would you know how to turn on an led for each stop ? So 24 blink. LED on while motors stops. LED off while motor rotates. Thanx for your great help
Beutifull video one of a kind type tutorials - keep it up with this chill sound in background. For me personally it helps me focus way better on what u saying with the track lol
we can separately give power to arduino right? connecting arduino to external power source instead of connecting the 5v from the motor driver with the arduino power pin is also possible??
Nice video.. I have a doubt.. I am using Ros serial for varying speed from robot operating system and I am having 12v power supply.. In that case is it safe to connect gpio pins while Arduino is connected to laptop.. ?
Hello, can i connect 4 motors to L298N? I connected two motors to the L298N and they work normally but while I connect the third it slows down and only one motor works. I am using a 9V battery. Do they need two batteries or is it something else?
Hi community. I need some advice regarding H Bridge guy's. What I am looking for is just H Bridge which can change the polarity of the around 100 times per second. Must work between 5 Volt to 12 Volt. What you recommend ? Many thanks
My motor spins in 'ticks'. So it spins maybe 1/8 of an inch, stops, spins an 1/8 of an inch, stops - this repeats until I power down the arduino. Why isn't it a consistent smooth spin?
Sounds like you got some stuff confused. 2.4GHz is a Radio Frequency. PWM runs in the Hz range for Arduino. Higher the Frequency the faster the pulses known as Dutycycle. In the past I have used RF to control a MCU such as the Arduino to toggle on/off and set the duty cycle "speed" of a Motor for my CNC Machine Spindle.
Please someone answer : can I use it for a physics project where I need a high frequency current of like 3.3V meaning low and 5V meaning high. Can I like use it by changing it really fast with the Arduino commands and create the signal I want to create ? Thank you!
it dependes on your motor . if u use a motor that doesnt want to exceed the power limit of 3.3v ,then u can reduce the speed in the programing which will produce a less amount of power supply. so u r motor could run. but make sure u program perfectly so that ur motor reaches correct 3-3.5v .
@@genbot7207 Noo not for a motor. I use it for an experiment with electromagnetic radiation. Basically i just send 3.3V then 5V repeatedly very very fast to create 0 and 1 and stuff like that. The thing is it might be too fast for the driver to handle. I am talking about GHz here.
very very nice video. Apreciate the effort
Thanks
@@teampsi6771
hi , i tried to controll my motor with L298N and arduino nano , but my motor was not running . why it happened cause i checked the pins and program was also correct according with pin . but it doesn't work Can you help me please
@@teampsi6771 Yes, the effort put into this video from the editing to the graphics is amazing
Concise and straight to the point explanation. Very well written description .. Hats off.. Great work!!
Dude you helped me with a school project that I've been stuck on for so long. Thank you so much!!!
he didn't put the code in so I did.
//CODE:
int In1 = 7;
int In2 = 8;
int ENA = 5;
int SPEED = 210;
void setup(){
pinMode(In1,OUTPUT);
pinMode(In2,OUTPUT);
pinMode(ENA, OUTPUT);
digitalWrite(In1,HIGH);
digitalWrite(In2, LOW);
//ENA 255 means high speed and 0 means low speed
analogWrite(ENA, SPEED);
}
void loop(){
}
Hello
Need help
Thanks
u saved us
not all heroes wear capes! thanks bro
Finally i found somebody who explained me this connection. Thank you
Pure genius. What a clean demonstration. Thank you good sir.
Wow I searched so so much for helpful tutorials on the Internet and this one is maybe the best!!!
NEATEST DC MOTOR ARDUINO INTEGRATION VIDEO IN RUclips ,THANK YOU
THE BEST video available on L298N Dual H-Bridge Motor Controller , along with the explanation ...effort appreciated
why is this video so perfect in every way
Wow! a really good video. Great explanation, great editing; the effort put in the video is exceptional.
that was so perfectly to the point
Realy appreciate your effort mann
I like the way he explains it! Good!
i hve been searching this kind of video for a long time. thanks!
For anyone whose motor just pulses without rotating (which was happening to me) you just need to use an independent power supply for your Arduino so that the 9v battery's current doesn't get overcharged when trying to start the motor and power the Arduino at the same time.
still not working broo can you please help
@@BongChoch do you still need help?
How? can you explain the schematic
Thanks 4 letting me know about pwm and it's sinus sign on next to the pin, that's important info!
nice - was looking for a practical of this specific board variant of the l298n. thank you!
thank you for sharing this topic clearly and concisely. I have wanted a CNC device since my first awareness. The possibility of this 65th anniversary gift is closing! thanks
I am glad to hear this, Sherman.
@@teampsi6771 can i use L298N DUAL FULL BRIDGE MOTOR DRIVER FOR CONTINUOUS SERVO MOTOR?
KINDLY REQUESTED,
Wow very clear instructions!
great video, i was having issues making the l928 circuit work, but this video cleared my doubts. Thanks!
the best and simple explanation ever. May Allah bless you and ease your life my friend.
always wanted a pair of talking hands,wonderful
Thank you very much. You explain so clear.
7:33, is it necessary to pull out the Vin and GND connection before connecting the data cable to computer ?
The best explanation about this part !
Thanks
4:33
Please explain the use of that 5v terminal, is it for enabling or powering Arduino?
Is it 5v output or 5v input??
Also
Can we use l293 with configuration?
as it goes to the VIN pin on the arduino its an output on the L298N
Bro it's for to power motor driver
Out
great info that helped me out on my project!
Good work !!!!! And please upload such informative videos
You did a great tutorial here. Thank you :)
Very nice video , a comprehensive and useful example.
Nice Explanation.
So you're saying that motor voltage must always be equal or higher than power supply. In this video, you're using 9v Battery then your motor must be 9v or more right?
Also what will happen if you don't remove Vin and GND while connecting it to PC?
At lower voltages depending on the Motor it will work but turn slower and with enough current it could have more torque. However if you pump in more voltage then the Motor is rated for say 15 Volts into a 12 Volt motor it could hurt it after a while. If you pump in say 24 Volts into the 12 volt motor it will die quickly.
It's just a good rule of thumb to disable the power source such as a battery when plugging it into a PC. The PC itself will pump in 5 Volts into the device in this case the Arduino and could cause issues when trying to write code to it if you have the battery plugged in and the USB. Some MCUs such as the Arduino will do a reset when it's finished getting code written to it and depending on the Power Source it won't let it reset.
Thank you. This is very useful for my project and it make me understand about L298n.
Thank you, great video. Greetings from Colombia
Bro I have done the same stuff wid two 5 volt dc motors but they are not rotating can suggest me anything I powered the bridge with 9 volts dc like you sir?
I connect the the l298n to a stepper motor nema17 my DC power supply shows no current being drawn when I send a signal to move the stepper one revolution and then stops I notice it's still continuously drawing max amps and it's in CC mode an till I reset the Arduino then it goes back to normal again it's like the pins 8,9,10,11 are causing it to still run some how also after about 30mins the rc522 RFID scanner stops working any ideas what this could be?
Easy to understand,very helpful for the beginners.
hi. If I have a 9V 2A adapter instead of a battery, how should I transfer the power to L298N Dual H-Bridge Motor Controller ??
Sir im using 3-6v motor dc and 9v batteries. But my motor won't move. Is my power source too weak?
Hey your power supply is weak make sure to use 18650 batteries and don't use 9 volt battery.....
If you are having trouble using l298n motor driver then you can also use l293d ic ...
You can go through my channel there i have made a separate controller to wirelessly control dc motor and servo motor...
Hope this helped you :)
What about sample wiring connection for 24Vpower supply to drive two 24V DCmotor, using Arduino Uno along a breadboard. Assuming Arduino Board is powered by 9V Battery, ENA and ENB enable.
Apreciate the effort, thanks for the video!
Excellent video ! Super helpful. Thank you!
get in there holmes! keep it going on
Perfect, thanks for that. I am just beginning to learn Arduino and it is very daunting. Appreciate you sharing your knowledge.
3
Can I connect 5v of arudino to the 5v of motor driver? ....
Please reply fast 🙏🙏🙏🙏
Can this also work with a 9V 5A DC motor? As long as I have a power supply of 9V that also has a current of at least 5A? The only L298N that I could find has a value of 25W though, and the motor has 9*5=45W power. I don't know if that'll work.
can we use steps of any Axis"x,y,z" out of cnc controller to control the speed of a Dc motor or stepper motor while running G-Code???
Very clear and useful. Thanks a lot
Could i connect two different Motor in the same motor driver using the In 3&4 and the Enb to control it, without changing the power source?
Sir If We use 9v battery to 12v dc motor and if Its clip which fits the power supply terminal of arduino, then will it damage the motor?
Explained very well
Hi can you fix N20motor connect adurino noisy?
Thank you very much. Really good video!
Perfect, thanks for that. I am just beginning to learn Arduino and it is very daunting. Appreciate you sharing your knowledge.
I programed a stepper motor that stop 24 time in one loop.
Would you know how to turn on an led for each stop ? So 24 blink.
LED on while motors stops. LED off while motor rotates. Thanx for your great help
sir is there any extra component required like resistor or any more? or by using this much only it will work...i m little bit confused..please help
If i am using power from my latop, can i power the motor driver with arduinos 5v pin ?
Beutifull video one of a kind type tutorials - keep it up with this chill sound in background. For me personally it helps me focus way better on what u saying with the track lol
Hi, i need the same mechanic but i need to put a rain drop sensor to trigger the motor, how will i do it, please help me.
Excellent teacher. Thank you so very much
I have 3 TB6612FNG motor driver. I am trying to connect 3 motor drivers to arduino. Which arduino should i use?
To much easy. Great work
Can you connect battery on arduino and via 5v pin it delivery power to driver?
Bro I have made a wifi control car using node mcu esp8266,l298n motor driver and a 5v battery but the motor is not moving and making beeping sound.
Can we use dc dc power booster instead of motor driver ??
Plz ans ...
Really appreciable, keep it up 👌👍👏👏👏
Do u have video about linear actuator with arduino
we can separately give power to arduino right? connecting arduino to external power source instead of connecting the 5v from the motor driver with the arduino power pin is also possible??
Very helpful thank you so much, i do have a follow up question. How would one co about scaling this up to two motors?
Hi my l298 motor driver ni 12 volt not supported but + supply attach to 5 volt out put it has worked but but way problem of 12 Volt is not supported
Nice video.. I have a doubt.. I am using Ros serial for varying speed from robot operating system and I am having 12v power supply.. In that case is it safe to connect gpio pins while Arduino is connected to laptop.. ?
Hello, can i connect 4 motors to L298N?
I connected two motors to the L298N and they work normally but while I connect the third it slows down and only one motor works. I am using a 9V battery. Do they need two batteries or is it something else?
How can I use separate batteries for the Arduino and the motors. Please help.
can we connect 4 motors to the same arduino
is it not possible to attach 9v battery connected to motor driver and still use usb to upload code?
Sir, when i followed the same procedure as above, the motor rotated stepwise. Please help.
Can someone explain why arduino is not plugged to the laptop? Is that enough the voltage source only from the battery?
Hi community.
I need some advice regarding H Bridge guy's. What I am looking for is just H Bridge which can change the polarity of the around 100 times per second.
Must work between 5 Volt to 12 Volt.
What you recommend ?
Many thanks
Well explained and good knowledge
Nice video! What should I change if I use a 24 power to power a 24V motor? Thanks
I have a 3V DC motor. Can I run it with this motor drive?
How to download arduino uno programming on the laptop can you help us and fast too
My motor spins in 'ticks'. So it spins maybe 1/8 of an inch, stops, spins an 1/8 of an inch, stops - this repeats until I power down the arduino. Why isn't it a consistent smooth spin?
Bro my +ve wire of the 9v battery gets only light up by 5v of the driver
hello.
problem at home.
exit statut expected initializer before pinmode. an idea ?? thanks
please give us code, so that we can help.
@@spynderMK it is all good. thank you
Hello can i ask.. What battery that u use ?
Sir if we need to control 6 12v DC 300ma motor ..which motor shield sould we use and how to connect ...
This was excellent. Can I use an 2.4ghz Tx to control the pwm value of the motor like an Rc car?
Sounds like you got some stuff confused. 2.4GHz is a Radio Frequency. PWM runs in the Hz range for Arduino. Higher the Frequency the faster the pulses known as Dutycycle.
In the past I have used RF to control a MCU such as the Arduino to toggle on/off and set the duty cycle "speed" of a Motor for my CNC Machine Spindle.
hi sir just wanna ask why do i need to connect the +5v terminal to the Vin of the arduino? thanks.
To supply power to driver IC bro
Please someone answer : can I use it for a physics project where I need a high frequency current of like 3.3V meaning low and 5V meaning high. Can I like use it by changing it really fast with the Arduino commands and create the signal I want to create ?
Thank you!
it dependes on your motor . if u use a motor that doesnt want to exceed the power limit of 3.3v ,then u can reduce the speed in the programing which will produce a less amount of power supply. so u r motor could run. but make sure u program perfectly so that ur motor reaches correct 3-3.5v .
@@genbot7207 Noo not for a motor. I use it for an experiment with electromagnetic radiation. Basically i just send 3.3V then 5V repeatedly very very fast to create 0 and 1 and stuff like that. The thing is it might be too fast for the driver to handle. I am talking about GHz here.
where can i get the code
Can i use it for 24V DC, 1440RPM, 5A Motor....
Can u suggest which battery is used for Bo mortors??
Bro which wire you is use
Good explanation
Can I do the same thing to my Arduino nano
Why you disconnected the Arduino to motor driver Vin and Gnd connection after send the code in Arduino board
well explained sir!
Creative video, thanks for sharing, like it :)
Sir can we use 1000kV motor with 5V battery