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

Поделиться
HTML-код
  • Опубликовано: 30 июн 2024
  • In this video we learn how to use the bipolar (4 wires) Stepper motor. We learn how to find the poles (wires) and how to connect and program it.
    Purchase from Affiliated store:
    All Products below have full free RUclips Course
    Arduino 3-in-1 ioT Learning Kit from SunFounder:robojax.com/L/?id=367
    Purchase The best Ever ESP32 Camera Learning from SunFounder:robojax.com/L/?id=368
    Raspberry PI Robot Camera Car kit from SunFounder:robojax.com/L/?id=365
    Raspberry PI Pico CAr kit from SunFounder:robojax.com/L/?id=366
    Control speed of stepper motor using push buttons • Control Speed of Stepp...
    Watch my full ultimate video for mini stepper 28BYJ-48 with 8 projects to controls direction, speed, start/stop and more:
    • Using 28BYJ-48 Stepper...
    *** Free Course ***
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe and enable the bell 🔔.😊
    The potentiometer use can be anything 1kΩ or higher up to 500kΩ.
    ** Purchase Arduino Start Kit **
    Amazon USA: amzn.to/3z88F9G or just UNO board amzn.to/3aY7KOL
    Amazon Canada: amzn.to/31an88J or just UNO board amzn.to/3pYxSNN
    Amazon Europe (all Europe): amzn.to/3pMCHge or Just UNO board amzn.to/2PgGItD
    AliExpress: s.click.aliexpress.com/e/_9uc7Xe
    Banggood: www.banggood.com/custlink/3GD... or UNO board www.banggood.com/custlink/vKm...
    eBay: ebay.us/B1JWLi
    ***** Purchase Authentic Arduino Uno from ***
    Amazon USA: amzn.to/2KApAwK
    Amazon Canada: amzn.to/37LZ8sW
    All Europe Amazon: amzn.to/36YDSzn
    Download the code for this video: bit.ly/4-wire-stepper
    ***** Purchase Authentic Arduino Uno from ***
    Amazon USA: amzn.to/2KApAwK
    Amazon Canada: amzn.to/37LZ8sW
    Purchase Stepper Motor (Affiliated) store:
    NEMA17 Stepper motor
    Amazon USA: amzn.to/31OIWnp
    Amazon Germany: amzn.to/3ow77AP
    Amazon Canada: amzn.to/3oAnDzw
    Amazon UK: amzn.to/3e30H7x
    Amazon Italy: amzn.to/3e30KjJ
    Amazon France: amzn.to/2G4kruR
    Amazon Spain: amzn.to/3jzGCH5
    アマゾンジャパン:amzn.to/37KJb6P
    *** Purchase L298N Motor Driver Module from ***
    eBay: ebay.us/XG3dal
    Amazon Canada: amzn.to/3zXFbvp
    Amazon USA amzn.to/3qpyBt8
    All other Amazon: amzn.to/3jfvp1C
    AliExpress: s.click.aliexpress.com/e/_9xGXUr
    Banggood www.banggood.com/custlink/GKG...
    Jump of this video by click on the times listed below
    00:00 Start
    00:52 Introduction
    01:51 Hardware Explained
    10:06 Wiring Explained
    13:27 Code Explained (1)
    19:06 Code Example (One step at a time)
    19:47 Code Example (motor knob: position)
    26:15 Code Example (motor knob: speed)
    If you found this tutorial helpful, please support me so I can continue creating content like this. You can support me via PayPal: bit.ly/rj-paypal
    Related videos:
    -STLPB-01 Control Speed of this motor using Push Buttons: • Control Speed of Stepp...
    -What is PWM Frequency of Arduino (Video): • What is Arduino Uno PW...
    -How to use a breadboard (video) : robojax.com/L/?id=121
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    Follow me on Facebook robojaxTV
    Follow me on Twitter: / robojaxtv
    Follow me on Instagram: / robojax
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    #robojax #robojaxStepper #robojaxL298N
  • НаукаНаука

