Trouble Shooting Setup

Home Forums TinyG TinyG Support Trouble Shooting Setup

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #11878
    cheshirecnc
    Participant

    I posted yesterday with problems with stepper motor making noise but not moving. I did manage to solve that problem.

    I have a Shapeoko 3 from Sparkfun. I could never get it to work with Limit or Homing switches. It was suggested to me to switch to Tinyg. I have things very nearly working. Can move XY and Z. I can pass the Test=1 (Smoke) and Test=2 (Homing) But on Test 3 (Squares) The Z axis will hit the upper limit switch and shut down the Machine. I am including a dropbox link to a folder with my settings and the output from the test. Thanks in advance for your help.

    https://www.dropbox.com/sh/ub9sw5y471p0c5q/AADvx8F3PmiPuVLAHOoH4kIBa?dl=0

    #11879
    cmcgrath5035
    Moderator

    Helpful way to communicate, but unfortunately the upper half of the $$ parameter dump is missing from the file.
    Missing from this info are the Z axis settings.
    By FW design, the level at top of Z , the Z limit switch, is Z=0 and all Z motion should be negative from there.
    My Guess is that your Z zero is not set right ore the Zmax value is >0 ?
    You need to determine the actual range of Z motion f.or your setup, then set $zmn and $zmx accordingly

    See if you can move a full $$ dump to the dropbox

    #11880
    cheshirecnc
    Participant

    Hello,

    Sorry, I thought it was there. I just put another file with the dump in it. I had set Z max to a positive number. I changed it to a negative number however the test still fails.

    #11881
    cmcgrath5035
    Moderator

    If you are homing the machine before you run tests to set the 0,0,0 point,
    then $ztn should be -32 and $ztm should be 0.0

    I am off to find the Gcode for Test 3, Squares, to see what it specify’s for maximum z level. Have never run it myself.

    Note that $ztn and $ztm really only matter if you use soft limits.
    Since $sl=0, soft limits are off

    Try turning homing and limits off, i.e. $xsn=$xsm=$ysn=$ysm=$zsn=$zsm=0.
    Jog or manually move your gantry to where you think 0,0,0 should be and hit the tinyG reset, which will make that location 0,0,0.
    then run squares.

    Can I assume you have read
    https://github.com/synthetos/tinyg/wiki/Homing-and-Limits-Description-and-Operation
    ? It is not necessarily intuitive, until you have been here for a while

    #11883

    hey man,

    Not an expert, but my guess is your $xSX – Maximum switch mode is set to 3.

    I would keep it set to 3 and try a different “square” test with the retract height lesser that what the Test 3 has….

    #11884
    cheshirecnc
    Participant

    I have read the section on homing and limits. I was very happy to to get the machine to home. I also turned off limits. The test will complete. However it slams the z axis top and bottom several times. It also makes a lot of growing noises allthow it does not seem to be making the belt slip. I also adjusted a lot of other settings suggested on the shapeoko page at TinyG. I will put the new settings in the dropbox folder.

    Is there a way to save and then reload settings into the tinyG or do you have to change or reset by hand.

    I was wondering if you have a hello world Gcode file for tiny G?

    Thanks again for your help.

    https://www.dropbox.com/sh/ub9sw5y471p0c5q/AADvx8F3PmiPuVLAHOoH4kIBa?dl=0

    #11885
    cmcgrath5035
    Moderator

    What method do you use to send Gcode?
    Terminal app, Chilipeppr, cnc.js, etc ?.
    Chilipeppr has a logo file that performs a graphical hello world of sorts

    If you are planning to use Z homing (to top of range), then $ztm = -50 and $ztm = 0 and you need to build you Gcode appropriately.
    Most folks don’t use the Z limit Switch. It can create a lot of confusion for users who run auto level with PCB milling.

    If you command Z axis to move 10mm, does it move just 10mm?

    OK, found it , code is here https://github.com/synthetos/TinyG/blob/master/firmware/tinyg/tests/test_003_squares.h

    Not exactly Gcode, but you can see what is going on.
    It is not compatible with ShapeOKO, attempts to traverse 10,20 and 40mm cubes.
    Code probably pre-dates the shapeoko

    #11886
    cheshirecnc
    Participant

    What is the command to move z 10 mm? I have set up chillipepper. It connects to my Pi json server. I can send $$ command and ge feed back from the tinyG. When I pull down the play sample run. Nothing happens. The image in the browser starts to move but nothing happens on the shapeoko. I did get a message about a tool change but I could not find any control for that.

    #11887
    cheshirecnc
    Participant

    I could also send a file with Coolterm.

    #11888
    cheshirecnc
    Participant

    Hello,

    I watched a tutorial on how to use chilipeppr and I am able to sent the gone to the shapeoko. It still seems like there is something wrong with my z axis. when it moves it moves bam to the top limit. And then Bam to the bottom limit. I would still like to know the command that would move the z axis 10 mm.

    #11889
    cmcgrath5035
    Moderator

    Lets focus on Chilipeppr setup, the one I am most familiar with

    Easiest way to move Z is to use the Jog widget. based on settings, you can move axis up or down with fine or coarse adjustments.

    I think your M4 parameters are OK, $4tr=1.25 is typical but depends on what thread is used on the gantry
    Make sure to reset the tinyG after making parameter changes to make sure the changed parameters are installed.

    Are you using external stepper drivers by chance?

    #11890
    cmcgrath5035
    Moderator

    BTW
    a G0Z10 would move the Z axis to 10mm position in absolute mode, or up 10mm in incremental mode.

    Enter the G0Z10 in the Serial Port Console widget, typically lower left corner of screen

    #11891
    cheshirecnc
    Participant

    Getting closer. I have figured out how to jog with chillyPepper. When I use the jog the z axis seems function as expected. When I enter into the command like a G0Z10 or any other number. Most of the time slams the z axis to the top. And then I have to reset TinyG. Or it slams to the bottom and I have to reset TinyG. Not sure if it is safe to continue? What do you think?

    #11892
    cmcgrath5035
    Moderator

    The Chillipepr Jog widget has a setting for how far to move with each click.
    When you click to make one jog move, you should see a G0Zxx command in the serial port console.
    So if you set jog granularity to 1 mm, then a 1mm jog should show in the Serial Port Console as a G0Z1 command.

    Are you seeing that?

    Do other axes jog accurately?
    Are you sure you stepper motor parameters are correctly entered?

    You issue implies that too many step pulses are being sent to the motor or that the motor is moving too far per step pulse

    #11893
    cmcgrath5035
    Moderator

    Is your Dropbox parameter list still accurate?

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.