Use Arduino to Control a Large Stepper Motor! Part 2

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

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

  • @jakeketchum1398
    @jakeketchum1398 7 лет назад

    I follow your channel more generally, but actually ran across this video while looking up the driver. Really appreciate your taking the time make these video's.

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

    Thank you for posting these, even if I'm late to the party. Awesome demo's of bringing the Arduino into a "man's world". Most seem to treat the Arduino like some little novelty toy for entertainment. Like you, I want to put this puppy through its paces for "practical"uses. Nice to see someone like myself with tech AND industrial experience.

  • @rhost714
    @rhost714 11 лет назад

    Thumbs up, the wobble you are seeing is because you are landing on a microstep and its balanced between two full steps. The accel and decel has me thinking about rolling my own DIY surface grinder.

  • @BarreraFamilyTexas
    @BarreraFamilyTexas 10 лет назад

    About a year ago I pulled all the stepper motors out of 5 copiers that were being disposed of. I have searched from time to time for videos on controlling larger stepper motors with my Arduino so I am thrilled to find your youtube channel. I also found that Adafruit has a new motor shield (v2.0) that will run "1.2A per channel and 3A peak current capability" much better than their older motor shield!! You can also stack them. "32 stackable shields: that's 64 steppers"

  • @the8bitbarn836
    @the8bitbarn836 10 лет назад +19

    I have read the comments, Picky, picky,. NYC CNC I feel your pain in trying to show people something that you have put a lot of thought into and built by hand. Let me tell you about me, I'm an electrical engineer and I would be considered an expert in stepper motors and drives. So on that note if you have any question ask away. As for the question of the motor micro stepping, what you are seeing is phase mismatch. This is caused by your drive not being tuned to your motor. Sure it will run it but as you have found it skips a lot and you loose power and precision. I will try to explain basic electronics theory to you and you have probably have heard this before but one rule of thumb is the higher the frequency the lower the power. As you ramp that drive up you can hear the harmonics in it. Most PWM systems don't really sing like that unless there is a drive problem or an impedance problem this is an incompliance between your phases . For your drive to function properly will need some type of feed back. And lastly you don't lose torque while micro stepping you have the same amount of power regardless of the step size. Micro stepping is for precision period.
    You should have the same amount of torque all the way up the ramp. If anything you are flat lining that power supply. Might want to get a bigger one. Other than that keep trying and keep learning.

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

      This is incredible advice, thanks for sharing!

  • @gearhed78
    @gearhed78 9 лет назад

    Thanks for the tests.Your experiments help everyone understand a little more than we knew before.

  • @jimhall7012
    @jimhall7012 9 лет назад +3

    Thank you for your videos. One comment, perhaps you could move your control electronics (on off and pot) to the front so you don't need to reach across the moving parts.

  • @1kgsxrk7
    @1kgsxrk7 11 лет назад

    Thumbs up John. Been a faithful viewer since the apartment days.

  • @bulletproofpepper2
    @bulletproofpepper2 10 лет назад +1

    thanks to you someone is telling the us how to add motors to our stuff.

  • @Neo7CNC
    @Neo7CNC 11 лет назад

    Hi, I appreciate all the time and thought you put into these videos. Pay no attention to the "thumbs down trolls"

  • @adisharr
    @adisharr 11 лет назад

    As you step through your frequency range you'll also find a point where the stepper may seem to get stuck or resonate. Standard stepper driver systems are notorious for this and the solutions range from skipping the resonant freq. to installing shaft dampeners.

  • @adisharr
    @adisharr 11 лет назад

    Microstepping (lowest torque) will give you increased resolution but the accuracy is fairly non-linear unless you're on a half or full step.
    Full stepping dual phase will give you maximum torque but require twice the motor current (2 motor phases energized all the time).
    Half stepping torque falls in between full step dual phase and half step.

  • @MehrdadNaderi
    @MehrdadNaderi 9 лет назад +4

    you need a much higher voltage power supply. that is all. that motor has buttload of torque and stopping power :) great video good stuff PS 48v is sweet spot

    • @CapApollo
      @CapApollo 9 лет назад

      NYC CNC the maximun voltage and best. is 32 times the square root of the inductance of the motor.

  • @Keith_Ward
    @Keith_Ward 11 лет назад

    The step rate and size are really a matter of your application. You should experiment between full, half, and micro stepping as a trade off to what you need in torque, speed, or resolution.

  • @YellowsourceOrg
    @YellowsourceOrg 11 лет назад

    The load must be analyzed carefully for optimum stepper motor performance. And inputs must be matched to the stepper motor and load. Damping may be required when load inertia is exceptionally high to prevent oscillation.

  • @paulpannabecker9962
    @paulpannabecker9962 11 лет назад

    Good stuff as usual. Useful content, the chip making is always appreciated.

  • @stevedelaire6258
    @stevedelaire6258 10 лет назад

    the one thing that is not quite clear (for me) is wiring schematic for the potentiometer and how that fits in the circuit
    Thanks for posting

  • @iiianydayiii
    @iiianydayiii 11 лет назад

    Also, thanks for the idea. I may use a setup like this (with a smaller stepper) for my lathe and mill power feeds.

  • @eddraper
    @eddraper 11 лет назад

    Good going John. I've seen value in most all your videos. Like my comment on one part 1, a more elaborate application really helps connected the dots. Even your son's moving Jedi was helpful in this regard. How about tackling a 2 axis mill? Learn... then go to three. You could even do your own fab on many of the parts...

  • @rhost714
    @rhost714 11 лет назад

    Yes it’s possible to land on a micro step, but it isn’t actually a step. If you spin the rotor, you will feel it snapping to each pole detent in the stator. In a micro step, you’re actually balancing between the poles. If you vary the current, you can position the rotor at some ratio between those two points. At least that is my understanding, ymmv I may be completely off.

  • @user-sb7tu2ve8h
    @user-sb7tu2ve8h 8 лет назад

    Really cool videos :) Really like them,you should have at least 1 million subs :D

  • @Keith_Ward
    @Keith_Ward 11 лет назад

    Yep, ignore the thumbs down folks. Some people surf the internet to just complain and vote everything down. It often means they don't understand it or is not the "reality crap" they are used to on TV.

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

    To all those that left negative or smart-ass comments to this and other videos on RUclips, feel free to post your own videos on this and/or other subjects and show everyone how much "better" you can do it! I personally enjoy and appreciate the effort that goes into making these videos! And for those that commented negatively about him reaching across the spinning disk, you'd better be very careful walking thru a doorway, cause you might run into the edge of the door. Yes, someone could hurt themselves, but if you pay attention to what you are doing, the edge of the doorway won't hurt you! These are my thoughts, what are yours?

  • @Keith_Ward
    @Keith_Ward 11 лет назад

    Microstepping would allow maximum torque due to maximum number of coils energized at any time.

  • @Teakozy
    @Teakozy 9 лет назад +1

    Looks like the driver is having trouble reading the pulse width. Seems to be way too short for that driver to pick up when it gains speed. I don't think those drivers were men't to handle such a narrow pulse under 1u.

  • @TradieTrev
    @TradieTrev 11 лет назад

    Thumbs up here bro! We all learn from our mistakes

  • @Tricknologyinc
    @Tricknologyinc 9 лет назад

    How about a video on a full retrofit of a bench top mill to CNC at a good bang for buck ratio?

    • @Tricknologyinc
      @Tricknologyinc 9 лет назад

      Know where I can get a real good deal on a used Tormach? Can't wait to see your conversion!

  • @jmalmsten
    @jmalmsten 9 лет назад +4

    Holy and crap! Reaching around that potential sawblade was quite distracting to watch. Nice and informative, but, I dunno about health and safety. :/

    • @Teakozy
      @Teakozy 9 лет назад +1

      I was thinking the same thing. For a machine job guy he sure has a negligence for general safety.

    • @chaoticlogic588
      @chaoticlogic588 9 лет назад +1

      Tarek Maddah Not a negligence for safety, an aptitude for good camera angles.

  • @rhost714
    @rhost714 11 лет назад

    If i remember correctly, it decreases the holding torque of the stepper when using microstepping.

  • @BlackPhanth0ms
    @BlackPhanth0ms 11 лет назад

    Hey, Good video! It's called skipping steps when a stepper can't handle the torque.

  • @joe2456001
    @joe2456001 8 лет назад

    I use beaglebone black and machinekit and polulu(much cheaper) do similar things. But overall cool video big motor :)

  • @JohnSmith-ih2zq
    @JohnSmith-ih2zq 10 лет назад

    Thanks for uploading, but to give you some harsh critique here:
    What you said and showed could have been easily compressed into a 3-5 minute video. Instead it is half an hour long, showing you CNC stuff and mentioning whatnot that has little importance to the apparent subject.
    Probably most people find your video because they are interested in the motor for some project. I didn't really watch your video(s), because they are simply way too long, but I am missing some straight facts about it. Such as: How cost efficient is it, if compared to alternatives (mention total price right away, compare to price of different implements)? How accurate can you make it in whatever circumstances? What are the advantages of it, and what is exeptional about it? Maybe there are tricks to get rid of the noise? Maybe there are tricks to do other things? How much weight can you put on the pin before the motor slows down too much?
    Just stuff you would only know and consider by actual experience that's not exactly in the product specs. Each question can maybe be answered AND demo-ed in 10-30 seconds with some minor video editing. If you show yourself talking semi-random stuff while setting up a single point of interest for 15 minutes, it does feel more like an ASMR video than an electronics demo video.

    • @jester4115
      @jester4115 10 лет назад

      and you know its not like his name says cnc or anything and he isnt implying that he is an expert he is just giving basics and a quick tutorial

  • @elitejohnlp
    @elitejohnlp 10 лет назад +20

    I cringed every time you reached across a rotating, toothed disk spinning. Move the damn breadboard to the side of the machine or run wires to the pot. I'm 99% sure the problems you were having were due to the pin setup on the driver board itself, or the stock example accel library which was designed for smaller motors with higher rpm and less inductance. Not saying it won't work, but you need to 'tune' it a bit. That motor should be able to easily hold a few pounds outwards or accelerate it without skipping steps with such a low, low load.

  • @arjunpatel6450
    @arjunpatel6450 9 лет назад

    Thanks!!!...Which stepper motor driver would be more preferable for stepper motor (the details of which is given below)..
    Stepper Motor Specs:
    Nema 23
    20 kg.cm or 2 N.m
    3A o/p current...
    I would like to know which driver u hv used to drive nema 34..

  • @Morkvonork
    @Morkvonork 11 лет назад

    May I ask how the driver is set up? How many microsteps and half or full current while not moving?

  • @jo123900
    @jo123900 9 лет назад

    I like it, but where can I get this sample code, wiring diagram, and parts list.

  • @MrKennected
    @MrKennected 9 лет назад

    Hi John, I came across this video as I was searching for a cheap, simple way to control a stepper for industrial purpose. I'd like to rotate a shaft on a press with a stepper and do it without hooking up a pc. Your Arduino demonstration tells me it probably CAN be done. Is there a way for me to contact you directly to explain what I'm thinking about?

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

    Should use a 5 or 10 turn pot.

  • @Keith_Ward
    @Keith_Ward 11 лет назад

    I know bad form replying to my own post ...
    Correction and caveat of previous statement: I'm not a stepper expert and may have spoken too soon and therefore remembered incorrectly. As it turns out it microstepping may be minimal torque. I think it would be a great time for you to experiment with different masses, counter weights, step types, and rates to graph out the capabilities of your motor ... provided you have the time.

  • @187781jason
    @187781jason 8 лет назад

    Watched a load of videos on controlling stepper motors, especially for large motors. And this covers the basics of what I need for my design ( Subbed ;) )
    Can you tell me if by hooking up a rotational control for clockwise and anticlockwise movement using a rotational potentiometer in place of the speed controller dial you have in place it would work on the same basis?
    I need to be able to rotate the stepper motor 180 deg back and forth etc.
    Obviously i would have to update the programme for the Arduino but I have seen example code to cover that.
    But would it be that simple? ( relativly speaking )
    Great work cheers.

    • @EscapeMCP
      @EscapeMCP 8 лет назад

      +jason daysh Yes, pretty well much :)

  • @Galfonz
    @Galfonz 11 лет назад

    Can servo motors be controlled by an Arduino? They would give higher torque when running faster.

  • @doorchandran4961
    @doorchandran4961 8 лет назад

    The information veru usefull ,Thank you need to know the software name to play with the motor

  • @reverselandfill
    @reverselandfill 10 лет назад

    What is a good way to connect such a large disk to the axle of the motor?

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

    Nice video,
    I am working on a project in which i decided to use stepper motor to lift the item which are maximum 200kg. Can you please help me to select the motor or which motor i have to use ?

  • @ronald44181000
    @ronald44181000 8 лет назад +2

    Will this system work with an Arduino Mega 2560 with a Ramps 1.4? I'm building an Ox CNC Router and I will be using 2-175 oz. in. steppers for the y-axis. A 340 oz. in stepper for the z axis and a 240 oz. in. stepper for the x-axis. I also plan on adding a 340 oz.in. stepper for a Rotary Table as an A-axis. All of these motors draw between 1 and 2 Amps maximum per phase.
    The only other thing I have to wrap my head around is how to wire 8 wire bi-polar series stepper motors. I understand the method of determining which wires need to be paired. What I can't get my head around is what I do with the Center Tap Wires. Do I wire them together and not connect them to the board or something else? I have drivers for at least one axis at present but I would sooner have a neat and tidy package. Also I have a 36 volt 14 Amp main Power Supply to run the stepper motors and I will be adding a 48 volt Power Supply for a water cooled spindle.
    I know my questions are a bit much but I depend upon you for the majority of the answers as you've made most of my decisions very easy to make since I started out with an X-2 Mini- Mill.

    • @peglor
      @peglor 8 лет назад

      This should answer all your questions on wiring stepper motors as it covers all the wiring configurations I've heard of: 42bots.com/tutorials/stepper-motor-wiring-how-to/
      There is also the option of wiring an 8 wire as if it was a 4 wire motor to get more torque: digital.ni.com/public.nsf/allkb/B1CC4C64ABBC7D3C86257BC70017B9E2

    • @AnwarAlfaqeehAlhusseini
      @AnwarAlfaqeehAlhusseini 7 лет назад

      hi
      do you know what size and type of motor to rotate the rotary table on bearing its 200 kg
      ruclips.net/video/NeKkZxZHONM/видео.html
      something like this
      thanks

  • @Jorgjorgjorg
    @Jorgjorgjorg 9 лет назад

    Hi
    Quick question how did you get a mapping of 440 RPM for the max speed based on your setup and code. I tried to do a calculation based on your code, and your stepper driver dip switch configuration.
    Thanks

  • @007gurkan
    @007gurkan 10 лет назад

    Why dont you use the pwm pins of the arduino i think that rezonance is happening because of software pwming.

  • @rhadiem
    @rhadiem 10 лет назад

    Thanks

  • @myozone
    @myozone 11 лет назад

    The juddering is it skipping / missing steps

  • @roeng1368
    @roeng1368 10 лет назад

    Do these large stepper motors have any overheating issues if powered up to hold a position for a long period of time ? Thanks.

  • @moneymagnets6200
    @moneymagnets6200 9 лет назад

    what is the specification and make of this stepper motor

  • @rudyrinjayani6404
    @rudyrinjayani6404 9 лет назад

    can i build an actuator from this stepper motor for automatic antenna tracker?

  • @ridwanfernini4953
    @ridwanfernini4953 7 лет назад

    I have a question, how would you control a Stepper motor to rotate specific steps, pauses, then repeats?

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

      Hello, it's been 10 months since you posted this question, but I'm just seeing this video today. Did you ever get your question answered?

  • @ShuffleSk8Ter
    @ShuffleSk8Ter 11 лет назад

    I would love to use one of these setups to drive my little lathes leadscrew ..wondering if there is anyway to program speeds and calculate with the leadscrew pitch for threading? :")

    • @ShuffleSk8Ter
      @ShuffleSk8Ter 11 лет назад

      John NYCCNC Hello John ya i have a micromark 7x16 but i really wished it had a threading box no small lathe ever did! anyways yea i could couple it up on the tailstock end....can you explain how to do this?

  • @AeroSport103
    @AeroSport103 10 лет назад

    Have you seen any of 'hossmachine' videos? This guy lives and breathes CNC. He is very free with his information answering most all relevant questions.

  • @panamahunt
    @panamahunt 11 лет назад

    HELLO MY NAME IS ANTHONY HOW MANY 34 NEMA MOTORS CAN YOU CONNECT TO ARDUINO

  • @Runenaldo
    @Runenaldo 9 лет назад

    This is very interesting, thanks for uploading.
    I'm doing a project at my school on a bottle filler and capper machine and are planning on using a "3331_0 - 57STH56 NEMA-23" stepper motor to rotate 4 33cl beer bottles round to the two stations in the machine. is this motor a good fit?
    Thank you.

    • @Runenaldo
      @Runenaldo 9 лет назад

      NYC CNC I'm still not sure, so to be safe I went one step up and ordered a 24v Sanyo Denki 1,6Nm stepper. Hopefully that will do the job.

  • @MrHeart4Heart
    @MrHeart4Heart 11 лет назад

    gave you thumbs up

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

    Whats a good china driver for nema 42

  • @NoFaithNoPain
    @NoFaithNoPain 9 лет назад

    May I ask why AccelStepper.h uses pins 1,9,8, when you have only wired up pins 9 and 8? I mean, what does pin 1 actually do?

    • @NoFaithNoPain
      @NoFaithNoPain 9 лет назад

      NYC CNC Ah! so that's the "interface! pin. Thanks. So I shall see if that's why I can't reverse the direction... maybe that should be "2" for me not one. Confused but food for thought.

  • @Blind0Fury
    @Blind0Fury 10 лет назад +1

    How much kg can it move? what if i want to move 80 - 100 kg? any suggestion's?

    • @Blind0Fury
      @Blind0Fury 10 лет назад

      Like a round platform witch can be rotated 360 degrees and a person stands on it who is around 80-100 kg bosmadesign.nl/wijn/test.png

    • @Blind0Fury
      @Blind0Fury 10 лет назад

      Thanks!

    • @aubreyaub
      @aubreyaub 10 лет назад

      Could move a ton, but at a very slow speed. ie, using a gear box!

  • @FluffMuncher
    @FluffMuncher 9 лет назад

    Hey, Great Video mate! The one thing everyone is mentioning is running a higher voltage supply.. But if you ran the GRBL Arduino Shield with a Nema34 and say 48VDC, How would you plug in the higher voltage when the GRBl is only rated to 36VDC?

    • @FluffMuncher
      @FluffMuncher 9 лет назад

      NYC CNC Yeah thats right. But I have been doing some research and it looks like the micro stepper drivers only need 5vdc+ for step and direction.. so if you route the 48vdc through the driver and only run USB power to the arduino and grbl shield that should work right?.. So you would only run the 12-36vdc through the grbl if you were running those onboard/plug on drivers?

    • @FluffMuncher
      @FluffMuncher 9 лет назад

      NYC CNC Sweet.. On your bigger mill have you tried to run it on a grbl? or do you use mach3 with a controller? From what you have played around with, would you see any problems in running a bigger mill with the grbl/arduino setup?

    • @FluffMuncher
      @FluffMuncher 9 лет назад

      NYC CNC Awesome thanks, btw I hope all is going well with your move.. you should be loving the extra room..

  • @svijay2417
    @svijay2417 7 лет назад

    i want to know rating of motor

  • @iiianydayiii
    @iiianydayiii 11 лет назад

    I'll give it a thumbs up but I won't say why.

  • @repalmore
    @repalmore 11 лет назад

    Don't sweat those thumbs down, there trolls. Keep them coming.

  • @fukieyou123
    @fukieyou123 10 лет назад

    3600 to 1 micro seconds or mili seconds?? because u said micro....

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

    you really was able not to chop your arm...lucky guy....

  • @InspireCNC
    @InspireCNC 9 лет назад

    i hooked up the pul+5 dir+ 5 to my 5v pin on my arduino, set up pul- to pin 9 and dir- to pin 8 like the directions, dc +/- goes to my dc power supply, and the motor hook up is correct. i wrote the arduino program to set pin 9 on high for 1000 miliseconds, then to turn off for 1000 inside of a loop. my motor wont turn though, it will hesitate for a fraction of a second, then does the delay that my program wrote, then hesitates again. any idea whats wrong?

  • @adisharr
    @adisharr 11 лет назад

    I don't think there's much over your head John ;)

  • @mrx.2233
    @mrx.2233 5 лет назад

    I am really nervous watching you with your arms around that wheel. You may loose you arms in the process. Reaching over a steel plate while rotating is dangerous. Just saying.

  • @AnwarAlfaqeehAlhusseini
    @AnwarAlfaqeehAlhusseini 7 лет назад

    hi
    do you know what size and type of motor to rotate the rotary table on bearing its 200 kg
    ruclips.net/video/NeKkZxZHONM/видео.html
    something like this
    thanks

  • @ahmedessam-hi8dz
    @ahmedessam-hi8dz 8 лет назад

    please i need to ask many questions about this code i get the accelstepper library and i started to edit on it to make manually control the project like this project exactly by using 2 switches to forward and reverse the direction and then i faced many problems :
    ..........
    first one : the 4 control pins of stepper driver in 2,3,4,5 at arduino i connected it like the code describtion when i tryed to make pin 2 or 3 for step and direction HIGH or LOW to forward and reverse the direction it doesn't work with me so i changed the arrange of the pins and then it works with me with those function :
    digitalWrite(3,HIGH);
    digitalWrite(4,HIGH);
    ...........
    second one: the main problem for me :
    i want to forward and reverse the direction with acceleration and decceleration at the begining of movment and the end of it in any direction and i tryed to put all the possible functions in this code and library but i didn't succeed to do it cause those to functions :
    stepper.setAcceleration(....);
    stepper.setSpeed(....);
    didn't work 2gether at all i hope you can help me my project is like your project exactly with the same components and this the code which i need to help me on it to add acceleration and deccelration with the manual movment by 2 swithes :
    ...........
    #include
    int sw=9;
    int sw1=11;
    int k;
    int h;
    AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5
    void setup()
    {
    pinMode(sw, INPUT);
    pinMode(sw1, INPUT);
    stepper.setMaxSpeed(9000);
    stepper.setAcceleration(1000);
    stepper.setSpeed(8000);
    }
    void loop()
    {
    h=digitalRead(sw);
    k=digitalRead(sw1);
    if(h == LOW)
    {
    stepper.runSpeed();
    digitalWrite(3,HIGH);
    }
    if(k == LOW)
    {
    stepper.runSpeed();
    digitalWrite(4,HIGH);
    }
    }

    • @ahmedessam-hi8dz
      @ahmedessam-hi8dz 8 лет назад

      or can i make acceleration and decceleration with this code which is very similler to your first code :
      int s1=2;
      int s2=4;
      int w1;
      int w2;
      int val;
      void setup() {
      // put your setup code here, to run once:
      pinMode(2, INPUT);
      pinMode(4, INPUT);
      pinMode(8, OUTPUT); //direction pin
      pinMode(9, OUTPUT); //step pin
      digitalWrite(9, LOW);
      val=200;
      }
      void loop() {
      // put your main code here, to run repeatedly:
      w1=digitalRead(s1);
      w2=digitalRead(s2);
      if(w1 == LOW)
      {
      digitalWrite(8,HIGH);
      digitalWrite(9, LOW);
      delayMicroseconds(val);
      digitalWrite(9, HIGH);
      delayMicroseconds(val);
      }
      if(w2 == LOW)
      {
      digitalWrite(8,LOW);
      digitalWrite(9, LOW);
      delayMicroseconds(val);
      digitalWrite(9, HIGH);
      delayMicroseconds(val);
      }
      }

    • @profbob23615
      @profbob23615 7 лет назад

      You can probably get better help on this by asking your questions on the Arduino forum.