Комментарии • 516

  • @rameshtripathy5978
    @rameshtripathy5978 3 года назад +5

    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 !

  • @christopherchance4860
    @christopherchance4860 5 лет назад +33

    you have the best presentation and detailed step by step walkthroughs on RUclips. Thank you for all your hard work, I would sub 100 times if possible

    • @robojax
      @robojax  4 года назад

      Thank you very much.

  • @patrickyam6315
    @patrickyam6315 2 года назад +1

    You make it so easy to connect L298, stepper motor & Arduino. Excellent job and thank you.

  • @allanpatterson7653
    @allanpatterson7653 2 года назад +1

    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.

  • @robertleonard7339
    @robertleonard7339 4 месяца назад +1

    I know this is an old post but you have helped me more than you know. You're GREAT!

  • @planker
    @planker 2 года назад +1

    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  2 года назад

      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

  • @jonpinkhasik8865
    @jonpinkhasik8865 3 года назад +2

    Thank you for the high quality, thorough explanation!

  • @cofa4011
    @cofa4011 4 года назад +1

    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  4 года назад

      You are welcome.

  • @portlyoldman
    @portlyoldman Год назад +1

    Just found our channel after much frusta searching and you have loved the clearest explanation of this topic !

    • @robojax
      @robojax  Год назад

      Thanks and welcome

  • @bilbobaggins138
    @bilbobaggins138 2 года назад +1

    This is the best tutorial i could find. Very helpful, thanks!

  • @LiveeviL6969
    @LiveeviL6969 3 года назад +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  3 года назад

      You are welcome!

  • @MicrobyteAlan
    @MicrobyteAlan 2 года назад +1

    This is exactly where I am in my exploration. Well presented and thorough. I subscribed and liked. Thanks

    • @robojax
      @robojax  2 года назад

      Thanks for the sub!

  • @kieranproven4874
    @kieranproven4874 Год назад

    Thank you for making this video. It's exactly what I'm looking for.

  • @ChadE1020
    @ChadE1020 9 месяцев назад +1

    thank you I spent hours tying to figure out why it was just jittering, and it was the ground from uno to power supply!

  • @Ronavargas
    @Ronavargas 4 года назад +2

    Great video! Thanks for teaching us.

    • @robojax
      @robojax  4 года назад

      My pleasure!

  • @leadsengineers1394
    @leadsengineers1394 3 года назад +1

    YOU ARE THE BEST SIR.................Specially how you cover every espect...............HUGE THANKS>>>>>

    • @robojax
      @robojax  3 года назад +1

      You are most welcome

  • @awaisqarni4823
    @awaisqarni4823 2 года назад +1

    Jazak Allah bro good information about subject by this video i drive my stepper very easily

  • @AtomDellow
    @AtomDellow 2 месяца назад +1

    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  2 месяца назад

      Glad I could help!

  • @Vhbaske
    @Vhbaske 4 года назад +1

    You are a great teacher!

    • @robojax
      @robojax  4 года назад

      Thank you! 😃

  • @giuseperangel9647
    @giuseperangel9647 Год назад +1

    Thank you for lesson teacher!

  • @jasonturner4591
    @jasonturner4591 3 года назад +2

    Thank you so much sir!! I can now work on my DIY 3D printer!

    • @robojax
      @robojax  3 года назад

      Glad I could help!

    • @charmingali34
      @charmingali34 3 года назад

      Wonderful, did you work on it or still planning? I need to ask were you be able to connect multiple stepper with Arduino

  • @perinoveriza1658
    @perinoveriza1658 3 года назад +1

    Love your channels use multi language...thanks

    • @robojax
      @robojax  3 года назад

      So nice of you. you are welcome.

  • @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 ruclips.net/video/csf_G1pi0ps/видео.html

  • @vaitheeswarank9830
    @vaitheeswarank9830 2 года назад +1

    Best explanation 👍

  • @keerthirathna7869
    @keerthirathna7869 3 года назад +1

    Nice explained. thank you 🙏

    • @robojax
      @robojax  3 года назад

      You are welcome

  • @zakoursamir3997
    @zakoursamir3997 3 года назад +2

    Thank you so much sir, , excellent explanation

    • @robojax
      @robojax  3 года назад

      You are most welcome

  • @oscarvalera410
    @oscarvalera410 2 года назад +1

    Muy buen trabajo , Very good job

  • @sewscabind5217
    @sewscabind5217 4 года назад +2

    Thank you 👍

    • @robojax
      @robojax  4 года назад

      You are welcome

  • @program2445
    @program2445 3 года назад +2

    thank you so much for detailing explaination sir (also turkish subtitlet)

  • @chayasulakhe9021
    @chayasulakhe9021 2 месяца назад

    Excellent explained.
    Keep uploading new videos... enjoyed, thanks.

  • @Bianchi77
    @Bianchi77 Год назад +1

    Creative video, thanks for sharing :)

  • @mdproForPC
    @mdproForPC 2 месяца назад +1

    one of the bes tut i have seen and will use it much much thanks

    • @robojax
      @robojax  2 месяца назад

      wow. Glad to hear that. you are welcome.

    • @mdproForPC
      @mdproForPC 2 месяца назад

      @@robojax i bouth everything but my L298N getting way to hot, 12V 10 amp power supply,

  • @instantkaffeguld
    @instantkaffeguld 4 года назад +1

    I needed this. Thank you!.
    Will watch in a few days when my project is nearing its coding phase

    • @robojax
      @robojax  4 года назад

      You are welcome.

  • @sherifamr4281
    @sherifamr4281 3 года назад

    Thanks sir for your efforts, excellent explanation

    • @robojax
      @robojax  3 года назад

      You are most welcome

  • @saurabhsoni7197
    @saurabhsoni7197 4 года назад

    You have great technique to teach

    • @robojax
      @robojax  4 года назад +1

      Thank you. I am pleased that you liked it.

  • @MatthewCarlsen
    @MatthewCarlsen 5 лет назад

    Awesome video🤙🏻

  • @hariharanc266
    @hariharanc266 3 года назад

    Great sir,
    Very nicely explained

    • @robojax
      @robojax  3 года назад

      Thanks for liking

  • @mixme8655
    @mixme8655 2 месяца назад +1

    I like your videos many important tips I learned thank you for sharing

    • @robojax
      @robojax  2 месяца назад

      You are so welcome

  • @umargul5644
    @umargul5644 4 года назад

    Thanks sir very much ,god bless u

    • @robojax
      @robojax  4 года назад

      you are welcome. Good bless you too.

  • @hanasitisalmah5562
    @hanasitisalmah5562 2 года назад

    THANK YOU

  • @charmingali34
    @charmingali34 3 года назад

    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  3 года назад +1

      I will try to make video of that. I will put on on my "to do" list. thanks

    • @charmingali34
      @charmingali34 3 года назад

      @@robojax ❤️

  • @jboy6944
    @jboy6944 Год назад

    Lovely video.

  • @RoMecha_lb
    @RoMecha_lb 4 года назад +1

    Great work

  • @nab024
    @nab024 4 года назад +1

    Hi, thanks so much for the video - it really is the best on RUclips 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  4 года назад +2

      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.

  • @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

  • @AlexFuzz90
    @AlexFuzz90 3 года назад

    Gracias maestro!

  • @zawaralikhan7870
    @zawaralikhan7870 5 лет назад

    thank you very much.

    • @robojax
      @robojax  5 лет назад

      you are welcome.

  • @ozgurgoksu8385
    @ozgurgoksu8385 4 года назад +3

    adamsın abi sen. eline sağlık ;)

    • @robojax
      @robojax  4 года назад +3

      çok teşekkür ederim. Ben Hürasanlıyım ve Türkiye insanlarını seviyorum.

    • @ozgurgoksu8385
      @ozgurgoksu8385 4 года назад

      @@robojax şaşırdım, sevindim ve memnun oldum 🙋🏻‍♂️

  • @jemyj2591
    @jemyj2591 Год назад

    Love you bro

  • @diydantex6150
    @diydantex6150 Год назад

    Thank you

  • @dumitrudamiean
    @dumitrudamiean 5 лет назад

    verry nice, regards from Romania ;)

    • @robojax
      @robojax  5 лет назад

      Thank you. Ahmad from Canada.

  • @SONUKOL1
    @SONUKOL1 4 года назад

    Very beautiful explain

  • @chaz7288
    @chaz7288 4 года назад

    Looking forward to the upcoming switch for direction and speed control

    • @robojax
      @robojax  4 года назад +1

      I have it on my list. Let's see when the timer permits to do it.

  • @principecristiano
    @principecristiano Год назад

    gracias , será útil esta información para el L293D de un solo microcontrolador ,supongo que se programa igual en arduino, un saludo

  • @jeannesisi9646
    @jeannesisi9646 2 года назад

    Thanks à lot

  • @elionorrafael8415
    @elionorrafael8415 Год назад

    Thx i get it

  • @hernangarcia1690
    @hernangarcia1690 4 месяца назад +1

    Exelente
    Gracias por compartir sus conocimientos

  • @paup8778
    @paup8778 2 года назад +1

    muy bueno, gracias

    • @robojax
      @robojax  2 года назад

      ***** Free Arduino Course worth $200****
      Arduino Step by Step Course (over 150 lectures) Starts here robojax.com/L/?id=338

  • @sabercruiser.7053
    @sabercruiser.7053 3 года назад

    THANK YOU A LOOOOOOT

    • @robojax
      @robojax  3 года назад

      you are welcome.

  • @bastelbaer_eu
    @bastelbaer_eu 2 года назад

    Thanx!

    • @robojax
      @robojax  2 года назад

      You are welcome. The best thank you for me is to subscribe to my channel. Thank you.

    • @bastelbaer_eu
      @bastelbaer_eu 2 года назад

      @@robojax Done! I Look forward to the next Video…👍🐻

  • @frankdoyal6450
    @frankdoyal6450 23 дня назад +1

    Nicely done,, wire to pulse regulator are they com from the PCU?

  • @OxTongue0
    @OxTongue0 4 года назад +1

    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 ruclips.net/video/Sl2mzXfTwCs/видео.html

  • @ramybrahim3188
    @ramybrahim3188 6 месяцев назад

    Thankyou Prof
    From Morocco

    • @robojax
      @robojax  6 месяцев назад

      you are welcome akhi.

  • @limberius1
    @limberius1 4 года назад

    gracias me ya me suscribi eres genial .

    • @robojax
      @robojax  4 года назад

      De nada. Gracias por suscribirse. gracias por no omitir los anuncios y seguir viéndolo. Esto me ayudara mucho.

  • @sunaybayraktaroglu
    @sunaybayraktaroglu 2 месяца назад +1

    Super bir anlatım olmuş. Tesekkurler. Yabancı Dil bilmesem dahi yaptım. Supeeeerrrr.

    • @robojax
      @robojax  2 месяца назад +1

      Bir şeyler öğrendiğine sevindim. Rica ederim

    • @wonderfulwolf5285
      @wonderfulwolf5285 2 месяца назад

      Sunay kodu atabilir misin

  • @pure_i_mlika
    @pure_i_mlika 3 года назад

    Man bless your soul

    • @robojax
      @robojax  3 года назад +1

      God bless your soul too. I hope you've subscribed as your subscription help my channel grow. Thanks

  • @Locomotive84
    @Locomotive84 Год назад

    Lovely video.
    Is it possible to move the rotor randomly?

  • @Mojtba-rk8pu
    @Mojtba-rk8pu 11 месяцев назад

    عالی بود ❤

    • @robojax
      @robojax  11 месяцев назад

      www.youtube.com/@ilmofan
      سلامت باشید. مجرای فارسی بنام علم و فن را راه اندازی کردم

  • @60-detik-kelinci
    @60-detik-kelinci 4 года назад

    Sir this so usefull..so many thans for me😁... Actually sir do you have video for CNC manchine... I mean how to user L298N to be a steper motor for CNC manchine with GRBL code. This gonna be cool and cheap for $ 😂

    • @robojax
      @robojax  4 года назад

      You are welcome. I will have to look at CNC as I have no experience with that.

  • @dannyneighbour5124
    @dannyneighbour5124 2 года назад +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 ruclips.net/user/RobojaxTVsearch?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

  • @SONUKOL1
    @SONUKOL1 4 года назад

    Very very nice sir

  • @joshlinehan3888
    @joshlinehan3888 Год назад +1

    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

  • @LofiLull-it5mn
    @LofiLull-it5mn Месяц назад

    amazing tricks

  • @pir869
    @pir869 3 года назад

    The L298N could be re-made using discreet parts to get far more than 4A if needed.

  • @bambangirawan6011
    @bambangirawan6011 4 года назад +6

    Thank you sir there are Indonesian subtitles 🙏

    • @robojax
      @robojax  4 года назад +7

      Wow. You are welcome. I am pleased that you used it. I spent so much time to fix and Write english subtitle and then create over 70 languages for the video. We just started working on the buttitles. Your comment is very important so I know people watch it in other languages. Thank you.

    • @haninasser3780
      @haninasser3780 3 года назад +2

      sketch uses 3262 bytes (10%) of program storage space. maximum is 32256 bytes. global variables use 230 bytes (11%) of dynamic memory, leaving 1818 bytes for local variables. maximum is 2048 bytes. an error occurred while uploading the sketch avrdude: ser_open(): can't open device "\\.\com5": the system cannot find the file specified.

  • @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 года назад +1

      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.

  • @deveshdudhaiya65
    @deveshdudhaiya65 2 года назад

    Good

  • @aaronnichols5206
    @aaronnichols5206 3 года назад

    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  3 года назад

      You are welcome. Please see this video ruclips.net/video/csf_G1pi0ps/видео.html 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.

  • @figuringitout2230
    @figuringitout2230 4 года назад

    Can you do a video on controlling stepper motors with a joystick clockwise and counter clockwise..?

    • @robojax
      @robojax  4 года назад

      I have it on my to Do list and in the future I will make video.

  • @ajisumiardi6736
    @ajisumiardi6736 3 года назад

    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  3 года назад +1

      people have overhead issue due to stop and turn OFF. I have addressed that in this latest video ruclips.net/video/csf_G1pi0ps/видео.html when you apply either brake or stop.

    • @ajisumiardi6736
      @ajisumiardi6736 3 года назад

      @@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,,

  • @grahamgideon9485
    @grahamgideon9485 9 месяцев назад

    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.

  • @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!

  • @tharakarathnayake6760
    @tharakarathnayake6760 4 года назад

    thanks
    super

    • @robojax
      @robojax  4 года назад

      you are welcome.

  • @scottwindham9824
    @scottwindham9824 3 года назад

    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  3 года назад

      You can’t do it. It has be turned and off 1000s of times by microcontroller

  • @prakashsharma6186
    @prakashsharma6186 3 года назад

    Sir , thanks for the super vidio. I have subscribed your channel. Kindly let us know how can I master in programming for stepper with Arduino.

    • @robojax
      @robojax  3 года назад

      Thank you. there are tones of articles to know how stepper motor works. but for Arduino, if you know how a motor works, then you can write code. watch this video ruclips.net/video/csf_G1pi0ps/видео.html and search my channel I have so many videos on different motor where you can learn. good luck.

  • @Saxonpod
    @Saxonpod 4 года назад +1

    Ive followed your instructions & all is working well. My L298N & stepper motor are getting extremely hot am I doing something wrong?

    • @robojax
      @robojax  4 года назад +1

      Your motor must be powerful. either use another motor with lower power or some how increase the size of heat sink.

  • @Trains4Ages
    @Trains4Ages 2 года назад

    Hi thanks for this excellent series of tutorials, i have an issue however and hoping you can advise please. i have connected my arduino. my L298N (same as yours in example), and motor (i have identified the two coils with a meter) and it is a 1.8' degree step which is 200 steps for ful lrotation and a 12vdc 2amp supply. i have uploaded the example sketch from the arduino ide and the motor, the one that steps the motor clockwise then anticlockwise but my motor initially doesnt complete a fill 360 before reversing and then starts jumping and jittering before stalling, the L298N module heatsink is also becoming very hot. can you suggest anything that may be causing it to do this and what i can do to correct it please?
    (ps i have also tried other code and it doesn't work as expected from there either.
    cheers.

  • @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 ruclips.net/video/csf_G1pi0ps/видео.html this might help

  • @zrtapoz8316
    @zrtapoz8316 4 года назад

    thank you for this video. I have a question what kind of power supply did you choose?

    • @robojax
      @robojax  4 года назад +1

      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

  • @michaelwdunedinnewzealand2993
    @michaelwdunedinnewzealand2993 2 года назад

    very video, I dont recall you showing the reverse motor knob function. can you show that please.

    • @robojax
      @robojax  2 года назад

      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 2 года назад

      @@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

  • @charmingali34
    @charmingali34 3 года назад +2

    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 3 года назад

      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  3 года назад +1

      You are welcome. I am glad you found it useful and resolved the issue. Peace. Stay safe.

    • @user-os1wp7hz1v
      @user-os1wp7hz1v 2 года назад

      @@charmingali34 what rating of power supply you are used? I am also get same problem like u..

  • @danielemongelli487
    @danielemongelli487 3 года назад

    good evening, congratulations for the video and for your site.
    it is really very informative and above all explained everything with a lot of simplicity and passion.
    I'm here asking for help regarding this video where I can't figure out how much current the 12V power supply needs to run this motor:
    My stepper is with these Technical data
    Static torque: 4.8 Kg / cm (47 N / cm)
    Shaft: 5 mm.
    Nominal voltage: 3.1 Volt.
    Step angle: 1.8 °
    Rated current: 2.5A
    Number of Wires: 4 colored conductors.
    Wire length: 49 cm.
    Weight: 340 grams.
    I am trying to replicate his project but I did not understand this detail concerning the necessary current.
    I also wanted to ask if in your opinion the L298N driver would support two motors in series on the same terminals.
    Thanks so much
    ps: I have been a subscriber to the channel for a very short time and with pleasure I really noticed the passion you have in these videos which is why I also activated all notifications;)
    congratulations

    • @robojax
      @robojax  3 года назад +1

      Hello, Thank you. for subscribing. I can see in your specs "Rated current: 2.5A" and I remember I mentioned the current that this module can handle. I don't remember what I said in the video which was 2 or or 2.5A and that is for only 1 motor. Motor can't be connected in series. specially stepper. Each needs separate control and separate power.

  • @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 года назад +1

      Here is my video on current sensing for the same chip used in Arduino Motor Shield ruclips.net/video/-uQKBDTWHPM/видео.html

  • @adamwishney3945
    @adamwishney3945 4 года назад +1

    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.

  • @MakerDan55
    @MakerDan55 Год назад

    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  Год назад +1

      No current limit with this chip.

    • @MakerDan55
      @MakerDan55 Год назад

      @@robojax thanks. How do you limit the current to the stepper then?

    • @zergling7696
      @zergling7696 Год назад

      ​@@MakerDan55 L298n have Max 2a output

  • @omniyambot9876
    @omniyambot9876 3 года назад +1

    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

  • @matthewcolburn9930
    @matthewcolburn9930 4 года назад

    Great video!!! Thank you for making it. Is it correct that the Arduino (I'm using a nano) can be used to turn on and off the power to the stepper motor using this as well as control the motor?

    • @robojax
      @robojax  4 года назад

      you are welcome. The act of controlling the motor includes turning it OFF. So it is up to you at what stage you want to stop the motor. Here is another video where you can turn it ON or OFF using push button ruclips.net/video/csf_G1pi0ps/видео.html

    • @matthewcolburn9930
      @matthewcolburn9930 4 года назад

      @@robojax Thank you Robojax for your quick reply. I want to set the Arduino Nano to use a sensor that when it receives a high signal it will turn on the motor and run a it and then turn it off after it completes its steps. This means I need a switch that can turn the power on and off to the motor by the Arduino as a step in the program. It will be used without a person being there to activate it. Would a L298 be able to do this or would I need another transistor that the Arduino Nano could signal to cut the power on or off the the stepper motor. I do not want the motor always being powered. It should only turn on when the correct parameters are met in the coding. I have never set a transistor as a switch to cut the power or give the power to a motor based on the Arduino S pin. Would the L298 work for this; or would you have a better guidance in what to use? I'm so new to this that I'm really unaware of what to use. Any advice is very welcome. Thank you again :-)

    • @robojax
      @robojax  4 года назад

      Stepper motor do not need to turn OFF from power. if you send 0, 0, 0, 0 to 4 wires, it is OFF. So do that. when you send speed of 0 (zero) it sends 0,0,0,0 to the motor.

    • @weiweiweiwei1109
      @weiweiweiwei1109 4 года назад

      @@robojax Thank you :-)

  • @octavianbanu5094
    @octavianbanu5094 3 года назад

    Hello, Robojax! Great video, but I have a question: I replicated only the last part, speed ctrl with a pot (10k), with exactly the same configuration & sketch and I faced an issue - my lab power supply says the "device" is consuming 3A (@12v), which I believe is way too much, therefore my motor (Nema17 KS42STH48-1684A) stops after a very short while. How do you limit the current (as A4988)? or should I use a different power supply 12 v with max 1.7A?
    thank you!
    Octav

    • @robojax
      @robojax  3 года назад

      I will make separate video for that chip. Check the link I description or search for another video on this module where I have explained stop and hold of motor which affects the energy consumption

  • @user-nu2db7uq3t
    @user-nu2db7uq3t 2 месяца назад

    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  2 месяца назад

      Ғpluses the links in description or search my channel. Thanks for subscribing

    • @user-nu2db7uq3t
      @user-nu2db7uq3t 2 месяца назад

      @@robojax Thank you very much.. will check that

  • @rinku2004ful
    @rinku2004ful 4 года назад

    Plz make a video of stepper motor using node mcu 8266 n l298 driver

    • @robojax
      @robojax  4 года назад

      I have it on my list. When time permits, I will make it.