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

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

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

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

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

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

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

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

  • @sampullman9418
    @sampullman9418 5 лет назад +2

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

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

  • @binarybox.binarybox
    @binarybox.binarybox 6 лет назад +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.

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

  • @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🎰✴🔊🤖

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

    Thank you ladies! :) Just what I needed.

  • @cemreaymelek9593
    @cemreaymelek9593 6 лет назад +2

    We watched lots of stepper motor videos but we can't run it.
    Thank yu 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

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

    loved the attitude

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

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

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

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

    Great video helped thanks

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

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

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

  • @neatnate570
    @neatnate570 6 лет назад +2

    I learned a lot!!!!

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

    Thanks You.

  • @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  6 лет назад

      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 6 лет назад

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

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

  • @boogerhead0
    @boogerhead0 6 лет назад +3

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

    • @dolphinsupreme9877
      @dolphinsupreme9877 6 лет назад

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

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

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

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

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

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

  • @brunolassandro8465
    @brunolassandro8465 6 лет назад

    Grazie mille ragazze!!!

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

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

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

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

  • @kennethleona2002
    @kennethleona2002 25 дней назад

    ma'am where is the result of it? i doesn't work well with us huhuhu

  • @joelvale3887
    @joelvale3887 5 лет назад +1

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

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

      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.

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

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

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

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

    please can you put the code

  • @iamabhishek1720
    @iamabhishek1720 6 лет назад

    Connect a servo in to..

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

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

  • @hosseindehghani5530
    @hosseindehghani5530 6 лет назад

    Where can I download the code and stepper.h?

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

  • @tejasgade588
    @tejasgade588 6 лет назад

    I love you

  • @majidmajid1848
    @majidmajid1848 6 лет назад +1

    👍🤗💞

  • @tronmandurglur7721
    @tronmandurglur7721 5 месяцев назад

    well that was time wasted ill never get back