Controlling A NEMA 17 Stepper With Arduino CNC Shield (How To & Code)

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • Getting closer to that DIY CNC machine
    ▶▶ Open up the description for the viral vibe. ٩(̾●̮̮̃̾•̃̾)۶ ▼▼▼
    There you go! ☆♫❤
    ┏(-_-)┓┏(-_-)┛┗(-_- )┓
    ▬▬▬▬▬▬▬ notes ▬▬▬▬▬▬▬
    GRBL is definitely a project for later on, but definitely NEAR future! :D
    I think you can also put the stepper to sleep so that it doesn't use power. Don't know how to do that yet though.
    ▬▬▬▬▬▬ vlog playlists ▬▬▬▬▬▬
    2015-2017: goo.gl/ziakRH
    2017: goo.gl/ojaqoJ
    2018: goo.gl/EzcacZ
    ▬▬▬▬▬▬ follow me ▬▬▬▬▬▬
    ► Website: www.chrisviral.at
    ► Instagram: / chrisviral
    ► Facebook: / chrisviral
    ► Twitter: / chrisviral
    ► Add me on Snapchat: Geisterbahn
    ► Main Channel: / chrisviral
    ► All My Channels: www.youtube.co...
    ▬▬▬▬▬▬▬▬ ■ ▬▬▬▬▬▬▬▬
    ~ ~ ~ Thursday ~ ~ ~
    ▼ Recapping my day briefly
    ▼ Talking about GRBL a bit
    ▼ Controlling a NEMA 17 stepper motor with the arduino cnc shield
    ▼ Talking about my first automation plan
    ▼ Explaining how I did it in detail and going through the code
    ▼ Talking about my next plans and calling it a day
    Thanks for watching! :)
    ▬▬▬▬▬▬ used music ▬▬▬▬▬▬
    ▽ Unknown Brain - Inspiration (feat. Aviella) [NCS Release]
    Music provided by NoCopyrightSounds.
    Video: • Unknown Brain - Inspir...
    Free Download / Stream: ncs.io/Inspirat...
    ▽ Morley & Speo - Hope [NCS Release]
    • Morley & Speo - Hope |...
    SoundCloud: / speomusic
    SoundCloud: / romely
    ▽ ChrisViral - The Xiphos Project
    • The Xiphos Project (Of...
    RUclips: / chrisviral
    ▬▬▬▬▬▬▬▬ ■ ▬▬▬▬▬▬▬▬

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

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

    Thank you for the video. finally i found how to control the stepper and its shield through arduino ide. I saw the comments of those people who are asking for the code. JUST COPY PASTE IT FROM THE VIDEO ***! ITS NOT MORE THAN 20 LINES!

    • @ChrisViralVlogs
      @ChrisViralVlogs  4 года назад +4

      Hahaha thank you so much, my faith in humanity got restored 🤣🙌🏻🙌🏻

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

    is there any way i can controll 4 steppers simultaneously in different directions with this?
    i really need help

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

    You don’t need a relay. There’s an enable pin on each driver. Just disable it in the code when you don’t want it drawing power.

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

      Thank you so much haha :)
      By now I know this of course...
      My knowledge back then was very very limited 🤣

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

      @@ChrisViralVlogs video 3 year ago .
      Comment 2 year ago .
      Reply 1 year ago

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

    Hi, I am using this shield to control XYZ but two motors for Z must be controlled with a button to preform one action. while the XY will be controlled with a joystick. the project is working for XY but how can I make it work for Z? (No libraries)

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

    Hi, Great video. Do you know which pins I connect to on the shield when installing an external reset button? Thanks.

  • @First.Last.99
    @First.Last.99 Год назад

    why you didnt build without CNC shield?

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

    Thanks for the insight into cnc board

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

    You shouldn't plug in the stepper driver chips on the board without connecting a stepper to it. At least not the drv8825, but think it's the same with A4988.

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

    ı put my drivers on it .when ı I measure the voltage value on enable pin with a multimeter.I see 5v.but ı did not coded for enable pins to get 5 v .however how to disable this "enable" pin?

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

    hey i have a stepper motor i have connected it to arduino uno r3 with a l298n driver
    but when i catch the shaft the stepper motor stops rotating
    i wonder then how do this stepper motor lift a good load
    is all stepper motors is like this or my stepper has any problem
    i am asking it because i am having a robotic arm project which requires to lift a load of 3 kg
    please replay
    thanks

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

      Well to figure out if your stepper is faulty you should just try another one instead. Also 3kg as a load is kinda undefined, better name a momentum. That you can simply check in the data sheet. Also check if your driver might go to sleep after a command.

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

    How can I control the engines that way using the race switches?
    I already tried it in several ways and it does not work for me.
    Help!!

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

      I'll do another video on this matter in a few days - weeks. But until then you'll probably also have a solution so I'm sorry..

  • @3DPrintedEngineer
    @3DPrintedEngineer 2 года назад

    how do i use multiple steppers at one?

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

    and using career switches as would the code?

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

    Hey I'm using the cnc shield with arduino uno and it all seems to work well. But today there is some problem with the rotation of Y-axis, it only moves in one direction. As you have spend a lot time to study it also you may/may not have encountered with the same problem. But if you could help me through it will be grateful. Your Videos is awesome.

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

      Sounds like your dir-pin isn't connected properly

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

    cómo puedo controlar los motores de esa manera utilizando los interruptores de carrera?
    ya lo intente de varias formas y no me funciona.
    Ayuda!!

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

      Thanks for translating this yourself, usually I need to go over to the translator lol. If I use the translator though it says "career switch = race switch" still don't understand it..

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

      @@ChrisViralVlogs can already solve the problem, your video was also very helpful as there is not much information on how to program the motors with the shield

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

      I made this code to control a single motor with switches (switch) of career
      #define velocidad 2
      int stepper = 8;
      //Driver posicion x
      int pasolineal = 1;
      int direccionx = 5;
      int pasox = 2;
      int estadox = 0;
      //Limit Switchs
      int limitx = 9;
      //int spindle12 = 12;
      void setup() {
      // put your setup code here, to run once:
      pinMode(direccionx, OUTPUT);
      pinMode(pasox, OUTPUT);
      pinMode(stepper, OUTPUT);
      //pinMode(spindle12, OUTPUT);
      pinMode(limitx, INPUT);
      }
      void loop() {
      int c = 1;
      estadox = digitalRead(limitx);
      // put your main code here, to run repeatedly:
      digitalWrite(stepper, HIGH);
      // digitalWrite(spindle12, LOW);
      if(estadox == LOW && c == 1){
      digitalWrite(stepper, LOW);
      digitalWrite(direccionx, LOW);
      for(int i = 0; i

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

      Thanks for sharing 🙌🏻

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

    Nice video, Do you have the same code for the arduino nano with the shield?

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

    Anyone got the a axis the red socket working?

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

    Can you provide me code to run sgepper with cnc

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

      I will soon do a project that involves ESP32 and GRBL, so stay tuned for that. The mentioned videos will be added to the playlists below when they're done:
      Slider playlist:
      ruclips.net/p/PLvRVZ-0CapEOqkCfPJbvRjg0K4j0M0-lp
      CNC playlist:
      ruclips.net/p/PLvRVZ-0CapENpN-kzgRTkNW7ioLajG_YE

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

    Amazing .. thanx for uploading it buddy .. i need to work on it for my future project so it was basic help :)

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

    Thanks for the video, but why aren't you using the arduino Stepper library?

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

      If I remember this correctly I didn't know about libraries back then 🤣

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

    This was pretty cool and I appreciate it but yours is the only code I can't seem to get to work with that shield lol. I hate GRBL simply for it's E-axis limitations so now I'm working on an interpreter that doesn't exclude an axis.

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

    A pastebin for the code would have been great.

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

      Noted.. Since I get so many comments like this I'll do it next time haha

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

    I agree, the video is not clear enough to copy the code. Can someone please place the code in this comments section? it will save many peoples time trying to re-write it.

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

    kindly drop the code forthis ..

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

      Code can be seen at 0:00
      Sorry I don't have the code any longer ..

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

    Why you Just don´t copy or Link the the code?? :D Thanks anyway

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

    Can you provide me the code please ?

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

      Code can be seen at 0:00
      Sorry I don't have the code any longer ..

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

    Stepper moter x y note working

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

    No Code = No Sub.

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

    give me your code!

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

    you spend 8 time?

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

    hello where can i find the code

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

      0:00 my man. Type it yourself, this will make you learn.

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

      well i have spend for three weeks trying to to some thing
      but always error

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

      Sounds like you need more training, so keep on typing.

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

      ​@@ChrisViralVlogs it would be nice if you would provide the code because I have a different project I'm working on other then learning to code/type shit out, but I will take the time to type it out. thanks for the video, won't be subbing though if you aren't nice enough to give out some simple code :/
      Edit: you can get code for the shield from ACONCAGUASCI, google search 'ARDUINO CNC SHIELD CONTROL STEPPER MOTOR WITH DRV8825
      '

    • @Florian_-jk8bu
      @Florian_-jk8bu 4 года назад

      @@ChrisViralVlogs In the viedeo u say that u spent "a goddamn time" SEARCHING for the code which means u didn´t wrote it too. But now u say that he has to write it himself. Nice how to treat ur subscribers... :/

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

    you can get code for the shield from ACONCAGUASCI, google search 'ARDUINO CNC SHIELD CONTROL STEPPER MOTOR WITH DRV8825
    ' no thanks to this guy! you may need to change the delayTime/stps
    also, you if your stepper controller boards are getting hot turn the pot counter-clockwise, it will turn the current to the motors down.

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

    ergh. this gave me aids. cut after cut. bleeding out

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

      RIP stranger

    • @0m3rtaxiii13
      @0m3rtaxiii13 5 лет назад

      ChrisViral Vlogs lol! Touché. I survived though. Immortal and such. Blood of kings and all that. No man can be my equal and what what. Being taken to the ruler of you all and stuff.
      For real though, checked a few of your other vids. Good, decent, fun stuff. I dunno why but the cuts in this one just.... I dunno. Anyway. Well taken man! I’ll be back!!

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

    not enough clear. Scam

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

      I dont see how this is a scam

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

      well not much a scam but misleading title