28BYJ-48 stepper motor and ULN2003 Arduino (Quick tutorial for beginners)

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • In this quick Arduino tutorial, I will show you how to use 28BYJ-48 stepper motor with ULN2003 driver. Because this is a quick Arduino tutorial we will focus on the most important things you need to know to get it working in 5 minutes. Enjoy!
    28BYJ-48 with driver: amzn.to/3gAN2qH
    Arduino: amzn.to/46EsjKx
    Code: github.com/Nik...
    Support my projects on Patreon → / nikodembartnik
    My gear:
    Camera: amzn.to/3VdbfGH
    Lens: amzn.to/44nY2z0
    Better lens: amzn.to/424iuCX
    Tripod: amzn.to/3Nh2Cca
    3D printer: amzn.to/3QzHhfc
    Label printer: amzn.to/3oW55yn
    Headphones: amzn.to/3LDTXz6
    Speakers: amzn.to/3nl34eJ
    Oscilloscope: amzn.to/3HmGMjN
    Lab bench power supply: amzn.to/3HpotdD
    Soldering station: amzn.to/3Vd39xH
    This is the second video of my Arduino tutorials about basic sensors and output devices that you can use with Arduino. I want to keep all of them under 5 minutes to make them short so that if you want to use something in your project you can quickly go through the tutorial and start making your own project.
    Instagram: goo.gl/JLFLtf

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

  • @thierrybertho4801
    @thierrybertho4801 4 года назад +58

    Does the job perfectly. I'm going to use it to feed my cat with an endless screw

  • @roberttbobpatterson1322
    @roberttbobpatterson1322 4 года назад +18

    Great Tutorial. I could not initially get the project to change from the anticlockwise loop to the clockwise loop. The motor would pause then move again in the same direction. I changed the delay to 3ms on just one loop and it corrected the issue. I was originally powering the motor directly from the arduino and wondered if this was the issue. I introduced a 12VDC power supply to power the stepper motor direct, altered the delay back down to 2ms and the motor now changes direction as desired.

  • @1234freelancer
    @1234freelancer 6 месяцев назад +1

    Jestem stary chłop i w sumie to zaczynam się bawić w mikrokontrolery. Dzięki za ten film i proste wytłumaczenie.

  • @jamesbarratt593
    @jamesbarratt593 10 месяцев назад +2

    I cant wait. Just bought a beginner arduino kit. I have almost completed an internal security lock for a van on my 3d printer with wireless control. I work doing car keys and mechanics plus auto electrics. Im so excited to be able to make electro mechanical things. Solar panel raiser for sunshine passing. Remember that word sunshine 🌞

  • @craigkirby9202
    @craigkirby9202 4 года назад +27

    I discovered a HUGE increase (maybe 10 times) in torque when I changed the delay from 2 to 5 on my clone Nano (even 3 made a huge difference). If the power output seems low, try delaying it a bit more. Perhaps the clock speed is different or something on the clones, or perhaps it's just a Nano thing.

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

      I'm making a grappling hook thingy, and I sure hope what you said will work cuz I need a high enough torque to overcome a rubber band
      Edit: Alright dude, I tried it already, and it WORKED PERFECTLY THANKS SO MUCH

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

      @@cucumber1389 Awesome :)

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

      ​@@cucumber1389 Send a link to what you make, I'd love to see it. I think this is the first time I've helped someone with Arduino. I used to blog at 120thingsin20years.blogspot.com where I tried to learn a new thing every 2 months for twenty years. I didn't quite make it, but I always tried to contribute at least one thing to all the amazing things people educated me about. Anyway, I'd love to see your grappling hook. It sounds like the kind of thing I would have liked to invent myself :).

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

      @@craigkirby9202 uhh, how do I put this, sorry to dissapoint you, but I failed... So basically at first, the stepper did manage to draw back my linear gear fast enough and strong enough to over come the rubber band, but when I realised that it needed a slightly larger force to fire the hook, I changed the rubber band, which made it impossible for the stepper to pull back the gear. I would still send it to you, if you'd like. I know that what I'm about to send you shows quite a bit of design flaws but I tried to use recycled materials. Anyways I'll show you now
      Edit: How do I send stuff to you via your blog, sorry Ive never actually used a blog before
      Edit 2: I'll just put the link to a post I made about it a few days ago instagram.com/p/CC8mW7_HeL8/?igshid=1jffo6ln5q6n8

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

      @@cucumber1389 I dont have an instagram account. I try to limit such things. I have a gmail account kirby.craig@gmail.com that has over 10,400 unread emails that I keep for such stuff as this :) . I normally dont check it, but if you send something to that email address, then make a comment here, I can go back to the right time and date and find it.Just add something in the subject to help me find it. Almost all that mail in my inbox is junk, because every time you post an email address you get an insane amount of spam. But send to that address, then post here that you have sent me something, so i know to look. I'm happy to help in any way I can, but understand, I'm pretty new to this stuff.

  • @jasonamosco318
    @jasonamosco318 2 года назад +2

    Thank you so much it works without interrupting the other functions. love it from Philippines.

  • @GRBtutorials
    @GRBtutorials 6 лет назад +38

    The reason why it seems to have 2048 steps and it's so slow is that it has a speed reduction gearbox to increase the torque and the number of steps. It's 1:64, IIRC, which means that for each 64 revolutions of the actual motor, there is one revolution of the shaft. The actual motor actually has only 32 steps!

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

      That's right

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

      @@nikodembartnik Hey can I get to know the changes to make to run the motor for 4 rotations & then make it stop....

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

    First time using 28BYJ-48 stepper motor with ULN2003 driver board. Worked first time. Would recommend using external 5VDC power supply though instead of loading down the Arduino power supply. Thank You.

  • @grf0
    @grf0 5 лет назад +5

    wow dude good video, you explained the important stuff better than any other place, specially the simple math and how the steps work

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

    If you want to get really down to the nitty gritty, you can hook this up to a decade counter which is triggered with a 555 timer.

  • @bassome3000ify
    @bassome3000ify 6 лет назад +8

    Nicely explained.
    I would recommend:
    -clarify for people that connecting any motor to the arduino directly, for power, could kill the arduino.
    -ULN2003 requires some specific connection between common, ground, and the driving signal.
    These 2 notes would help newbies to not damage their arduinos (note 1) and to get their experiment working (note 2)

    • @JOSEGUTIERREZ-cu1nt
      @JOSEGUTIERREZ-cu1nt 5 лет назад

      I'm sorry, brother, could you help me connect 5 of those engines that are in the video, but in the correct ports, esque just connect 1 but 5 do not know how
      I'm using an arduino mega r3
      I would really appreciate it

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

      Why is it bad to directly connect?

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

      What do you mean that connecting it directly for power could kill the arduino. Are you saying that the vcc shouldn't be connected to de 5v in the arduino board?

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

      @@BlackBirdJacobo too much current. Arduino boards output only about 40mA - 60mA per pin, which is an absolute fraction of what is required for any small motor like this.

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

      @@paulraymond1804 You not driving the stepper directly from the Arduino pins, but via the uln2003. The 5 volt supply is taken from the Arduino supply and not from one of data pins. Furthermore there a Vin point which basically comes directly from input voltage supply even before the arduino 5 volt regulator.

  • @mohammadafdal774
    @mohammadafdal774 10 месяцев назад

    A lot more information then what is in the datasheet. Thank you.

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

    I increased the amps of my power supply and changed it to 3ms and it increased the torque so much.

  • @Cam-wu9jw
    @Cam-wu9jw 11 месяцев назад

    Thanks man. Made it easy to get started. Ur making the world smarter!

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

    Works great and video + code were easy to follow and understand. Thanks a bunch !

  • @sushiman_
    @sushiman_ Месяц назад +3

    if anyone wants a more compact code:
    int INS[] = {9, 10, 11, 12};
    void setup() {
    for (int i = 0; i < 4; i++) {
    pinMode(INS[i], OUTPUT);
    digitalWrite(INS[i], LOW);
    }
    }
    int i = 0;
    void loop() {
    digitalWrite(INS[i], HIGH);
    delay(2);
    digitalWrite(INS[i], LOW);
    i = (i+1)%4;
    //you can change it a bit so it goes in the opposite dirrection
    }

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

    I do think your English has improved in the newest videos. Thanks for this video

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

    thanks for this , now im ready for the step motor project

  • @arnavm2003
    @arnavm2003 6 лет назад +18

    thx bro... well explained and solved my problem

    • @nikodembartnik
      @nikodembartnik  6 лет назад +6

      I am happy that you like it!

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

      @@nikodembartnik JESUS IS THE KING OF THE KINGS

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

    exactly what i knew the instructions would be missing

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

    the function to move the motor with the high and low digital writes can be more simple if you do this:
    void rotMotor(int ar[],int h){
    for(int i = 0 ; i < 4 ; i++){
    digitalWrite(ar[i],LOW);
    if(i == h){
    digitalWrite(ar[i],HIGH);
    delay(2);
    digitalWrite(ar[i],LOW);
    }
    }
    }

    • @3dmixer552
      @3dmixer552 4 года назад

      You are right, but that way it will rotate slower tho

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

      @@3dmixer552 actually i tried it and it rotates at same speed

    • @3dmixer552
      @3dmixer552 4 года назад

      @@DaniiTheFox I didn't try it but because of the for loop it should be a bit slower. Not much tho so probably not noticeable

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

      @@3dmixer552 you can always use while instead of for XD

  • @StixUS
    @StixUS 3 года назад +8

    Thanks! is there any way to make the motor controlled by a button?

  • @foldi001
    @foldi001 3 месяца назад

    Pretty simple. Pretty good.

  • @gamercodes9757
    @gamercodes9757 8 месяцев назад +1

    thanks man!!!!

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

    Well bless your heart for such a clear and good presentation. Very helpful; Thank you.

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

    Thank you very much !!! helped me a lot in my project.

  • @juanmf
    @juanmf 7 месяцев назад +1

    From DataSheet: Stride Angle 5.625° /64
    in this stepper motor yields 64 steps per rev?
    Am I wrong?

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

    Informative, Short But it explains enough. Great Tutorial 👌

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

    Please make a video on Circuit diagram of transister based controller used in printer.
    .

  • @thomasnguyen8937
    @thomasnguyen8937 3 месяца назад

    This was a great help, thank you

  • @viktor6772
    @viktor6772 4 месяца назад

    Thanks, your code also works with 24BYJ48 stepper motor

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

    Thanks for the clear tutorial! How slow can this stepper motor be programmed to turn a full revolution? Using it to move a model railroad turntable to a precise position (either in F/R direction).

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

      If you have the digitalWrite in a while loop with a counter you might get lucky but you should use a sensor to turn until triggered, that way a power outage won't mess up position.

  • @uweri_3851
    @uweri_3851 6 лет назад +17

    perfect. Exactly what I need. Thanks a lot

  • @welshdave5263
    @welshdave5263 7 месяцев назад

    Thanks for the simple explanation, could you help with an idea?
    I would like to replace the stepper driver and motor with an arduion to read the signals then give forward or backward power to a dc motor, variable speed would be nice but just fwd/off/bwd would help me start.

  • @Smolbeanxyz
    @Smolbeanxyz 11 месяцев назад +1

    can we use the 28byj-48 stepper motor in replace for a dc motor? when I saw in the vid it looks impossible.

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

    @Nikodem Bartnik Its urgent question
    Please could you tell me how to drive the motor with other Stepperdriver moulds like TMC2130 for example 🙁 I,ll be happy for answering my question as fast as it possible

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

    Hi I came here since I had a problem in my code, turned out I thought of something, and so thought I had already typed it but I hadn't typed it yet. found it after discovering it wasn't my custom hardware's fault by running your code. I found that it might be helpful for some if I publish my code here since my code is much more compact(less memory), and especially is a lot less compute intensive. it also has half stepping which in this case allows for a higher speed of around 20 to 25% based on the max speeds(I use 0.8ms per step using the same stepper motor, and it is stable under load while the other code here could work at 2ms per step but would stop or become unstable under slight load.
    it currently uses pin 8,9,10,11. however it can use other pins as well by changing the register or by changing values in the byte array vals where the most right bit is pin 8, the one left to that 9, etc. this goes on until you are at the 6th bit(bit5, or pin 13), the 2 left of that are not connected to a pin in PORTB
    CODE:
    unsigned long TimeOfLastStep=0;
    unsigned long TimeNow=0;
    int step=0;
    int delayPerHalfStep=800;//for me min delay(max speed) is between 700 and 800 for 5v(custom driver with less loss)
    byte vals[8]={0b00000001,0b00000011,0b00000010,0b00000110,0b00000100,0b00001100,0b00001000,0b00001001};
    void setup() {
    DDRB=DDRB | 0b00001111;//only set 8,9,10, 11 as output do not change rest of pins.
    PORTB=0b00000000;//simplified from only turning of 8,9,10,11 to turning of all of portb
    TimeOfLastStep=micros();
    }
    //1 microseconde =0.001 miliseconde. 1 milliseconde= 1000 microseconde
    void loop()
    {
    TimeNow=micros();
    if(TimeNow-TimeOfLastStep>=delayPerHalfStep) //altijd TimeNow-TimeOfLastStep >= interval. dit is de enige van de 4 basis versies die niet kapot gaat uiteindelijk.
    {
    TimeOfLastStep=TimeNow;
    PORTB=vals[step];//PORTB is the location of port 8, 9, 10,11,12,13. by doing this I directly update all of them at the same time, this is a lot faster than digitalwrite and allows you to easily set which bits/pins to enable in what state in a array. originally I did this using cyclic bitshifitng, but this would probably be hard to understand for many people.
    step++;
    if(step>7){step=0; }//resets state
    }
    }
    :END OF CODE
    This code is not perfect by far, I simplified it a lot to keep stuff that looks complicated out, it could be done with faster code, less memory, etc. and especially it could be done a lot safer, since this code overrides all of the bits in portB which means that the unused pins of portB become practically unusable. it is easily fixable by using PORTB=(PORTB&0b11110000)|vals[step]; instead of PORTB=vals[step]; this fixed version would only reset pin 8,9,10,11 before writing the new values to them. but that code would be a lot harder to understand for many I estimate, since it does multiple things in one line. also I didn't add a bool for the direction since it was just meant to test stepper motors and their behaviour under my custom driver which is a part of a more complex universal driver I am working on, however by changing step++; to step--; and if(step>7){step=0;} to if(step

  • @DazedDinosaures
    @DazedDinosaures 3 года назад +7

    Thank you for the great tutorial! Could you explain how to adapt this set-up for two stepper motors?

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

    sketch_sep29a\sketch_sep29a.ino:1:27: fatal error: PIDController.h: No such file or directory that appears to me what is the solution please

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

    I don't think you are supposed to drive this motor at 12V. This motor comes in two versions, one 5V and another 12V. So the 12V option on the driver is probably for the 12V version. I also tried to raise the voltage to above 5V on the 5V motor and it did overheat.

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

    You bought the kit "Quad Store Super Starter Kit"............Am I right.
    I have the same kit with me.

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

    No need to have a separate power supply for the board and the driver? Thank you. I just started learning arduino. Your video is a great help :)

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

      since it's low on the voltage requirement, you can just use the 5v from the arduino. Would be better on a protoboard so you can understand what's going on.

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

      You will possibly burn your arduino power supply. Use external one for good measure

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

    The lights of the ULN2003 are not turned on like they are in the video, what could this be? Lights on Arduino Uno board are on and the light for pin13 is blinking.... Just started with Arduino so I know nothing :P

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

    working perfectly thanks

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

    Lovely and concise tutorial. Thanks.

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

    Well written code. Makes it easy to modify :)

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

    How to control it more precisely, so it just doesn’t spin but stays and moves as I order it?

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

    Okay, please hear me out and help me. So I can get the Motor to vibrate. But it doesn't do anything else just vibrates. Idk if it is because I have a different driver board with no in1-6 pins. It just has the letters DCBA in that order. What to do?

  • @Dubbelehalvezool
    @Dubbelehalvezool 5 лет назад +8

    Well explained, thanks !

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

    the code don't work with me, can you help?

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

    Thanx that really helped me, a great tutorial.

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

    Hi can you please explain the conditions you wrote for the for loop in the void loop function, please reply urgently if possible

  • @mithgil-cool
    @mithgil-cool 2 года назад

    Thanks for your demonstration. I also try this. And how to stop the motor? I need to unplug the cable, or?

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

    Good vídeo, you can reduce wires using the CI L297

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

      Yes, but with dedicated driver it is easier to use for beginners.

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

    sorry noob question as I’m just starting to play with arduino.
    Once you’ve programmed it with the arduino, you can disconnect the arduino and the stepper motor will be a standalone circuit ?

  • @p-cide4857
    @p-cide4857 2 года назад

    Great Tutorial this is the first one I could follow with success, other videos by many channels I could not follow with success.
    One question as well if you could kindly answer.
    Is it possible to stop the motor for 5 second at the end of clockwise rotation. And then stop for 5 seconds after anticlockwise rotation?
    Sorry, I have no idea about the programming, I just bought the kit to do something new.

  • @Killer-rv8mx
    @Killer-rv8mx 5 лет назад +1

    Thanks, man I was trying many codes but none of them worked

  • @nikodembartnik
    @nikodembartnik  4 года назад +8

    Here you can buy this motor with a driver: amzn.to/3gAN2qH
    Support my projects on Patreon : www.patreon.com/nikodembartnik

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

      hey is this the fastest it can go ??? cuz it is pretty slow

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

      Once it is moving, is there a method to interrupt making it stop?

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

    Nice bro. Now my project can rotate now. Yessssssss :)

  • @play10001000
    @play10001000 5 лет назад +3

    thx, my bridge is possible now

  • @tingkinghuo1597
    @tingkinghuo1597 5 лет назад +4

    i use this code but i dont know why my stepper motor can't rotate , it just vibrate

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

      Please increase the delay.. to 50 or 100 then check

    • @tingkinghuo1597
      @tingkinghuo1597 5 лет назад +3

      @@ahmadraja5589 alright 👌 I'll try it soon

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

      I solved this by increasing delay.

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

    so, how would i make this work with a button

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

    How do you control 2 stepper motor I saw the datasheet there's a cw and acw on rd2 how about the other wheel if not the wheel will lock at one location I'm using mplab for pic18f4550 instead of arduino

  • @firtek3649
    @firtek3649 4 года назад +5

    How do we change the speed in the code? thank you in advance.

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

      well. Doesn't think he appreciated that thank you, ahah. But for real, I need the same answer so someone help!

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

      I found out how. Just change the delay. But minimum is (2) which I found more than enough

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

    I am actually doing this in C#, it works perfect with the case switch, but I wonder if there is any way to set the speed

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

    What software are you using?
    I’m on a Apple Mac & I’ve found pololu tic but can’t find driver in usb so says not connected

  • @antoniogm6153
    @antoniogm6153 5 лет назад +3

    Wella explain, but you should use and external power supply to that motor, you could fried the Arduino

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

    Why you don't use the library ?

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

    does it work for arduino mega 2560 or just uno?

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

    I can't get your code to work

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

    If you have two different types of stepper motor with different Steps can you use it in single project together like in cnc or 3d printer ?

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

    Thanks for the Info. Nice job on the code an the tutorial. Keep up the good work.

  • @FauzaanSharieff
    @FauzaanSharieff 7 месяцев назад

    Is it necessary to connect it to a driver? Why not connect it to the arduino directly?

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

    Hello great work, can you put two buttons to command the movement, instead of doing it in loop?

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

    Thanks to you!
    How many years has passed, but may I ask you one question?
    This is what I really wanted
    I want to slow down a bit.
    But I don't know Arduino well and don't know how to fix it ...
    Can you tell me how to slow down?

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

    can you help me please? i only changed the void loop part to this:
    void loop() {
    n = analogRead(ldr);
    n2 = analogRead(ldr2);
    if (n > 500){
    OneStep(false);
    }
    else if(n2 > 500){
    OneStep(true);
    }

    delay(2);
    return;
    }
    my goal was to make the motor move back and forth depending on which photoresistor (n value) that got the light.
    whole code is verified but there is no progress.

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

    Beautiful. Thank you so much

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

    will the stepper motor only work if we connect the driver pins to 9, 10, 11, 12 on the arduino? Or can we use other arduino pins?
    edit 4 years later: yes we can.

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

    can somebody explain to me, why 2ms is minimum and why when you have 4*0.002s*64=0,512sec , but the motor needs 4sec?

  • @m.c.y.5406
    @m.c.y.5406 Год назад

    hey thanks for the video but i got a problem it gives me an error that says; "OneStep was not declared in this scope". what do i do? I checked the code 5 time to see if i did any mistake but no.

  • @chanchalsakarde2768
    @chanchalsakarde2768 7 месяцев назад

    how to control steps movements, like lets say we have 400 circular points to move one by one and i need to move pointer in following example sequence starting from 0->10->240->45->28-> .......... -> 400 . How can we automate this ..

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

    hi, how much weight (kilos) can this motor lift?

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

    Very useful !!! Thanks !

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

    I have the same stepper motor. I connected it and wrote the code, but it only vibrates. No rotation.

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

      same here. Would be great if anyone has a fix

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

    is the speed limited by the motor or the controller?
    The 2ms delay/step is too slow for me.

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

    Clear explanation. Thanks.

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

    what is 28BY J-48

  • @Perspectologist
    @Perspectologist 6 лет назад +4

    Well explained. Thanks.

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

    Hello, I followed your schematic, and as soon as I plug in the USB cable, my Arduino UNO or MEGA fades out after 3 seconds. What am I doing wrong? Not even the ULN2003 lits up.

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

      what you describe sounds exactly like what arduino does when you short-circuit its gnd and 5v connections. I would recommend you to check your wiring

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

      @@cafemm Thank you for your answer, it really was the cause! I have no idea why the heck I swapped them here.

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

    works great!!
    but only rotates in one direction..

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

      it is same with me, what can be the reason? Did you find it?

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

    thanks for the vid!

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

    help
    when i program it to turn 180 degrees it displays this error
    exit status 1
    initializer in range-based 'for' loop
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

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

    while(1)
    {
    // body of the loop...
    } // this can loop any code just put the code inside.

  • @joetke
    @joetke 6 лет назад +4

    Quick and effective...

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

    I'm pretty sure you're not supposed to power the motor directly from your arduino

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

    Strange behavior on mines...
    Using half-stepping.
    I use PORTB instead of the awfull digitalWrite...
    Delay of 2 ms motor is turning ok.
    Delay of 4 ms motor stays still ??? same for delayMicroseconds(4000).
    Delay of 8 ms motor is turning ok again...

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

    Can you run the motor without a PC and directly powered from a DC source like a mobile power-bank?

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

    can you post the code for moving clockwise/anticlockwise, please!?

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

    Can you make humidity sensor with LCD display via arduino? It's popular but they are using nano arduino though.

  • @0....
    @0.... 4 года назад +1

    Love ur accent