Cnc Shield- End switch problem

Results 1 to 11 of 11

Thread: Cnc Shield- End switch problem

  1. #1
    Member carlob's Avatar
    Join Date
    Sep 2022
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Cnc Shield- End switch problem

    Hello everyone,
    i'm on a testing stage on my hardware for a diy cnc mill.
    I'm facing some issues connecting my end-switches to the cnc shield.I have to say that they used to work last week, but now no way to have them working.
    I have cnc shield connected to external driver.
    I attach the cabling and the grbl settings, maybe someone can point me in the right direction.
    And also how can i check with a tester if the end switch pins are ok or damaged?
    Thanks alot and sorry for my bad english:-)
    Carlo

    $0 = 25 (Step pulse time, microseconds)
    $1 = 25 (Step idle delay, milliseconds)
    $2 = 0 (Step pulse invert, mask)
    $3 = 0 (Step direction invert, mask)
    $4 = 0 (Invert step enable pin, boolean)
    $5 = 0 (Invert limit pins, boolean)
    $6 = 0 (Invert probe pin, boolean)
    $10 = 3 (Status report options, mask)
    $11 = 0.010 (Junction deviation, millimeters)
    $12 = 0.002 (Arc tolerance, millimeters)
    $13 = 0 (Report in inches, boolean)
    $20 = 0 (Soft limits enable, boolean)
    $21 = 1 (Hard limits enable, boolean)
    $22 = 1 (Homing cycle enable, boolean)
    $23 = 7 (Homing direction invert, mask)
    $24 = 25.000 (Homing locate feed rate, mm/min)
    $25 = 500.000 (Homing search seek rate, mm/min)
    $26 = 250 (Homing switch debounce delay, milliseconds)
    $27 = 1.000 (Homing switch pull-off distance, millimeters)
    $30 = 1000 (Maximum spindle speed, RPM)
    $31 = 0 (Minimum spindle speed, RPM)
    $32 = 0 (Laser-mode enable, boolean)
    $100 = 250.000 (X-axis travel resolution, step/mm)
    $101 = 250.000 (Y-axis travel resolution, step/mm)
    $102 = 402.000 (Z-axis travel resolution, step/mm)
    $110 = 800.000 (X-axis maximum rate, mm/min)
    $111 = 500.000 (Y-axis maximum rate, mm/min)
    $112 = 800.000 (Z-axis maximum rate, mm/min)
    $120 = 10.000 (X-axis acceleration, mm/sec^2)
    $121 = 10.000 (Y-axis acceleration, mm/sec^2)
    $122 = 10.000 (Z-axis acceleration, mm/sec^2)
    $130 = 200.000 (X-axis maximum travel, millimeters)
    $131 = 200.000 (Y-axis maximum travel, millimeters)
    $132 = 200.000 (Z-axis maximum travel, millimeters)

    Similar Threads:
    Attached Images Attached Images


  2. #2
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    Quote Originally Posted by carlob View Post
    Hello everyone,
    i'm on a testing stage on my hardware for a diy cnc mill.
    I'm facing some issues connecting my end-switches to the cnc shield.I have to say that they used to work last week, but now no way to have them working.
    I have cnc shield connected to external driver.
    I attach the cabling and the grbl settings, maybe someone can point me in the right direction.
    And also how can i check with a tester if the end switch pins are ok or damaged?
    Thanks alot and sorry for my bad english:-)
    Carlo

    $0 = 25 (Step pulse time, microseconds)
    $1 = 25 (Step idle delay, milliseconds)
    $2 = 0 (Step pulse invert, mask)
    $3 = 0 (Step direction invert, mask)
    $4 = 0 (Invert step enable pin, boolean)
    $5 = 0 (Invert limit pins, boolean)
    $6 = 0 (Invert probe pin, boolean)
    $10 = 3 (Status report options, mask)
    $11 = 0.010 (Junction deviation, millimeters)
    $12 = 0.002 (Arc tolerance, millimeters)
    $13 = 0 (Report in inches, boolean)
    $20 = 0 (Soft limits enable, boolean)
    $21 = 1 (Hard limits enable, boolean)
    $22 = 1 (Homing cycle enable, boolean)
    $23 = 7 (Homing direction invert, mask)
    $24 = 25.000 (Homing locate feed rate, mm/min)
    $25 = 500.000 (Homing search seek rate, mm/min)
    $26 = 250 (Homing switch debounce delay, milliseconds)
    $27 = 1.000 (Homing switch pull-off distance, millimeters)
    $30 = 1000 (Maximum spindle speed, RPM)
    $31 = 0 (Minimum spindle speed, RPM)
    $32 = 0 (Laser-mode enable, boolean)
    $100 = 250.000 (X-axis travel resolution, step/mm)
    $101 = 250.000 (Y-axis travel resolution, step/mm)
    $102 = 402.000 (Z-axis travel resolution, step/mm)
    $110 = 800.000 (X-axis maximum rate, mm/min)
    $111 = 500.000 (Y-axis maximum rate, mm/min)
    $112 = 800.000 (Z-axis maximum rate, mm/min)
    $120 = 10.000 (X-axis acceleration, mm/sec^2)
    $121 = 10.000 (Y-axis acceleration, mm/sec^2)
    $122 = 10.000 (Z-axis acceleration, mm/sec^2)
    $130 = 200.000 (X-axis maximum travel, millimeters)
    $131 = 200.000 (Y-axis maximum travel, millimeters)
    $132 = 200.000 (Z-axis maximum travel, millimeters)
    A Cable Shield can only be clamped to a Ground Plane, which is the Metal Cabinet or the Metal panel that everything is mounted on or the Grounded machine frame which would be Ground Bonded to the electrical Cabinet

    A Shield must be clamped where or near the end of the cable

    Attached Images Attached Images
    Mactec54


  3. #3
    Member carlob's Avatar
    Join Date
    Sep 2022
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    Thanks for the reply!
    I did check that and if i get it right one of the two pins, for each end switch on the cnc shield, is the ground.
    In theory if i plug two wires in the x+ pins and make them touch together the end-switch alarm should trig.But nothing append.
    One other weird thing is that when i plug the red wire of the switch to the 5v pin(this should be the way to make the led of the switch working) i can't conect the arduino board to the pc, looks like it goes to block or something.
    I'm waiting for a new cnc shield to check if this one is faulty.
    C.



  4. #4
    Member carlob's Avatar
    Join Date
    Sep 2022
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    *UPDATE*
    In the cnc shield v3.0 the z limitt switch pins are on the SpnEn pin due to a chage on the arduino side.
    If i connect the z limit switch to the SpnEn pins it works as expected, but still not working on other axis.
    Strange bbut maybe is a clue.



  5. #5
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    Quote Originally Posted by carlob View Post
    Thanks for the reply!
    I did check that and if i get it right one of the two pins, for each end switch on the cnc shield, is the ground.
    In theory if i plug two wires in the x+ pins and make them touch together the end-switch alarm should trig.But nothing append.
    One other weird thing is that when i plug the red wire of the switch to the 5v pin(this should be the way to make the led of the switch working) i can't conect the arduino board to the pc, looks like it goes to block or something.
    I'm waiting for a new cnc shield to check if this one is faulty.
    C.
    Sorry I thought you were using a shielded cable, the Arduino shield is very different beast, most likely has failed if it was working

    Mactec54


  6. #6
    Member carlob's Avatar
    Join Date
    Sep 2022
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    After further investigations i found out that those pins on the shield( limit-switch pins x+ x-y+ y- z+ z-) output just 0.3v while the one is workig is near 5v(4.75v), and also checked on the arduino board itself, and there pins 10,11,12 all output low voltage while i suppose they should output 5v.I'm i right?
    Anything i can do apart buy a new one?
    Thanks alot!
    C.



  7. #7
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    Quote Originally Posted by carlob View Post
    After further investigations i found out that those pins on the shield( limit-switch pins x+ x-y+ y- z+ z-) output just 0.3v while the one is workig is near 5v(4.75v), and also checked on the arduino board itself, and there pins 10,11,12 all output low voltage while i suppose they should output 5v.I'm i right?
    Anything i can do apart buy a new one?
    Thanks alot!
    C.
    Yes, they would need to be 5v, is the boards inputs output opto isolated as it would need to be to protect against and switching spikes

    Mactec54


  8. #8
    Member carlob's Avatar
    Join Date
    Sep 2022
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    Hello,
    i have solved this with a new arduio one board, just tested and all end switches works properly, so i think the old arduino board was faulty.
    Can you explain how to protect from spikes?so i won't damage the new one:-)
    The switch is this onne: https://www.amazon.it/GTIWUNG-Fineco...s%2C112&sr=8-9

    Attached to the cnc shield v3.0

    Thanks alot!!



  9. #9
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    Quote Originally Posted by carlob View Post
    Hello,
    i have solved this with a new arduio one board, just tested and all end switches works properly, so i think the old arduino board was faulty.
    Can you explain how to protect from spikes?so i won't damage the new one:-)
    The switch is this onne: https://www.amazon.it/GTIWUNG-Fineco...s%2C112&sr=8-9

    Attached to the cnc shield v3.0

    Thanks alot!!
    You could add an opto isolation board, does the Arduino board have the inputs opto isolated, if not then you would need an opto isolation board

    Mactec54


  10. #10
    Member carlob's Avatar
    Join Date
    Sep 2022
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem



  11. #11
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: Cnc Shield- End switch problem

    Quote Originally Posted by carlob View Post
    I can't open your link it just when to Amazon, with no opto Board, this is what you need for opto isolation or something like it.

    Attached Images Attached Images
    Mactec54


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Cnc Shield- End switch problem

Cnc Shield- End switch problem