Arduino Basics Intro to Stepper Motors

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 เม.ย. 2017
  • Arduino Basics: Intro to Stepper Motors
    In this video we take a look at very low-priced, but still very popular stepper motor, the 28BYJ-48. This 5V stepper is very useful in low-torque and medium torque applications where precise positioning is required.
    We are using the ULN2003 driver IC to control the board along with the "Cheap Stepper" library. You can download Cheap Stepper here:github.com/tyhenry/CheapStepper.
    Also, if you missed the Power Supply Review video eariler, here's a link: • Power Supply Review & ... . We are giving one of these away on Memorial Day 2017. The details to enter are in the video.
    ~-~~-~~~-~~-~
    Please watch: "Diodes: The basic building block of all digital circuits"
    • Diodes: The basic buil...
    ~-~~-~~~-~~-~
  • บันเทิง

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

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

    This was super helpful! Thanks for posting!

  • @syremusic_
    @syremusic_ 4 ปีที่แล้ว

    Excellent video, very thorough. Thank you!

  • @verylongchannelhandle
    @verylongchannelhandle 6 ปีที่แล้ว

    Really good tutorial btw loved it. Works with my little stepper.

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

    Always something new to learn, thanks for making these videos

    • @learnelectronics
      @learnelectronics  7 ปีที่แล้ว

      As long as you keep watching them, I'll keep making them!

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

    Thank you for introducing me to CheapStepper library! For whatever reason the built-in stepper library does not work with that stepper board and motor, but CheapStepper works perfectly! Thank you!

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

    It's a really helpful video. Thank you a lot! Can I ask something? Is it possible to supply the arduino and the motor driver from the same power supply? Is that going to be a problem if I hook them up like that?

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

    Thank you for the video

  • @jasonkinney8129
    @jasonkinney8129 7 ปีที่แล้ว +7

    That whistling booger, though!

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

    It would be nice to see something about controlling the speed of the stepper motors. In particular, was that the fastest these cheap little steppers can rotate?

  • @acestudioscouk-Ace-G0ACE
    @acestudioscouk-Ace-G0ACE 3 ปีที่แล้ว

    So that's how they work! Thanks.

  • @scottmorgan5370
    @scottmorgan5370 3 ปีที่แล้ว

    Question: Once you determine the coil conductivity matching them up, does the polarity matter for the two of wires in each pair? (Bipolar motor).

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

    an FYI for the cheap 5v stepper motors, the one i bought refused to turn counterclockwise and it took some digging to find out that on mine IN2 and IN3 needed to be reversed. Seems like it was a pretty common problem once I found the solution. Mine was a 28YBJ-48 with the same control board and also came with that great chineseium smell... yum...

    • @learnelectronics
      @learnelectronics  7 ปีที่แล้ว

      I haven't had any issues, but if I do I'll give your solution a try.

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

    What type of power do you have hooked up to the driver board? Often times I've seen the power supplied by the micro controller. I'm new to this, so I'm just trying to ensure I don't fry any parts. Thanks for the tutorial!

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

      Franny Levitin it's 5V from my bench power supply. You really don't want to power a heavy load like a motor from the Arduino. Each Arduino pin is rated at 40mA max.

  • @wessamo.1338
    @wessamo.1338 4 ปีที่แล้ว

    thank you so much!

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

    hello! thanks for the awesome video, but i have an question. if you connect two motors then they will take turns moving. is there a way to let them move at the same time?

  • @ddascott
    @ddascott 6 ปีที่แล้ว

    Thanks for your tutorials. I have a project and I know the code and setup must be very basic but here it is. I want to create and adjustable time the stepper more turns in a certain direction when a button is pressed. The project is the rig it to a wood working machine in order to create dovetails. Please could you assist me with code and setup for this. Many thanks in advance

  • @HornbyCrazy
    @HornbyCrazy 6 ปีที่แล้ว

    I'm using the cheap stepper library but when my motor is not in use it gets very hot. What do I do to keep the motor from getting hot? How would i disarm the motor without turning it off manually

  • @verylongchannelhandle
    @verylongchannelhandle 6 ปีที่แล้ว

    I wired the motor driver from another arduino powered with an apple ipad charger 12W. Is that harmful or something because its working and there is hardly any heat coming from the arduino

  • @gallupcustomknives2293
    @gallupcustomknives2293 4 ปีที่แล้ว

    I tried to follow exactly but I am getting an error, when trying to upload, it gets to the line void CheapStepper::off() and says no function declared, at which point it fails to upload. I tried editing and even deleting that block of code altogether, at which point I then get the message 'error compiling for board arduino/genuino uno' Does it only work with the nano board?

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

    Well it's called OOP Programming and custom pins can be set by calling constructor of the objects.

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

    Have you looked into using a different screen recorder? I use OBS for my videos and it works great, good quality and no watermark like the bandicam one. It takes a bit of fiddling to get it all set up properly but once you do I find it really is nice.

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

      I played with OBS once. It was a nightmare. As soon as some Adsense money rolls in I'll register Bandicam.

  • @scottbarrettncil
    @scottbarrettncil 4 ปีที่แล้ว

    How do I integrate a bill acceptor to this tutorial and have the motor function clockwise one turn 360 degrees when money gets inserted?

  • @icangmfy6205
    @icangmfy6205 6 ปีที่แล้ว

    Okay thanks, how to code if stepper motor will stop when press micro switch?

  • @Majidmohamod
    @Majidmohamod 4 ปีที่แล้ว

    How to connect three stepper motors to control them in the same rotation speed and direction and in the same time, by using mini pro arduino?

  • @nektarioskoumantakis4987
    @nektarioskoumantakis4987 4 ปีที่แล้ว

    Does it have enough torque to put in a small venduino machine that holds 5 small chocolates? I need it to make a ONE full turn.

  • @musaaftabi6269
    @musaaftabi6269 3 ปีที่แล้ว

    hello. I made a project with arduino and RF433 module and I hooked up a stepper motor to it and it works fine. but i need some help with the sketch.
    how can i define 1 button of remote control to turn the motor shaft CW and CCW ?
    i mean when i pressed the button the motor turned 45 degree CW and when I hit the button again its turn in upposit direction.
    is that possible to answer me

  •  7 ปีที่แล้ว +3

    nice!

  • @dinlapid7777
    @dinlapid7777 3 ปีที่แล้ว

    Hey man i know its been a while 😅 But your video really helped me out, can you explain more about the power supply to the engine, and if its ok to connect to 5V Pin in arduino uno and the (-) cable to GND in arduino

    • @ducksonplays4190
      @ducksonplays4190 3 ปีที่แล้ว

      i dont think you should last i remember they have a limited power output around 40 mA

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

    hello is it possible to make something like: one step delay one step delay ... in order to have a realy low rpm ? because I want to make a real time spining earth globe :)

    • @jeffsullinger9565
      @jeffsullinger9565 5 ปีที่แล้ว

      Yes you could. After he told it to go clockwise he told it to do the total amount of steps for one revolution but you could tell it to do one step then delay roughly 21 seconds before doing another step

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

    Wow, that is a really slow motor. I assume this is the fastest it can go since I don't see any delays in your code slowing it down between steps. Just the 1 second delay between rotations.

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

      FYI, I just learned that this "motor" is actually an assembly that included a 64/1 gear reduction. So the motor is actually spinning 64 times faster than what we see the output spinning in this video. The motor has a resolution of 32 steps per rotation while the assembly has a resolution of 2048 steps per revolution.

  • @pileofstuff
    @pileofstuff 7 ปีที่แล้ว

    Is there a common ground between the Arduino and the motor board that I'm not seeing?

    • @learnelectronics
      @learnelectronics  7 ปีที่แล้ว

      No there isn't. Here's why it works though: The ULN2003 consists of 7 Darlington pairs. So I don't think they are sinking any any current. I believe they are simply sensing current and reacting accordingly.

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

    not bad . thanks

  • @xushenxin
    @xushenxin 4 ปีที่แล้ว

    can you run 100 step motors?

  • @dojomats
    @dojomats 4 ปีที่แล้ว

    is that how much noise is generated?! the SG90 servo makes so much noise compared to this one!!!!

  • @TheSalesEngineer
    @TheSalesEngineer 6 ปีที่แล้ว

    You blur part of the datasheet... why, again?

  • @DaleStricklandClark
    @DaleStricklandClark 7 ปีที่แล้ว +18

    "Balla"? Did you mean voila?

    • @MJ-em2ix
      @MJ-em2ix 4 ปีที่แล้ว

      The second syllable is stressed. Balá. Fixed it for you.

  • @matsmaakt7627
    @matsmaakt7627 4 ปีที่แล้ว

    The library CheapStepper.h doesn't exist if i type it

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

      you gotta download it from the description. Go to the github page and then click on clone or download. then select download as zip. then go to the arduino app and go to top of the screen and select sketch. then go to include library. After that you click on add ZIP library and then find the zip file that you downloaded. then click on it and there you go!

    • @matsmaakt7627
      @matsmaakt7627 4 ปีที่แล้ว

      @@splatm4n8 thanx

  • @jameselliott9397
    @jameselliott9397 5 ปีที่แล้ว

    Downloaded master ino and library. 1st line fails it doesn’t recognize CheapStepper stepper; Can you send me a copy zip to magwave @computers-plus.net? CheapStepper does not change color?

  • @lonnymoore2622
    @lonnymoore2622 7 ปีที่แล้ว

    if the give away hasnt happend yet pleas add me too the list too be enterd in too it.

    • @learnelectronics
      @learnelectronics  7 ปีที่แล้ว

      You must enter via this video: th-cam.com/video/DxP1qsiClQw/w-d-xo.html