Control Position and Speed of Stepper motor with L298N module using Arduino

  Рет қаралды 413,953

Robojax

Robojax

Күн бұрын

Пікірлер: 526
@robertleonard7339
@robertleonard7339 8 ай бұрын
I know this is an old post but you have helped me more than you know. You're GREAT!
@ChadE1020
@ChadE1020 Жыл бұрын
thank you I spent hours tying to figure out why it was just jittering, and it was the ground from uno to power supply!
@portlyoldman
@portlyoldman Жыл бұрын
Just found our channel after much frusta searching and you have loved the clearest explanation of this topic !
@robojax
@robojax Жыл бұрын
Thanks and welcome
@allanpatterson7653
@allanpatterson7653 3 жыл бұрын
Thanks for taking the time to share. An analog dial something like a temperature indicator using a thermistor or make an hour,minute,second hand of a clock. In an age of ultra cheap time keeping it is a Dinosaur but with so much salvaged parts laying around it might make an unusual display. I do not want anyone to do my assignment for me but it is nice to have help when encountering a bad block on the road to completion.
@christopherchance4860
@christopherchance4860 5 жыл бұрын
you have the best presentation and detailed step by step walkthroughs on KZbin. Thank you for all your hard work, I would sub 100 times if possible
@robojax
@robojax 5 жыл бұрын
Thank you very much.
@planker
@planker 3 жыл бұрын
ABSOLUTLY the best Video on the L293N. If I had the chore of explaining this, I could only wish to do it as well. Awesome!
@robojax
@robojax 3 жыл бұрын
I am glad you found my tutorial useful. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 video lectures) Starts here robojax.com/L/?id=338
@cofa4011
@cofa4011 5 жыл бұрын
Found this video (again), and got the answer to the question i send you hours ago about this L298N ;) Thank you Ahmad for your videos !
@robojax
@robojax 5 жыл бұрын
You are welcome.
@AtomDellow
@AtomDellow 7 ай бұрын
Fellow Canadian :) Thanks for the video, it was very helpful, and I've seen a few which kept me looking until I found this one.
@robojax
@robojax 7 ай бұрын
Glad I could help!
@awaisqarni4823
@awaisqarni4823 3 жыл бұрын
Jazak Allah bro good information about subject by this video i drive my stepper very easily
@bilbobaggins138
@bilbobaggins138 2 жыл бұрын
This is the best tutorial i could find. Very helpful, thanks!
@giuseperangel9647
@giuseperangel9647 Жыл бұрын
Thank you for lesson teacher!
@joshlinehan3888
@joshlinehan3888 Жыл бұрын
Hi Robojax, is there anywhere I can view the full code for the speed control using the potentiometer. I see the position control code on the video but only half of the speed control. Thanks
@frankdoyal6450
@frankdoyal6450 5 ай бұрын
Nicely done,, wire to pulse regulator are they com from the PCU?
@LiveeviL6969
@LiveeviL6969 4 жыл бұрын
Very good presentation. I've had the L298, steppers, and Arduino for some time now and haven't been able to put it all together and now it's easy. Thanks again!
@robojax
@robojax 4 жыл бұрын
You are welcome!
@patrickyam6315
@patrickyam6315 2 жыл бұрын
You make it so easy to connect L298, stepper motor & Arduino. Excellent job and thank you.
@omniyambot9876
@omniyambot9876 3 жыл бұрын
Great video sir but how to know what arrangement is would I put the wires?
@robojax
@robojax 3 жыл бұрын
Didn’t understand your question. I have explained the wiring fully. Watch it 2 or 3 or 4 time to get it if you can’t get in one time
@jonpinkhasik8865
@jonpinkhasik8865 3 жыл бұрын
Thank you for the high quality, thorough explanation!
@bhgtanable
@bhgtanable 2 ай бұрын
Awesome vidz ... here learning up on stepper motor controller ... quick question , I need to control a NEMA 17 but just needed to have a very small moment 1000steps controlled by a cnc encoder without the arduino module in a harsh environment..... thanks in advance.
@rameshtripathy5978
@rameshtripathy5978 3 жыл бұрын
Excellent description & very helpful to enhance application knowledge on stepper motor & Arduino !We hope to see you with your more tutorials of steeper motor application for use in a letter engraving machine , router machine & other applications ! Thank you so much Sir for this educative post !
@grahamgideon9485
@grahamgideon9485 Жыл бұрын
This is a very good and helpful video. My stepper motor is just jittery and not rotating how can i solve this problem # i am using a 9v battery.
@vaitheeswarank9830
@vaitheeswarank9830 3 жыл бұрын
Best explanation 👍
@perinoveriza1658
@perinoveriza1658 4 жыл бұрын
Love your channels use multi language...thanks
@robojax
@robojax 4 жыл бұрын
So nice of you. you are welcome.
@leadsengineers1394
@leadsengineers1394 4 жыл бұрын
YOU ARE THE BEST SIR.................Specially how you cover every espect...............HUGE THANKS>>>>>
@robojax
@robojax 4 жыл бұрын
You are most welcome
@Saxonpod
@Saxonpod 5 жыл бұрын
Ive followed your instructions & all is working well. My L298N & stepper motor are getting extremely hot am I doing something wrong?
@robojax
@robojax 5 жыл бұрын
Your motor must be powerful. either use another motor with lower power or some how increase the size of heat sink.
@michaelwdunedinnewzealand2993
@michaelwdunedinnewzealand2993 3 жыл бұрын
very video, I dont recall you showing the reverse motor knob function. can you show that please.
@robojax
@robojax 3 жыл бұрын
you mean to set knob at the middle and motor stays at on position. then rotate knob to CW or CCW to rotate motor in that direction?
@michaelwdunedinnewzealand2993
@michaelwdunedinnewzealand2993 3 жыл бұрын
@@robojax yes. I have a magnetic loop antenna where I need to be able to turn the capacitor one way or the other to tune the antenna to a different frequency forwards in the band or backwards as I use the radio for transmitting on different frequencies
@OxTongue0
@OxTongue0 4 жыл бұрын
Hello Sir Thanks for the video and very clear step by step explanation Please let me know how to control the without Aurduino ? Can I be able to control this same stepper motor with driver board by other means ? If yes what signals I need to feed the Driver module ? I am planning to use a PWM signal from other module
@robojax
@robojax 4 жыл бұрын
you are welcome. PWM is not the right way but can be done. this is all about counting. You can learn it from other video here kzbin.info/www/bejne/iZ2Vnq2Om7mqedU
@mdproForPC
@mdproForPC 7 ай бұрын
one of the bes tut i have seen and will use it much much thanks
@robojax
@robojax 7 ай бұрын
wow. Glad to hear that. you are welcome.
@mdproForPC
@mdproForPC 7 ай бұрын
@@robojax i bouth everything but my L298N getting way to hot, 12V 10 amp power supply,
@kieranproven4874
@kieranproven4874 2 жыл бұрын
Thank you for making this video. It's exactly what I'm looking for.
@RixtronixLAB
@RixtronixLAB 2 жыл бұрын
Creative video, thanks for sharing :)
@chayasulakhe9021
@chayasulakhe9021 6 ай бұрын
Excellent explained. Keep uploading new videos... enjoyed, thanks.
@sunaybayraktaroglu
@sunaybayraktaroglu 7 ай бұрын
Super bir anlatım olmuş. Tesekkurler. Yabancı Dil bilmesem dahi yaptım. Supeeeerrrr.
@robojax
@robojax 7 ай бұрын
Bir şeyler öğrendiğine sevindim. Rica ederim
@wonderfulwolf5285
@wonderfulwolf5285 7 ай бұрын
Sunay kodu atabilir misin
@MicrobyteAlan
@MicrobyteAlan 3 жыл бұрын
This is exactly where I am in my exploration. Well presented and thorough. I subscribed and liked. Thanks
@robojax
@robojax 3 жыл бұрын
Thanks for the sub!
@program2445
@program2445 3 жыл бұрын
thank you so much for detailing explaination sir (also turkish subtitlet)
@90FF1
@90FF1 Жыл бұрын
Have a project. Need some answers. Where is the best resource. Of course! Robojax is #1.Thank you. Exactly what I was looking for and clearly explained. Thank you.
@Vhbaske
@Vhbaske 4 жыл бұрын
You are a great teacher!
@robojax
@robojax 4 жыл бұрын
Thank you! 😃
@pure_i_mlika
@pure_i_mlika 3 жыл бұрын
Man bless your soul
@robojax
@robojax 3 жыл бұрын
God bless your soul too. I hope you've subscribed as your subscription help my channel grow. Thanks
@ralphrego7470
@ralphrego7470 2 жыл бұрын
Hi Robojax, I am new to all of this, but I just love your explanation. I need my stepper motor to travel 45 degrees counterclockwise when I turn on the machine, and then clockwise when I turn off the machine. That's it, just turn on, and 45 degrees counterclockwise turn off and 45 degrees clockwise. Any help will be much appreciated. Thanks.
@robojax
@robojax 2 жыл бұрын
Hi, I have another video shown how to control is with push button switch here kzbin.info/www/bejne/maTJkHpnpc5jptU this might help
@mixme8655
@mixme8655 7 ай бұрын
I like your videos many important tips I learned thank you for sharing
@robojax
@robojax 7 ай бұрын
You are so welcome
@alaninness8113
@alaninness8113 Жыл бұрын
One problem of this pre-made board, does not make the current sense pins of the L208 available in order to use a translator IC such as L297 and picmiocro, so that any current rated motor under 2a can be used, regardless of voltage,. The motor used with the board Has to be 12v !
@robojax
@robojax Жыл бұрын
Here I use the current sensing with this shield which uses similar motor driver Current Sensing with Arduino Motor Shield with L298N L298P kzbin.info/www/bejne/Y6a0fHV6ibx7hq8
@phattangpt0939
@phattangpt0939 2 жыл бұрын
your video is very good. let me ask when i supply 12V/5A to L298 and nema 17 stepper motor then after some time the motor and l298 get very hot
@robojax
@robojax 2 жыл бұрын
Please see the second video I have created to eliminate the issue of heat. See the link in description or search my channel. It is about stop and hold.
@phattangpt0939
@phattangpt0939 2 жыл бұрын
@@robojax Can I have the link please?😊
@josiecrotty6871
@josiecrotty6871 Жыл бұрын
were you able to find a solution to this? i have the same issue
@instantkaffeguld
@instantkaffeguld 5 жыл бұрын
I needed this. Thank you!. Will watch in a few days when my project is nearing its coding phase
@robojax
@robojax 5 жыл бұрын
You are welcome.
@oscarvalera410
@oscarvalera410 3 жыл бұрын
Muy buen trabajo , Very good job
@MakerDan55
@MakerDan55 2 жыл бұрын
Thanks for the great video. I usually use the A4988 Stepper Motor driver and with those, you have to set the current limit so you don't burn out your stepper motor. How do you control the current limit with the L298N?
@robojax
@robojax 2 жыл бұрын
No current limit with this chip.
@MakerDan55
@MakerDan55 2 жыл бұрын
@@robojax thanks. How do you limit the current to the stepper then?
@zergling7696
@zergling7696 Жыл бұрын
​@@MakerDan55 L298n have Max 2a output
@jboy6944
@jboy6944 Жыл бұрын
Lovely video.
@dannyneighbour5124
@dannyneighbour5124 2 жыл бұрын
Hi Robojax. Two days ago I was totally new to the Arduino, even though I've been an electronics engineer for over 30 years. Thanks entirely to you and your excellent series of videos for absolute beginners, I programmed my first Arduino today using the L298N module to move a stepper motor forward and backward a set number of degrees, each direction with a different speed. This is for a project I am working on to replace a dc motor and noisy crank system. My question is, do you have a video or any code on how to set the home position on a stepper using a micro switch on startup? thanks a million. Dan.
@robojax
@robojax 2 жыл бұрын
Hi Danny, You are very welcome. I am glad you found my tutorial useful. nice to meet you pal. same here Electrical Engineer. Actually I don't have such video yet but it is on my list at the top. Got busy with life. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 video lectures) Starts here robojax.com/L/?id=338 this course has wiring diagram for each video. You have a look at my other stepper related videos kzbin.infosearch?query=Stepper
@g3rcq
@g3rcq Жыл бұрын
Hi Danny - I wish I could learn as quick as you - 78 this end - I am trying to do something simple - two buttons - forward and reverse - speed set in code - to drive a stepper motor - I have it running in one direction - but not the other - any ideas please thanks
@paup8778
@paup8778 3 жыл бұрын
muy bueno, gracias
@robojax
@robojax 3 жыл бұрын
***** Free Arduino Course worth $200**** Arduino Step by Step Course (over 150 lectures) Starts here robojax.com/L/?id=338
@nickfelstead7559
@nickfelstead7559 3 жыл бұрын
thank you so ,uch for this,. great help
@robojax
@robojax 3 жыл бұрын
you are welcome. Please subscribe. I appreciate it and helps my channel grow. Thank you
@Tech23-p1y
@Tech23-p1y 7 ай бұрын
New subscriber here. Thanks for this informative video. Just one quick question, I want to use a push button to execute the start and stop of the code you used. How will I do that? Thanks a lot
@robojax
@robojax 7 ай бұрын
Ғpluses the links in description or search my channel. Thanks for subscribing
@Tech23-p1y
@Tech23-p1y 7 ай бұрын
@@robojax Thank you very much.. will check that
@nab024
@nab024 5 жыл бұрын
Hi, thanks so much for the video - it really is the best on KZbin for this topic. I have a question: Whenever I take the motor above ~250 RPM, it stops moving and just squeals. It draws 12V 0.4A, and is getting the correct power. I'm using an Arduino Uno and the L298N as well as a 10K potentiometer. Any help would be greatly appreciated!
@robojax
@robojax 5 жыл бұрын
You are welcome. Thank you for your comment. If doesn't run faster, most probable reason would be limitation of the motor, unless you have Serial monitor in the loop printing something. Make sure not to print anything as serial monitor is very slow and it slows the motor.
@mahdiazani6893
@mahdiazani6893 4 жыл бұрын
hi thank you for this video can we control the position of a actuator withe is change the stteper motor withe a actuator
@robojax
@robojax 4 жыл бұрын
Hi, you are welcome. this module can be used. here is the video to control actuator kzbin.info/www/bejne/e5LSc2mim9OGbck
@ajisumiardi6736
@ajisumiardi6736 4 жыл бұрын
wow,, your video too good to be,, the explanation so detail in step by step. It make me buy L298N module and nema 17 stepper motors. But sadly, I just check it out if the L298N really really hot after testing. It make this L298N not quite suitable for long works. Better using A4988 or DR8825 to drive stepper motor, guys,, it has potentiometer to adjust Vr, so does no more hot-thingy again.
@robojax
@robojax 4 жыл бұрын
people have overhead issue due to stop and turn OFF. I have addressed that in this latest video kzbin.info/www/bejne/maTJkHpnpc5jptU when you apply either brake or stop.
@ajisumiardi6736
@ajisumiardi6736 4 жыл бұрын
@@robojax yeah, I have been watch it, but I prefer buy proper stepper motor driver then,, Great jobs for that videos, you give the preview for all your videos,, it saves my time,, hope you get healthy as always to give us another knowledge,,
@TheAutoDIYGuy
@TheAutoDIYGuy 4 жыл бұрын
I have connected everything just like you showed in your video, however, the only difference is that my power supply is 24V. The motor did turn once and then the L298N Chip sparked and burnt. I unplugged it right away. What do you think went wrong? EDIT: hmmm okay, so I tested with the other 2 modules I got, they allowed the motor to turn once, and then stopped working. I believe they're faulty. When sending 5v to the login pins, the output pins are not getting 24v. They were getting the 24v before I tested the motor. Maybe I got faulty L298N's?
@robojax
@robojax 4 жыл бұрын
check wiring, make sure motor is rated at the voltage you are connecting. I am assuming you have not changed the code.
@TheAutoDIYGuy
@TheAutoDIYGuy 4 жыл бұрын
@@robojax The motor is Nema 17. I believe it's the L298Ns that are faulty. Code has not changed. I did a test where I would bypass the Arduino, and just apply 5V to the logic pins to see if I would get voltage on the output, but nothing.
@Locomotive84
@Locomotive84 Жыл бұрын
Lovely video. Is it possible to move the rotor randomly?
@principecristiano
@principecristiano Жыл бұрын
gracias , será útil esta información para el L293D de un solo microcontrolador ,supongo que se programa igual en arduino, un saludo
@அர்ஜூன்-ற1ங
@அர்ஜூன்-ற1ங 2 жыл бұрын
I need details about power supply for various ratings of stepper motors
@robojax
@robojax 2 жыл бұрын
you need to know the voltage and current (voltage x currfent= power in Watts) then get a power module or power supply with 20% more power.
@charmingali34
@charmingali34 4 жыл бұрын
Hi, First of all thank you for making this wonderful tutorial. I have followed the steps of your video with my Nima17 motor and L298N driver. But at slow speed (below 60) its just giving a jerk not even a complete rotation. I didn;t change any value of Example provided in Arduino but the motor was not running as your was runing at same value. However, once i increase the speed it did revolved smoothly. Can you please help in this regard as am doing this tutorial to control stepper motor at slow speed (but more torque). Many Thanks!
@charmingali34
@charmingali34 4 жыл бұрын
I just figured out through guidance in your video that i was using less power supply and low speed motor was drawing more current. Now its working with changing power source
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad you found it useful and resolved the issue. Peace. Stay safe.
@அர்ஜூன்-ற1ங
@அர்ஜூன்-ற1ங 2 жыл бұрын
@@charmingali34 what rating of power supply you are used? I am also get same problem like u..
@Bluebirdiran
@Bluebirdiran 4 жыл бұрын
دست شما درد نکنه جناب شمشیری. فکر کنم برادر افغانی ما باشی. من از ایران هستم و انشالله که روزی بتوانی از تخصص خود در افغانستان استفاده کنی. موفق باشید.
@robojax
@robojax 4 жыл бұрын
سلامت باشید. تشکر
@robojax
@robojax Жыл бұрын
سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید. www.youtube.com/@ilmofan
@zakoursamir3997
@zakoursamir3997 3 жыл бұрын
Thank you so much sir, , excellent explanation
@robojax
@robojax 3 жыл бұрын
You are most welcome
@Mojtba-rk8pu
@Mojtba-rk8pu Жыл бұрын
عالی بود ❤
@robojax
@robojax Жыл бұрын
www.youtube.com/@ilmofan سلامت باشید. مجرای فارسی بنام علم و فن را راه اندازی کردم
@joshlinehan3888
@joshlinehan3888 Жыл бұрын
Great explanation, is that a 1k potentiometer you use?
@robojax
@robojax Жыл бұрын
anything from 1k to 500k ohm will work.
@easwaran83
@easwaran83 3 жыл бұрын
great video! I have a query How do I measure current drawn by the stepper in serial display wen it operates thru L298N motor driver. I want to stop the say CW direction if the current drawn is over a particular limit and change to CCW. the use case is when using this stepper to open and close a sliding door, & an intruder interfere while door closing it should detect the intruder/load & change the direction of rotation to open the door instead of closing. please help
@robojax
@robojax 3 жыл бұрын
Here is my video on current sensing for the same chip used in Arduino Motor Shield kzbin.info/www/bejne/Y6a0fHV6ibx7hq8
@juliuscaesar5001
@juliuscaesar5001 Жыл бұрын
Hi robojax, thank you, I did exactly what you did in the video, my nema stepper is running on the code but the module gets hot quickly, like very hot, the power supply is 12 volt 5 A, what's the solution, thanks
@robojax
@robojax Жыл бұрын
Hi, please see this video kzbin.info/www/bejne/maTJkHpnpc5jptU to learn why the current is too high.
@fernandomendoza6478
@fernandomendoza6478 3 жыл бұрын
hello, for the last section of the video regarding the speed controller. How do you make it go counter clockwise?
@robojax
@robojax 3 жыл бұрын
Hello, you made me watch the video. Perhaps you missed 100 vs -100 which changes the direction. Please watch it fully so you have no questions lest. If you want to control the speed using push buttons see this video kzbin.info/www/bejne/maTJkHpnpc5jptU
@shirishagarwal4139
@shirishagarwal4139 3 жыл бұрын
@@robojax i had checked , and pur -100 , my still keep going in single direction only I changed no of steps also 200 clockwise - 100 for counterclock wise ( half circle ) It still goes 200 clockwise only
@shirishagarwal4139
@shirishagarwal4139 3 жыл бұрын
@@robojax first of all Thanks you very much for the detailed descriptive video शुक्रिया from India
@roghibashfahani15
@roghibashfahani15 2 жыл бұрын
Hello, how to make stepper move forward and back with timer. I mean i wanna move the stepper for 10 second and back after that. Thanks
@aaronnichols5206
@aaronnichols5206 4 жыл бұрын
Thank you. Im having an issue with my set up over heating. Im afraid it drawing to much current but I can seem to see the amp draw with my meter.
@robojax
@robojax 4 жыл бұрын
You are welcome. Please see this video kzbin.info/www/bejne/maTJkHpnpc5jptU in the "Brake" section. I have explained the difference between brake and stop. Stop wastes energy to hold the motor. I have demonstrated it in the new video.
@charmingali34
@charmingali34 4 жыл бұрын
Its a wonderful content and you explain it so well. There is one request, if you can please consider and make tutorial that how we can control 3 stepper motors with one Arduino. Many thanks ❤️
@robojax
@robojax 4 жыл бұрын
I will try to make video of that. I will put on on my "to do" list. thanks
@charmingali34
@charmingali34 4 жыл бұрын
@@robojax ❤️
@scottwindham9824
@scottwindham9824 4 жыл бұрын
As far as the step and direction is concerned, can I switch a 5VDC signal without the use of an external computer or aurduino? I would like to use a very simple handheld box with a switch (up/down) to move a motor cw and ccw. I have used STAC5 controllers in this way with a fixed velocity. 5VDC to the step input energizes the motor and then adding a 5VDC signal to the dir changes it's direction. Thanks!
@robojax
@robojax 4 жыл бұрын
You can’t do it. It has be turned and off 1000s of times by microcontroller
@bigbear333uk1
@bigbear333uk1 Жыл бұрын
Great video but one problem is that my driver heatsink gets really hot to the point that i cant touch it. Do you know why that is?
@robojax
@robojax Жыл бұрын
it is the matter of HOLD or just stop. I have explained it here in the second video in this series kzbin.info/www/bejne/maTJkHpnpc5jptU
@Ronavargas
@Ronavargas 4 жыл бұрын
Great video! Thanks for teaching us.
@robojax
@robojax 4 жыл бұрын
My pleasure!
@pir869
@pir869 3 жыл бұрын
The L298N could be re-made using discreet parts to get far more than 4A if needed.
@goodvibesphilippines5489
@goodvibesphilippines5489 4 жыл бұрын
Can you please show what power supply are you using for your L298N module.
@robojax
@robojax 4 жыл бұрын
it is a power supply (box) with 0-30V 3A. I have reviewed similar item recently.
@zrtapoz8316
@zrtapoz8316 4 жыл бұрын
thank you for this video. I have a question what kind of power supply did you choose?
@robojax
@robojax 4 жыл бұрын
you are welcome. I believe I mentioned it. The voltage and current depends on your motor. See your motor datasheet. Voltage can be from 5.5V to 25V. The current is also determined on motor. This motor needs 2A.
@zrtapoz8316
@zrtapoz8316 4 жыл бұрын
@@robojax thank you for responding . Reason that why i asked that i got same stepper motor but im using to give power to driver circuit 12V 1A power adapter there for ı couldnt drive nicely stepper motor stucks and vibrates
@malikwijaya123
@malikwijaya123 Жыл бұрын
Does the value of the potentiometer resistance have any effect?
@robojax
@robojax Жыл бұрын
No. Any values 1k or higher will work.
@malikwijaya123
@malikwijaya123 Жыл бұрын
@@robojax Oh.. Ok, thanks.
@keerthirathna7869
@keerthirathna7869 4 жыл бұрын
Nice explained. thank you 🙏
@robojax
@robojax 4 жыл бұрын
You are welcome
@ramybrahim3188
@ramybrahim3188 11 ай бұрын
Thankyou Prof From Morocco
@robojax
@robojax 11 ай бұрын
you are welcome akhi.
@hernangarcia1690
@hernangarcia1690 9 ай бұрын
Exelente Gracias por compartir sus conocimientos
@symontorres3952
@symontorres3952 2 жыл бұрын
Is it possible to add relay module so that i can directly plug to 220v instead of using battery
@robojax
@robojax 2 жыл бұрын
You need power supply or power adapter that you connect to the wall outlet and they adapter gives you 12V.
@symontorres3952
@symontorres3952 2 жыл бұрын
But why the l289 ang the motor becomes hot in a short period of time
@jemyj2591
@jemyj2591 Жыл бұрын
Love you bro
@lucianorascano7384
@lucianorascano7384 3 жыл бұрын
Gracias por compartir tus conocimientos, estoy empezando a experimentar con motor paso a paso y tu video me ayudo de mucho!! Saludos desde argentina! Me subcribi👍
@robojax
@robojax 3 жыл бұрын
Me complace que los haya encontrado útiles. Gracias por suscribirse. Mantenerse a salvo. Saludos desde Canadá. Puede ver este video kzbin.info/www/bejne/maTJkHpnpc5jptU
@CraftTech-v4c
@CraftTech-v4c 2 жыл бұрын
Hi . How many tourqe the step motor can produce? I want it fir a spindle sander project . It sould lift . 775 motor horizontal .thanks.
@robojax
@robojax 2 жыл бұрын
Hi. You gotta get that information from the. Motor datasheet.
@jasonturner4591
@jasonturner4591 4 жыл бұрын
Thank you so much sir!! I can now work on my DIY 3D printer!
@robojax
@robojax 4 жыл бұрын
Glad I could help!
@charmingali34
@charmingali34 4 жыл бұрын
Wonderful, did you work on it or still planning? I need to ask were you be able to connect multiple stepper with Arduino
@MohamadSaleem-w7z
@MohamadSaleem-w7z 4 жыл бұрын
Hello sir, I need to know how I can get the MOTOR to do 10 turns to the right and 10 turns to the left and keep doing that. THANKS.
@robojax
@robojax 4 жыл бұрын
Assalamu alaikum, wow. interesting project. I will put it on my list and if time permit, I will make video.
@tamborileyro
@tamborileyro 8 ай бұрын
RJ. Thank. My question : I have a Siemens step motor 1BC 2826 6AG. Has two ports. Each with (rfed,black,brown tern of wires). None is connected to other one. Hos can I discern how to connect this to L298. Cheers from Italy. Wait for your feedbcak. J. Could you give the brand and model of the stepper you used in the video?
@robojax
@robojax 8 ай бұрын
Hi, the motor I used it simply called NEMA17. For your motor you need to get that datasheet and see how the internal wiring is done. Then it would be simple if you watch this video. Cheers from Canada 🇨🇦
@tamborileyro
@tamborileyro 8 ай бұрын
tHX AHMAD. i am trying stepper 28BYJ-48; the simplest for L298. Using the sepped routine in lib, motor is rotating but at low speed: arger V into mA) and the stepper STOPS with hi pitch . I use ext VCC with damp 220uF cap but still wont y pass the observed rpm of 0.16 rpm ;;1/6 . The speed parameter i use is 10 to 15. Any higher , the stepping it stops. All the leds are lighted when this happens. My statement MAP does 10bit 1023 for the ADC to range 100; but is not even close to 20%. If I put highr value in the maping ceiling, the steeper stalls.. I will tryt getting the nema17. have good time. J@@robojax
@hppavilion6484
@hppavilion6484 3 жыл бұрын
i am facing the same problem had tried all the solutions changing wire combination, code, pins drivers but the motor is still sometime gives a beep only or rattles with beep and the strange thing is that motor is showing continuity in all four pairs, led blew up no matter what the wire combination is it show continuity on pairing 1,2 -1,3 -1,4 and so on for all. I had tried running motor directly with arduino without motor driver and it is running, but facing issue while it is connected to CNC shield with A4988 driver. I am using Arduino uno and motors are 4 pinned. Could you please tell me what I am doing wrong?
@hariharanc266
@hariharanc266 4 жыл бұрын
Great sir, Very nicely explained
@robojax
@robojax 4 жыл бұрын
Thanks for liking
@benjibarthet4981
@benjibarthet4981 4 жыл бұрын
What is the difference betwen this l298 and the h-Bridge one and you said its dual full bridge?
@robojax
@robojax 4 жыл бұрын
L298N is chip which does the job H-Bridge. Like Toyota is car moving people from A to B. L298N is explained fully here kzbin.info/www/bejne/rZ-YdWqgZt6Vrrs
@Bgaun
@Bgaun Жыл бұрын
Whenever I try this for speed control, my potentiometer has no effect. My potentiometer says b10 K on top. I really need to get this to work. Any advice?
@guilhermetroianpagnosiguim5040
@guilhermetroianpagnosiguim5040 19 күн бұрын
The difference between potentiometers with A and with B. Is that with A it is logarithmic (normally used for audio since sound is also logarithmic) a graph with an exponential function. And the ones that start with B are linear, a graph with a simple diagonal line. In the video he used a Linear B resistor, the amount of resistance makes no difference in a voltage divider, so yours should work correctly, check the connection
@eonoire
@eonoire 3 жыл бұрын
Can I run this with 9 Volts or does it need specifically 12
@robojax
@robojax 3 жыл бұрын
please watch it fully. there is nothing excess. if you have the module, then you should learn everything about it.
@adamwishney3945
@adamwishney3945 4 жыл бұрын
Great video. Thank you! When I use the L298N with my SY42STH47-1684MA stepper motor running at 12V, the L298N gets really hot. Do you know why this may be?
@robojax
@robojax 4 жыл бұрын
You are welcome. When you connect 12V to the module, it passes the 12V to the motor. Perhaps your motor is not rated at 12V or it is over loaded. if there is no load and still getting hot, it could also be that the signal is going to the motor to hold it in a position but the motor should tolerate that. So check the voltage of motor unless the wiring is incorrect.
@slathian1223
@slathian1223 4 жыл бұрын
The L298N is not really made to run steppers you would be better off spending a bit more on a TB6600 or an A4988. If you do still want to use the L298N you need to have a fan blow on it.
@hanasitisalmah5562
@hanasitisalmah5562 3 жыл бұрын
THANK YOU
@mhayetbastida5703
@mhayetbastida5703 2 жыл бұрын
Hello. I am really thankful for this video of yours. Anyway, I just want to ask if it would be okay to use not exactly 12V power supply? Like our power supply only outputs 11.6-11.7V. Will there be any changes if we use exact 12V or not? Hope that this will get noticed. Thank you so much! 💖
@robojax
@robojax 2 жыл бұрын
Hi, of course you can use. I believe I've shown the datasheet for l298N. I don't remember what I said, you can connect up to 18V power for 18V motor. 12V was just common voltage for this type of motor that I used.
@mhayetbastida5703
@mhayetbastida5703 2 жыл бұрын
@@robojax wow, okay thanks for that information!
@v3rox489
@v3rox489 3 жыл бұрын
Thanks for the informative tutorial! Does the L298N module support a 2 amp stepper motor? I am currently using an Adafriud Motor Stepper Servo Shield, but unfortunately this shield only supports a current of 1.2 amps. However, since I need a more powerful stepper motor for my project, I recently got myself a 59Ncm stepper with 2 amps. Since the Adafuit shield doesn't support the whole thing, I'm now looking for a new board. I hope the L298N module supports this stepper.
@robojax
@robojax 3 жыл бұрын
you are welcome. I've provided the datasheet for L298N and also shown it. I forgot what the current was so please refer to the datasheet. the link to code and resources page is in the description.
@attemptedqso4641
@attemptedqso4641 3 жыл бұрын
Is there something we could do in the code for the step motor knob, that would reduce buzzing or shut off power to the motor when the mapped steps have been completed? Such as a movement threshold or standby mode?
@robojax
@robojax 3 жыл бұрын
if understood this code, it would be very easy. I've tones of other videos to control buzzer or relay. you can combine them with this code.
@jp15sil24
@jp15sil24 Жыл бұрын
You said in the video, the arduino has no power , the board with the L298N has power. We just the ground between arduino and the L298 board. We do not need power on the arduino ????
@guilhermetroianpagnosiguim5040
@guilhermetroianpagnosiguim5040 19 күн бұрын
Yes, we need power on the Arduino so that it can send commands 100% of the time, otherwise the motor will not work. In the video he used the 5V output of the L298N controller and connected it directly to the Arduino input (5V input).
@raifhanna131
@raifhanna131 3 жыл бұрын
thanks for this video,for me I need to control motor speed using pulses generated from cnc controller {without changing in G-code }instead of using PWM ,how to achieve it please???
@raifhanna131
@raifhanna131 3 жыл бұрын
I mean when the value of pulses is high then the speed go high and vice verse
@robojax
@robojax 3 жыл бұрын
you are welcome. interesting project. I have not worked with G-code but arduino can accept or understand voltage levels. See my other videos on controlling stepper motor using push buttons and then once you learned that you may use the same method to use your CNC signal as push button switch. Here is how to find Specific KZbin Video in a channel bit.ly/findKZbinVideo
@raifhanna131
@raifhanna131 3 жыл бұрын
@@robojax video unavailable
@febochestbox5507
@febochestbox5507 4 жыл бұрын
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.
@robojax
@robojax 4 жыл бұрын
this is the wrong video. if you are you look at to run DC motors, then here is the video kzbin.info/www/bejne/aHu3fqSLh6-Hrck fully explained and here are all videos where L298N is used kzbin.infosearch?query=L298N
@RoMecha_lb
@RoMecha_lb 4 жыл бұрын
Great work
@robojax
@robojax 4 жыл бұрын
Thank you.
@AlexFuzz90
@AlexFuzz90 4 жыл бұрын
Gracias maestro!
@robojax
@robojax 4 жыл бұрын
de nada.
@hendrisemuel
@hendrisemuel 3 жыл бұрын
Thank you for the explanation, please allow me to download the code
@robojax
@robojax 3 жыл бұрын
The code link is in description and is available for all.
@hendrisemuel
@hendrisemuel 3 жыл бұрын
@@robojax thanks
@AustinGarrett-d4k
@AustinGarrett-d4k 3 ай бұрын
I’d like to control a stepper with a POT wirelessly. How would I do that?
@robojax
@robojax 3 ай бұрын
Yes possible. I will put it on my list.
Big Stepper Motors with Arduino
29:43
DroneBot Workshop
Рет қаралды 1,2 МЛН
MOSFETs and Transistors with Arduino
40:50
DroneBot Workshop
Рет қаралды 1,1 МЛН
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 694 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Arduino Tutorial 35: Understanding How to Use a Stepper Motor
40:09
Paul McWhorter
Рет қаралды 303 М.