Stepper Motors and Arduino - The Ultimate Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ย. 2024

ความคิดเห็น • 322

  • @HowToMechatronics
    @HowToMechatronics  2 ปีที่แล้ว +37

    I hope you enjoyed this video and learned something new! If you'd like to support me making more content like this, please consider supporting me on Patreon: www.patreon.com/howtomechatronics

    • @vidhanherpalani705
      @vidhanherpalani705 2 ปีที่แล้ว +2

      can you pls make Arduino coding tutorials from basics to advance

    • @k33501
      @k33501 ปีที่แล้ว +2

      Have you made a video regarding the bigger stepper motors and drivers?

    • @greendsnow
      @greendsnow ปีที่แล้ว +1

      Hi! Where's your dedicated tutorial for nema 23 and 34 drivers?

    • @weltro
      @weltro 8 หลายเดือนก่อน

      can we use stepper motors with rc controller?

  • @tomasblazek8531
    @tomasblazek8531 2 ปีที่แล้ว +28

    Thank you for this video. I am also looking forward to the next video on the larger stepper motors. One thing I would like to praise the most is the fact that you have tried to explain controling of stepper without libraries. In my opinion it is very important to know how things works before inplementing them. Please keep up working, you are helping many curios minds to create new inventions a creations.
    Best regards one young Enginner

  • @vinxmod793
    @vinxmod793 10 หลายเดือนก่อน +2

    Well Done. I feel many people would enjoy seeing your suggestion of a Video Tutorial for Larger Stepper motors like the NEMA 23 and NEMA 34 as you mentioned. Thank You for taking the time to make these videos.

  • @vomitedthoughts
    @vomitedthoughts 2 ปีที่แล้ว +2

    How did you get the TMC2208 to work in that shield?, I could never find any info on how or what I could have been doing wrong

  • @greendsnow
    @greendsnow ปีที่แล้ว +1

    I wish I watched this video for the first thing I started my robot arm project. This is so detailed and comprehensive...

  • @shanijagatiya9675
    @shanijagatiya9675 6 หลายเดือนก่อน +3

    Best video to understand about stepper motors, sir. I love your work 😘👌🫂🫂

  • @JanTec3D
    @JanTec3D 10 หลายเดือนก่อน +1

    Thank you so much for these videos. I‘m a mechatronics engineering student and while we mostly do theoretical electrical and mechanical engineering at university, your videos help me a lot for my personal projects! Currently working on a DIY tensile test using two stepper motors and a load cell.

    • @HowToMechatronics
      @HowToMechatronics  10 หลายเดือนก่อน +2

      So glad to hear it, thanks!
      I wish you good luck! 😀

  • @ChibuzobasildonOnyenagada
    @ChibuzobasildonOnyenagada 27 วันที่ผ่านมา

    Thanks you so much for this video, please I'm a beginner I studied computer engineering & am so much in love with Mechatronics. Honestly I have no basic foundation in this field,help me to start from scratch with books to read & practicals to do with diagrams etc, thanks so much. I'll appreciate.

  • @RandomMakingEncounters
    @RandomMakingEncounters ปีที่แล้ว +20

    Exactly what I was looking for! I’m working on a camera slider and was relying on some existing code that wasn’t really meeting my needs. This information gives me the foundational information to build a bit more from the ground up!

    • @HowToMechatronics
      @HowToMechatronics  ปีที่แล้ว +4

      Glad to hear it! Have fun building that camera slider. Check my DIY camera slider video , it's a bit older project but still it could be helpful. Cheers!

  • @Yosemite_Sam
    @Yosemite_Sam 2 ปีที่แล้ว +4

    Further feedback/comment. The 3 axis stepper Antenna Tuning Unit is now turning all 3 devices backwards and forwards using adaptations of your excellent sketches. Learning by doing (and correcting my mistakes whilst learning) and using your tutorials has worked for me. Still a long way to go. Again thank you. Cheers from OZ.

    • @johnkidd1694
      @johnkidd1694 10 หลายเดือนก่อน

      Do I take your comment to mean that you built a 3 axis antenna tracker, say, for satellite tracking? I would love to know how you did it. That is a dream project of mine.

  • @PhG1961
    @PhG1961 2 ปีที่แล้ว +59

    Excellent video and very well explained/documented.

  • @mrmakinist
    @mrmakinist 2 ปีที่แล้ว

    By the way, you are my yuotuber that I liked and appreciated the most.

  • @TheSquire101
    @TheSquire101 9 หลายเดือนก่อน

    Oh my God thank you very much. I've been wondering why my setup wasn't working with my TMC 2209 until I saw your wire from EN to ground. Thank you.😊

    • @vikramsaini5605
      @vikramsaini5605 3 หลายเดือนก่อน

      Bro did it worked using tmc 2209

  • @Yosemite_Sam
    @Yosemite_Sam 2 ปีที่แล้ว +6

    Very professional tutorial with narration correctly pitched to people learning at basic level. I learnt a lot. I am making a 3 stepper impedance matching unit for antennas. 3 x Nemer 23 TB6600 for current and Arduino Uno. Your advice on Arduino library is very useful. Cheers from OZ.

    • @HowToMechatronics
      @HowToMechatronics  2 ปีที่แล้ว +2

      Glad it was helpful!

    • @k33501
      @k33501 ปีที่แล้ว +1

      Hi Dean, does your motors run loud? I added a laser setup to my machine with the ardruino, cause my controller don't support a laser.

    • @Yosemite_Sam
      @Yosemite_Sam ปีที่แล้ว +1

      @@k33501 Happy 2023. Your steppers may make a noise during operation if the settings are not the optimal combination. So the current setting and the Pulse/rev settings can conflict with the sketch itself. I had to experiment a lot.

    • @k33501
      @k33501 ปีที่แล้ว +1

      @@Yosemite_Sam Thank you Dean, I'll play around with the settings. All of the best for 2023 :)

  • @navid9852
    @navid9852 2 ปีที่แล้ว +2

    Best tutorial on stepper motor drivers ever! Very comprehensive.

  • @momentsbruh5088
    @momentsbruh5088 9 หลายเดือนก่อน +1

    Thank you very much, i’m doing a project with 2 stepper motors and your video help alot. Looking for your new video 🎉

  • @joaocamiloulhoa4878
    @joaocamiloulhoa4878 2 ปีที่แล้ว

    The best Channel of YT.

  • @davidhryhoryev696
    @davidhryhoryev696 ปีที่แล้ว +2

    Thank you so much for this video, and for your high precision while describing the video 😄 it helped me really a lot

  • @OrganizationalEngineering
    @OrganizationalEngineering ปีที่แล้ว +3

    Thank you so much! I'm brand new to all of this and trying to build a motorized/automated monitor stand for my sim rig. This video was super clear and easy to follow and I feel like I can go make it happen now, although I still have to figure out the WiFi connection piece. I'll be searching your channel for info on that.

  • @Mohamed_Ali-24M
    @Mohamed_Ali-24M 2 ปีที่แล้ว +1

    The best channel in the world, please can you Explain how to make a Led Cube

  • @allanminers1662
    @allanminers1662 2 ปีที่แล้ว +1

    Congratulations.This is an excellent presentation.Close to the best I have seen. Thank you for sharing your knowledge

  • @adamoulegion1382
    @adamoulegion1382 4 หลายเดือนก่อน

    Thank you for the video. This has helped me a lot in understanding stepper motors and how they work.

  • @Astro-Bob
    @Astro-Bob ปีที่แล้ว

    i didn't have a clue what to do! but now i do thank u so much, its a very clear what to do now u make it look easy. ur channel us well worth subscribing to👍

  • @veerasaijoshikunnam245
    @veerasaijoshikunnam245 ปีที่แล้ว +16

    Hey, I was wondering why you were not using a capacitor in the actual circuit but included it in the circuit diagram?

    • @UKsystems
      @UKsystems 8 หลายเดือนก่อน +1

      It was probably best practice

  • @aaron6516
    @aaron6516 2 ปีที่แล้ว

    Where have you been my whole life!!! Man super sweet tutorial!!!

  • @GALENGODIS
    @GALENGODIS 6 หลายเดือนก่อน

    Thanks, I wish you covered more about how to optimize the stepper motors for speed and not accuracy.

  • @mmsanathara
    @mmsanathara ปีที่แล้ว

    Dear Sir,
    Fantastic explaination in simpleasic electronic language.

    • @mmsanathara
      @mmsanathara ปีที่แล้ว

      Do you have any video for run stepper for one degree and stop. When next pulse given stepper shaft move to one degree in clock ir anticlockwise move.

  • @customdevelopment136
    @customdevelopment136 2 ปีที่แล้ว

    Question: Once power is removed from the stepper motor, does the motor lock in place? In battery operated conditions, there is no extra power available to lock the motor. How do you suggest to lock the motor without consuming energy? And is there an easy way to add a gearbox or a worm drive to the popular stepper motor to increase the torque and provide a natural lock function?
    Thank you for your videos which are very informative and helpful. It is very important to describe how a device works before explaining how to use it. I am happy to see that you use this methodology, unlike most other TH-cam instructors. I notice that in this lesson you also explain which library function block and which don't. I can't stress enough how important this is. If the function is non-blocking can you also explain if it is timer interrupt driven, feedback interrupt driven, or in the case of the .run() function, it just blocks for microseconds - i.e. a micro-block. A micro-block will cause the stepper motor to be influenced by the flow of control in the software. On the other hand, interrupt driven will allow the stepper motor to behave naturally no matter how the software behaves.

    • @_VeljkoMiletic_
      @_VeljkoMiletic_ 2 ปีที่แล้ว

      Answer to first question: No...

    • @tythompson7170
      @tythompson7170 ปีที่แล้ว

      I know this was posted 5 months ago, but figured I’d give some extra help on your first question.
      If you need a way to self lock without power, do some research on the formulas for power screws. They can be self locking given a small enough lead (thread pitch) or a high enough friction coefficient. The calculations are relatively simple when given what each part of the formula represents.
      Good luck with your projects.

  • @RenatoMariscal
    @RenatoMariscal 5 หลายเดือนก่อน

    Thanks, I am a beginner and I couldn't find the wiring for 2208 before this.
    I have been trying to put the 12 volt on VIO 😅

  • @alvarobyrne
    @alvarobyrne 2 ปีที่แล้ว

    the (unexplainably at-least-in-youtube-missing) stepper motor guide, ha ha: thanks a lot, master

  • @Vintage_USA_Tech
    @Vintage_USA_Tech 2 ปีที่แล้ว

    The best DAMN Stepper motor video I have ever seen.

  • @narayan9188
    @narayan9188 ปีที่แล้ว

    hats off to the efforts putted in video, explaining every detail while making it quite engaging.

  • @joseosorio277
    @joseosorio277 11 หลายเดือนก่อน

    Of course I enjoyed the video very much! Thank you for this excellent class!

  • @tafsirahmedkhan8080
    @tafsirahmedkhan8080 2 ปีที่แล้ว

    Greatest video on Stepper Motor! Waited for this for so long.

  • @OMNI_INFINITY
    @OMNI_INFINITY ปีที่แล้ว

    I kinda like the sound generated by a stepper driven by an A498. Sounds mechatronic.

  • @harparduino5111
    @harparduino5111 หลายเดือนก่อน

    Excellent tutorial ! Thank you.

  • @TheAngryMaskSalesman64
    @TheAngryMaskSalesman64 5 หลายเดือนก่อน

    holy cow, thank you so much for this video. So much information presented so clearly :D

  • @buddhimaamarasinghe9997
    @buddhimaamarasinghe9997 2 ปีที่แล้ว +1

    Excellent video Thanks for sharing your knowledge. What is the maximum RPM nema 17 stepper motor. Thanks

  • @andreayalagonzalez4366
    @andreayalagonzalez4366 ปีที่แล้ว +2

    Thanks for explaining everything carefully and saying every detail, great video, you really do the homework!!!

  • @paul.alarner6410
    @paul.alarner6410 หลายเดือนก่อน

    altium designer is free from the pirate bay!

  • @robertwebb9657
    @robertwebb9657 2 ปีที่แล้ว

    thanks for a comprehensive explanation.

  • @khaledbaraja8450
    @khaledbaraja8450 2 ปีที่แล้ว +2

    My fav channel

  • @stefanv.d.b818
    @stefanv.d.b818 10 หลายเดือนก่อน

    Great Video ! What power supply should i use for the Motor?

  • @jonathanlanders9406
    @jonathanlanders9406 7 หลายเดือนก่อน

    Looking forward to larger stepper motor tutorial.

  • @davidgraham6140
    @davidgraham6140 2 ปีที่แล้ว

    Thanks soooo much I really needed this video for my final year project

  • @andreknuttson88
    @andreknuttson88 2 ปีที่แล้ว +4

    Exelent video! i feel unsure about the decoupeling capacitor tho, what voltage should i use?

  • @wardhum6611
    @wardhum6611 ปีที่แล้ว

    Really well done video. Truly enjoyed every second of it... Thank you so much for this incredible video.

  • @a154james
    @a154james 2 ปีที่แล้ว +1

    This video is an awesome recap on arduino stepper motor use!
    Theoretically, if you were to over drive a stepper motor with the driver, what would happen?
    Would you just burn out the stepper driver or would you also take out the arduino as well?

  • @juanjosesilva4315
    @juanjosesilva4315 ปีที่แล้ว

    Wow ! I never saw a video with nema motors like that

  • @MrTheNark
    @MrTheNark 2 หลายเดือนก่อน

    Great explanation of the differences between stepper motors!
    One question: I need a driver that makes the current towards the stepper motor 0 during standstill (to limit power and heat in the motor). Holding torque during standstill is not important as the stepper motor is connected to a worm gear.
    Is any of the drivers capable of zero current during standstill?

  • @johnkidd1694
    @johnkidd1694 10 หลายเดือนก่อน

    Excellent teaching. Thanks.

  • @williambruneau8667
    @williambruneau8667 9 หลายเดือนก่อน

    Super detailed video, thanks a lot!

  • @FineEvent
    @FineEvent ปีที่แล้ว

    Much appreciated, thank you for the clear explanation

  • @Handay_78
    @Handay_78 2 ปีที่แล้ว

    Excellent explanation... easy to understand..

  • @hsnorh8180
    @hsnorh8180 2 ปีที่แล้ว +3

    Instant like...👍 Great explanation...🙏

  • @danielevans465
    @danielevans465 ปีที่แล้ว

    Love this video, did an amazing job explanin how to use it.

  • @thomasmcann9474
    @thomasmcann9474 2 ปีที่แล้ว

    Awesome video!,looking forward to the larger NEMA motors controlled by Arduino video

  • @jasonho1379
    @jasonho1379 2 ปีที่แล้ว +1

    For the DRV8825 Drivers, your wiring diagram seems to be incorrect. the RST and SLP pins need to be connected to 5V otherwise the drivers don't turn on.

  • @franhdez4711
    @franhdez4711 2 ปีที่แล้ว

    Excellent instruction. So much knowledge shared here. All my gratitude.

  • @rameshtripathy5978
    @rameshtripathy5978 2 ปีที่แล้ว

    Nice description & helpful too !

  • @superman1755
    @superman1755 2 ปีที่แล้ว +3

    What power supply are you using? Would a 12V 2A wall outlet supply work well? I'm having trouble online finding resources for this. Intending to use 1-4 stepper motors (2.4ohm, 1.5A) for CNC related projects

  • @shafayethossain5217
    @shafayethossain5217 2 ปีที่แล้ว

    Thank you so much for sharing the code with the explanation. That's really helpful.

  • @liondorfarms
    @liondorfarms 2 ปีที่แล้ว

    Thank you SO much for this tutorial. It is absolutely just what I needed! Do you have a forum or community that I can ask questions in?

  • @ErickAlex1
    @ErickAlex1 7 หลายเดือนก่อน

    Excellent video sir

  • @wonderland9052
    @wonderland9052 8 หลายเดือนก่อน +1

    well it would've been nice to know about this video before I spent so much time figuring everything out myself 😅

  • @gabucarneiro
    @gabucarneiro ปีที่แล้ว

    What a GREAT explanation!! You're great! Are you planning on making a drone?! I'd love to see your explanation about it all!!

    • @HowToMechatronics
      @HowToMechatronics  ปีที่แล้ว +1

      Thank you! To be honest at this moment I don't have a plan of making a drone anytime soon.

    • @gabucarneiro
      @gabucarneiro ปีที่แล้ว

      @@HowToMechatronics I get it. I'll keep watching your videos anyway. Thank you for all your efforts!

  • @voodoobaz
    @voodoobaz 15 วันที่ผ่านมา

    Super cool, thank you

  • @LuisPa247
    @LuisPa247 ปีที่แล้ว

    Gold tutorial, Thanks for the information.

    • @HowToMechatronics
      @HowToMechatronics  ปีที่แล้ว

      Glad it was helpful!

    • @herediiaa.e
      @herediiaa.e 8 หลายเดือนก่อน

      @@HowToMechatronicspls answer my question, I would like to know what driver is going to make my motor go faster???

  • @arduinomaquinas
    @arduinomaquinas ปีที่แล้ว +1

    Great 🇧🇷😉👏👏👏👏 thank you bro !

  • @Emalak1bas
    @Emalak1bas 8 หลายเดือนก่อน

    Thanks for your very informative video ❤

  • @ProDesigneHd
    @ProDesigneHd 2 ปีที่แล้ว +1

    what about controlling an stepper motor driver using SPI. Drivers such as TMC5160 usually can only be controlled by SPI and don't have a potentiometer. A video on that subject would be greatly appreciated!

  • @letsengineering5696
    @letsengineering5696 2 ปีที่แล้ว

    Very well explained.
    Nice Video

  • @JohnnyChugh
    @JohnnyChugh 2 ปีที่แล้ว

    Excellent video, thank you very much.

  • @harikamalakarreddydarapu7410
    @harikamalakarreddydarapu7410 2 ปีที่แล้ว

    Excellent tutorial and very well explained

  • @avinashevilmonsterkane995
    @avinashevilmonsterkane995 ปีที่แล้ว

    very detailed explanation...
    Super

  • @christianbureau6732
    @christianbureau6732 4 หลายเดือนก่อน

    Great video, I learn a lot's. Do you think you can have 2 rheostat (one for speed and the other for travel distance) and make it a forward-backward motion?

  • @Dmsxj
    @Dmsxj 2 ปีที่แล้ว

    Stepper motors are a very interesting and fun

  • @Zestybwoi
    @Zestybwoi 2 ปีที่แล้ว

    Brilliant video!

  • @tjpprojects7192
    @tjpprojects7192 2 ปีที่แล้ว

    1:41 Is this the start of an amazing meme? I'd watch a 1 minute loop of the ribbon going back and forth like a snake.

  • @ramanarao32
    @ramanarao32 2 ปีที่แล้ว

    what a nice video brother!!

  • @amazac9869
    @amazac9869 2 ปีที่แล้ว

    outstanding efforts well prepared video as an opensource tutorial ,thank you so much.👍

    • @HowToMechatronics
      @HowToMechatronics  2 ปีที่แล้ว +1

      Glad it was helpful!

    • @amazac9869
      @amazac9869 2 ปีที่แล้ว

      @@HowToMechatronics It was ,keep the good work ,cheers.

  • @jamesssydney
    @jamesssydney 6 หลายเดือนก่อน

    Amazing Tutorial, just wondering if you're controlled more then 4 steppers at once? is it possible to control 8 or 12 etc and how would this be done?

  • @teocerda5367
    @teocerda5367 ปีที่แล้ว

    Thank you for so excelent video, can I use Nema 34 12nm and keep the torque?

  • @BK-wb9bg
    @BK-wb9bg ปีที่แล้ว

    Fantastic video!!!!

  • @RogerGarrett
    @RogerGarrett 4 หลายเดือนก่อน +1

    Can the MS1 and MS2 pins be controlled via software or only my connection to GND and 5V? I was working with TMC 2209 and was TOLD that such control was available on it,but later came to understand that on the TMC 2209 the MS1 and MS2 pins are used for setting up come parameter for UART control of the selection of Step type, e.g. WHole Steps, quarter steps, sixteenth steps etc. I really need to be able to control that via software.

    • @ammglitch03
      @ammglitch03 3 หลายเดือนก่อน

      Just an idea, but what if you just do the largest micro stepping option
      And then in your code, account for the different micro steps changes. For example just half or double your incrementations for your desired likings at the right times

  • @ziggi8847
    @ziggi8847 ปีที่แล้ว +1

    Just a small thing, but i believe you should have x

    • @harrypalmer658
      @harrypalmer658 ปีที่แล้ว

      I don't think so. If you are starting at zero! x

  • @Origamity
    @Origamity 3 หลายเดือนก่อน

    Amazing !! thx bro !

  • @llll3816
    @llll3816 ปีที่แล้ว

    Amazing video. Thank you!

  • @sanjaybatra6593
    @sanjaybatra6593 ปีที่แล้ว

    excellent explanation. wow

  • @SantaDragon
    @SantaDragon 8 หลายเดือนก่อน

    Thanks firstly for this summary.
    9:27 The order really doesnt matter? 5:14 I think it makes a difference by depoling 2A with 2B when the signal of the H-bridge goes the wrong way. As whe one coil pushes clockwise, and the second coil may then push counter-clockwise what makes the motor just buzzing instead moving, right?
    22:11 Does the 3. motor not make 4 rotations as 3.200 / 800 = 4?

  • @catalinmarcelionescu8902
    @catalinmarcelionescu8902 2 ปีที่แล้ว

    Thanks for all the info provided in this video. When should we expect the tutorial for the NEMA23?
    Thanks.

  • @Jonzaum
    @Jonzaum ปีที่แล้ว

    Really nice video bro, if i try with the tb6600 driver, what will change?

  • @TomTalley
    @TomTalley ปีที่แล้ว

    Thanks very much. Very helpful...

  • @alexchiosso221
    @alexchiosso221 2 ปีที่แล้ว

    Outstanding video on this topic. Thank you. :-)

  • @DvuongDo
    @DvuongDo 2 ปีที่แล้ว

    Good video!

  • @rdyer8764
    @rdyer8764 2 ปีที่แล้ว

    Great job, as usual!!

  • @raymonddharmadipraja3630
    @raymonddharmadipraja3630 ปีที่แล้ว

    Very detailed explanation😊😊 thank you. But I have a question, If I want to run my rotary machine using stepper motor, where the stepper motor actions (on and off) are driven by photoelectric sensors just to make stop once the sensors are turned on, do I have to use driver? Or Can I just use transformer and capacitor only since it only run on single direction?
    Note: I only need the motor to stop exactly when the sensor are on
    Thank you

  • @nicolas.keil007
    @nicolas.keil007 หลายเดือนก่อน

    What cabel and capacitor should I use?

  • @AA-nh7pv
    @AA-nh7pv หลายเดือนก่อน

    Thank you for the super helpful video! I want to have a NEMA 17 stepper complete a full turn (200 steps) in under 200ms (so 1000 steps/s or faster, better if faster). Is this possible with these drivers? My stepper has a current rating of 1.5A, and I am using a DRV8825... What voltage should I apply to the motor to ensure this? The torque should not be very high, but I need high acceleration!

  • @FelixSamulevich
    @FelixSamulevich 3 หลายเดือนก่อน

    It is very interesting But it is not suitable with NEMA 32 it can be very popular if to be explained in your style