Welcome to Our Community

Some features disabled for guests. Register Today.

Nema 17 with aTB6600 driver

Discussion in 'General Talk' started by Johannes1969, Apr 16, 2018.

  1. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi there, I am using a nema17 stepper motor with aTB6600 driver and universal g-code sender on Arduino with GRBL code. My cutting speed is to slow on my axis. I played around with accel and max settings but is still slow. jogging is quicker and the cutting speed is a bit quicker but still to slow.
    Can someone please help
     
    Agung Dwi susilo likes this.
  2. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    you cut speed is set in your cam software.. post your grbl settings here and an example of your gcode, most times accel is the reason for slower than expected results.
    belts or screws? if belts what size pulley, if screws what type screw?
     
  3. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary

    Thank you very much for your reply. Please see details below.

    Pulley:
    3D Printer GT2 Timing Belt and Pulleys 20 Teeth 5mm Shaft-Reprap Prusa Makerbot

    GRBL Settings:

    $0=10 (step pulse, usec)
    $1=25 (step idle delay, msec)
    $2=0 (step port invert mask:00000000)
    $3=0 (dir port invert mask:00000000)
    $4=0 (step enable invert, bool)
    $5=0 (limit pins invert, bool)
    $6=0 (probe pin invert, bool)
    $10=3 (status report mask:00000011)
    $11=1.000 (junction deviation, mm)
    $12=0.002 (arc tolerance, mm)
    $13=0 (report inches, bool)
    $20=0 (soft limits, bool)
    $21=0 (hard limits, bool)
    $22=0 (homing cycle, bool)
    $23=0 (homing dir invert mask:00000000)
    $24=50.000 (homing feed, mm/min)
    $25=500.000 (homing seek, mm/min)
    $26=250 (homing debounce, msec)
    $27=1.000 (homing pull-off, mm)
    $100=7.840 (x, step/mm)
    $101=7.840 (y, step/mm)
    $102=7.840 (z, step/mm)
    $110=15000.000 (x max rate, mm/min)
    $111=15000.000 (y max rate, mm/min)
    $112=15000.000 (z max rate, mm/min)
    $120=3000.000 (x accel, mm/sec^2)
    $121=3000.000 (y accel, mm/sec^2)
    $122=3000.000 (z accel, mm/sec^2)
    $130=200.000 (x max travel, mm)
    $131=200.000 (y max travel, mm)
    $132=200.000 (z max travel, mm)

    G-Code

    ( Made using CamBam - CamBam CNC Software )
    ( A7 Corsair Ver 8 3/21/2017 8:12:11 PM )
    ( T1 : 0.01 )
    G21 G90 G64 G40
    G0 Z0.0
    ( T1 : 0.01 )
    T1 M6
    ( Profile1 )
    G17
    M3 S1000
    G0 X19.4737 Y64.8361
    G1 F1000.0 Z-0.01
    G1 F1200.0 X53.4262 Y65.2006
    G1 X53.673 Y42.2151
    G1 X19.7204 Y41.8506
    G1 X19.4737 Y64.8361
    ( Profile2 )
    S1000
    G0 Z0.0
    G0 X16.9608 Y5.3362
    G1 F1000.0 Z-0.01
    G1 F1200.0 X57.867 Y5.8482
    G3 X57.8704 Y5.8496 I-0.0001 J0.005
    G1 X66.9398 Y14.4543
    G3 X66.9414 Y14.458 I-0.0034 J0.0036
    G1 X66.1898 Y53.1684
    G3 X66.1897 Y53.1689 I-0.005 J-0.0001
    G3 X58.9698 Y83.5436 I-155.2382 J-20.8541
    G3 X37.7134 Y101.5755 I-24.3148 J-7.118
    G3 X37.7078 Y101.5705 I-0.0006 J-0.005
    G1 X37.7818 Y95.576
    G1 X34.7897 Y95.5438
    G1 X34.718 Y101.5384
    G3 X34.7123 Y101.5433 I-0.005 J-0.0001
    G3 X13.9139 Y82.9797 I3.6972 J-25.0751
    G3 X7.4565 Y52.4339 I149.254 J-47.5082
    G3 X7.4564 Y52.4333 I0.005 J-0.0005
    G1 X7.6739 Y13.7162
    G3 X7.6755 Y13.7125 I0.005 J0.0
    G1 X16.9574 Y5.3375
    G3 X16.9608 Y5.3362 I0.0033 J0.0037
    G0 Z0.0
    M5
    M30
     
  4. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    ok so you have your grbl setting set screaming fast, but the F speed in your gcode is F1000 for Z and F1200mm/min X and Y
    i'm not sure why you have 7.84 steps per mm? 20 teeth x 2mm should be 40mm for pulley circumference, so 200/40 is 5 steps per mm at no mirco steps, i would think you would want to use 1/8 microsteps to make motion smooth so that would make it 1600/40 = 40 steps/mm some adjustment will be needed to make travel accurate, typical.
    hope this helps
     
    #4 Gary Caruso, Apr 16, 2018
    Last edited: Apr 16, 2018
    GrayUK likes this.
  5. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary
    r
    Thank you very much it work much better now.

    I am very new with this setup. Can you please tell me how to turn my laser on and off and what pin I must use?

    Also Hard limit switches I tried to get it configured but does not work properly. I got GRBL Ver 0.9

    I used pin 9, 10 and 12 for the limit switches.
     
  6. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    If you were to update to Grbl V1.1 you will have better Laser mode support
    gnea/grbl

    when you say the limits are not working what is the behavior?
     
    #6 Gary Caruso, Apr 16, 2018
    Last edited: Apr 16, 2018
  7. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    I downloaded the grbl 1.1, do I just enable the $32=0 Laser mode, boolean to get the laser working and do you perhaps know which pin on the arduino do I need to use?
     
  8. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    D11 is the PWM output 0-5V
     
  9. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary, will you recommend soft limits or hard limits?
     
  10. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    I don't use either but its up to you. I use home switches some times like when it's a more complex project but for simple quick to run cuts i just zero at the corner of the work piece and go.
    Make sure to read the GRBL wiki descriptions it explains things well for the most part.
     
  11. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Gary thank you very much for your help. I will try the hard limits, If I can't get it working can I contact you again?
     
  12. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    Yep, I’ll be here
    Cheers
     
  13. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary I am trying to setup homing but it does not work, when I run $H noting happens motors are not moving.

    then after a while I get the following messages:

    "Error while starting file stream: file stream is disabled when GRBL is in the alarm state"

    " Error while processing response an unexpected command was completed by the controller"

    Next message:

    "(Alarm 9) homing fail. Could not find limit switch within Search distances. try increasing max travel."

    $0=10
    $1=25
    $2=0
    $3=0
    $4=0
    $5=0
    $6=0
    $10=3
    $11=0.010
    $12=0.002
    $13=0
    $20=0
    $21=0
    $22=1
    $23=1
    $24=25.000
    $25=500.000
    $26=250
    $27=1.000
    $30=1000
    $31=0
    $32=1
    $100=40.000
    $101=40.000
    $102=40.000
    $110=8000.000
    $111=8000.000
    $112=8000.000
    $120=4000.000
    $121=4000.000
    $122=4000.000
    $130=200.000
    $131=200.000
    $132=200.000
    ok
    [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
    ok
    >>> $X
    [MSG:Caution: Unlocked]
    ok
    >>> $H
     
  14. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    does it make any noise? do your switches work? you should be able to see the inputs somewhere what are you using, UGS? is your jogging good now? your acceleration is still very high i would try 500 for now. and increase it gradually once you get everything working.
     
  15. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary
    My jogging works fine, movements are good.
    No motor movement when I do $H for homing.
    When I select verbose output and press the x axis switch it does show that it is working in verbose. that is the same for X and Y.
    I am not using Z as it is a laser machine I am building.
     
  16. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary I figured out what is wrong.
    Because I am building a laser cutter I do not use Z Axis that is why nothing happens as noting is connected for Z - Axis.

    Is there a way to disable Z axis so homing is not trying to home Z -Axis?
     
  17. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
  18. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Thanks Gary I will give it a go
    Thanks for all your help
     
  19. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary, sorry to bother you again. Can you please help? I use xloader to load the hex file onto my arduino. Can you please tell me which config file do i use? Or where can i find the correct config.h file. Or how do i load a config.h file because when i laod the hex file i can see a config file.
     
  20. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    I've never done this, but i found a thread where they discuss changing the PWM settings in config , should help.
    thread here
     
  21. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary

    Thank you very much for your help. I tried everything but still can't disable Homing for Z-Axis I am just going to add a small motor with a micro switch so I can do the homing.

    I would like my machine to home at the end of every cut but I tried to add the $H to my g-code but cant get it to run at the end of the cut. Can you please tell me what command I have to add in order for the $H command to work. I tried G0 $H but no luck.
     
  22. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    Did you try "G28 X Y"
     
  23. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary
    Thank you very much for your help I will give it a go.
    Can you also hep me to change the direction of my motor when I do homing?
    Also can you please tell me where do I set the homing speed?
     
  24. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    Sure, the setting for home direction is $22
    use this chart do tell it what direction to go so it would be something like $22=4 .. this would make the Z go in a different direction than it was
    upload_2018-4-23_15-0-46.png
    Homing speed, play with these, $24 and $25
    upload_2018-4-23_15-2-5.png
     
  25. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi, Thank you very much this is great.

    Do you know where do I set the jogging speed, my jogging speed is very slow?
     
  26. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    The jog speed is set in your controller software, what are you using?
     
  27. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary, I am not sure what you mean by controller but I am using a nema17 stepper motor with aTB6600 driver and universal g-code Platform on Arduino with GRBL code.
     
  28. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    right, so UGS Platform is your control software.. right in the jog window you can set the speed (feed rate)
    I found that when using UGS i had to play with the windows key repeat settings and the step size to get smooth jogging.
    There is a happy point where holding the button makes the machine jog smooth and stop when the button is released.
    upload_2018-4-24_8-46-59.png

    the key repeat is in keyboard properties, this is windows 7 so it might look different than yours..
    upload_2018-4-24_8-50-18.png
     
  29. Johannes1969

    Johannes1969 Well-Known
    Builder

    Joined:
    Oct 24, 2016
    Messages:
    25
    Likes Received:
    2
    Hi Gary
    Hopefully this is the last question, you were great thank you very much for all your help.

    I attached a picture, when I do homing all axis go to -1 but the X-Axis goes to -199.00 this is after I change the direction. Is there a way to reset it so when I do Homing all the axis go to -1 and not -199.00. Please see attached picture. I think it is the machine coordinates.
     

    Attached Files:

    • UGS.jpg
      UGS.jpg
      File size:
      74.5 KB
      Views:
      1
  30. Gary Caruso

    Gary Caruso OpenBuilds Team
    Staff Member Moderator Builder

    Joined:
    May 19, 2016
    Messages:
    546
    Likes Received:
    206
    Where are you homing to? Lower left corner?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice