How to wire and code 28BYJ-48 Stepper Motors with an Arduino - Part 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ย. 2017
  • This video takes you through how to wire up two 28BYJ-48 stepper motors to an Arduino Uno and program them to run simultaneously.
    To learn how to program the stepper motors to run autonomously based on time intervals please watch Part 2: • How to wire and code 2...
    28BYJ-48 Data sheet: robocraft.ru/files/datasheet/2...

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

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

    After watching probably 10 videos on steppers by people who do this stuff as a job trying to find why the pins aren’t in order and no one explaining why or how to know what order they go in, finally, you guys mention it. Thanks ! good day !!

  • @AliIsmaeltyphoon
    @AliIsmaeltyphoon 6 ปีที่แล้ว +11

    I fought the whole day with that motor, never changed direction as per the software ! I never knew that it had its own sequence. Will test that tomorow. Btw, you you should show us the motors running. Many thanks Ladies !

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

    This was such an amazing explanation!!! Thanks for taking the time to share your knowledge. I now have both stepper motors running. It’s great to see girls leading the way!

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

    This was completely thorough yet straightforward. Thank you so much! You have been absolute lifesavers!

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

    Im working on my personal project right now, and this has helped immensely! thank you so much!

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

    wow i've been trying to figure this out for so long, this is the first video thats made sense thanks

  • @JohnDoe-bk3db
    @JohnDoe-bk3db 6 ปีที่แล้ว +1

    Omg!!! Thank you!!! I was just wondering if I could use 2 stepper motors. You saved the day 😁

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

    Thank you ladies! :) Just what I needed.

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

    Thanks alot! you guys put things really straight forward. thisis my first arduino project, and this video was a huge help! not exactly the same as you two were doing. i was using a single stepper and doing, mine was just a single rotation once every so many hours. its for my automatic fish feeding feeder! Cheers keep up the good videos!

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

      Thanks!! glad we could be of some help. Hopefully this won't be your last Arduino project because there's just so much you can do with these things!!!

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

      STEM learn definitely not! Just getting started!

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

    Hi I have some motors and some bits and not much knowledge. This video has been a great help. At my age (81) I should be just sitting somewhere with pipe and slippers but this is much more fun. So thank you. Robert Australia.

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

      Thanks Robert!!! Good to know our videos are proving useful.

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

    Arduino deserves 1000 more videos like this!

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

      Brüder ! Diese beiden Damen verdienen mehr Aufmerksamkeit, weil sie die typische Küche, die Mutterrolle der Frauen in der Gesellschaft, ignorierten und im heiligen Land der Männer Fuß gefasst haben: in der magischen Welt der Technologie, hahaha🎰✴🔊🤖
      .........................
      Brothers ! These two ladies deserve more attention because they ignored the typical kitchen, - mother role of women in society, and have gained a foothold in the holy land of men: in the magical world of technology hahaha🎰✴🔊🤖

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

    loved the attitude

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

    Great video helped thanks

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

    We watched lots of stepper motor videos but we can't run it.
    Thank yu so much !!

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

      I hope our video was helpful!

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

      Yes we did it following this video :)

  • @binarybox.binarybox
    @binarybox.binarybox 5 ปีที่แล้ว +3

    Nice video. It's not 5 volts of power. Power is VI . You have to be careful when powering devices from an ardiuno so as not to draw too much current. It is usual to have a separate power supply when running motors , relays etc.
    Well reminded about the port number and , of course, the board type, else the prog/sketch won't upload.
    It would have been nice to see the motors running.
    I did try the same type of motors and boards and got them working ok a few months back. I assembled 2 motors to use as a pan and tilt head for a camera.

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

    Isn't it bad to connect stepper motors directly to an arduino? As the steppers might consume too much mA and it has to flow through the arduino which can only support 40mA, maybe burning it in the porcess?

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

    I learned a lot!!!!

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

    Hey guys. Great video! Really helped me to get started, thank you :). Is it possible to run each motor at different speed?

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

    Fabulous, thank you. And Aussies too, how good is that.

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

    If Im already using the 5V pin on the Arduino for an input thing- is there a way I can still wire up the motors?

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

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

      Caelum Technologies, we’d love to help. Just need a bit more information - so when you press the button you want the stepper motor to turn after a given amount of time? Or you want to be able to set the time by pushing a button?

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

      STEM learn awesome thanks so much. I want to be able to set the amount of time it will turn with a varioresistor and then when the button is pushed it must run for that time. Then need a button that will bring it back to the starting point. Or maybe when the button is double pressed. Basically i need to rig it to a machine to make wooden dovetail joins.

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

    I've got a question! Which motor controller did u use ?

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

    Grazie mille ragazze!!!

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

    Thanks You.

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

    Please tell me that which application are you using in this video for coding...
    😊😊😊

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

    Hi.
    Can you please help me to write program for my school project?
    Thanks

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

    Please build arduino control two stepper motor record and playback direction..

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

    Stpper moter not run only uln2003 driver light blinking I have use 5v mobile charger for supply...... Plzz guide me

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

      Balkaran Singh did you change the code according to the order in which the stepper motor works? It is critical that you change the order to 1-3-2-4

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

    Lol wished I seen this attached mine and it just juddered so I worked out 8 9 had to be swapped round but mine set at 200 going to try 512 see if it works any better would love to see someone put code up for change of direction on button press

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

      Hi Tony, we have a video which shows how to use a button and then another video which shows how to change direction on your steppers...you should be able to figure the code for the button push changing the direction easily from that :)

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

      Yes looked at all your videos and a lot of others and no help think I just give up with Ardunio and go back to old school npn and pnp circuit to run a motor in both directions when hitting a micro switch

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

      Perseverance is a good character trait, don’t give up!

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

      I have now after weeks of brain strain managed to get it to work with button in a few different ways and added videos and listed the free code in comments a and unlike some my videos don't have adds and I don't earn money from it this was my first time ever using Arduino so had to watch a lot of videos and mix and match code until I got one to work for my needs but thankyou for the help
      My project is going to be a auto load fishing feeder with distance using two micro switches I can ajust to extend the range I'd make the motor

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

    You did not show the motors running, after you got my inductor all charged up???

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

      just did it. it does work. wish they showed it though, that's just bad filming

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

    The part I'm having trouble with is finding out the steps per revolution of my motor. I am using the same motor as you guys, but according to the datasheet of the motor each step is 5.265º. Wouldn't that make 64 steps per revolution? (5.625 goes into 360 64 times)

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

      yeah - its a bit weird like that...when we put the correct number it didn't work for us but when we tried 200 it worked perfectly. Did you try 200 like us?

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

      STEM learn I tried many different values. Anything under 512 worked, but didn't give me a full revolution. When I tried 512, it just vibrated and didn't turn at all. Anything above about 600 it didn't vibrate but the driver started beeping. I'll keep experimenting I guess!

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

      its also linked to the speed you set - so try changing it to 40 instead of 60 and you'll have more luck.

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

      STEM learn I'll try that next, thanks!

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

    You will need a separate power supply for the motors, they draw far more current than the Arduino can deliver.

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

    Where can I download the code and stepper.h?

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

    can you share the code please

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

    Why You put 512 steps in the code as the motor has 64 x 64 or 32 x 64 steps?

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

      I played around and that was the best number in relation to the speed...depends on which motor you are using.

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

    I love you

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

      I love them too!

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

    Connect a servo in to..

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

    👍🤗💞

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

    please can you put the code

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

    You supposed to run the stepper motors with a separate power supply.

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

      I have a separate power supply and there still seems to be a under-power issue. Problem doesn't occur if I comment out either one of the motor.step() calls. After about 30 seconds, the LEDs on the drivers all flash together at a rate variable rate around once per second.

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

    Why didn't you show the motors working at the end,come on

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

    BUT.. Don't power them directly from the Arduino.
    Believe me, you will notice somethings "not right"..

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

    Progressive dream women hahaha! Oh mi Lord ! Halleluja 🚔🔊🤖😂 What a nice third Millennium !? We reach the Stars in other Planets, of course
    with a new educated generation of human history !

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

    well that was time wasted ill never get back