Config Setup

Home Forums DIY Sand Table Config Setup

Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #816
    dfronek
    Participant

    Hello All,

    I have been reading up on the this and robs sand table project for some time and have decided to build a table myself. I have built the 100mm arm version with A4988 drivers and 1/16 stepping, the micro is the Esp 32 Huzzah dev board. I have discreetly wired the steppers to the esp and have confirmed that both motors are being controlled. As of now I am using the SandTableScaraPiHat2 config. The two issues/questions i have right now is about the config. Right now the enable pin (pin 4) does not appear to be going low and activating the motors. If I force the enable pin low all the time the steppers are driven using the web UI. Is there something wrong with pin 4 in the config? My other question is how many steps per rotation should I set? the default states 9600 but I figured that with 200 steps per rotation and 1/16 stepping i should put 3200. This results in an odd motion that does not seem to match the distances it says it should be going.

    Curious what other people did.

    hope to hear back, this project is awesome πŸ™‚

    #821
    RickG
    Participant

    Try using SandTableScaraMatt. The pi hat is for a Raspberry pi.

    #827
    HendrikV22
    Participant

    Hi All,

    So, I believe this falls under the Config section as I’m having challenges with drawing patterns and .the files….

    I tried to create a board explaining my challenges with links directing to Dropbox but I keep on getting the “This topic is pending moderations” after posting…. and after some while… “This Page doesn’t exist” … which is Weird….

    So, third try without any links….

    The sand table is finally up and running and drawing some patterns… well…. weird patterns…. The lines doesn’t conform to any possible shape applicable to the corresponding pattern being drawn (random zig-zag lines when a circle is expected).

    I tried numerous patterns downloaded from the web (the files) however, it seems that the program is reading the code wrong?

    The pattern it draws is random lines that don’t make sense… No neat or formal pattern at all…

    The ONLY pattern I could find that is working on the table is only ONE of the Spiral patterns on the Juggers website called “Spiral 4”

    This proves that the bot can read a pattern.

    Does anyone else experience the same issue? Or, does anyone have a pattern I could try that they know is working on their setup? My email address is hendrik.venter1@gmail.com

    I have uploaded all of the patterns I have multiple patterns loaded onto a dropbox folder which I would like to share with the group for testing but it seems that the dropbox links posted on the thread cause hiccups…

    Here is a manual paste of the link to the dropbox folder:

    Please really looking for assistance here.

    Kind Regards

    #829
    dfronek
    Participant

    Your steppers might be wired to the wrong motor drivers since the upper and lower arms are driven at different angles to control the motion of the arm. Having them flipped might explain the nonsensical movement.

    #830
    dfronek
    Participant

    So I actually just solved a very similar problem to what you are describing. Turns out I needed to swap the motor polarity on one motor and leave the other untouched. This means moving the pin connected to A1 and swapping it with A2 and the same for coil B. I just tried several combinations of swapping polarity and changing the motor between steppers until the pattern I was running looked right.

    #831
    HendrikV22
    Participant

    Good evening dfronek,

    Thank you for the prompt response. It is appreciated.

    I’m not sure I’m following your last recommendation… Are you referring to the Drive M1A and M1B ports (referring to the electrical diagram shown on the DIY Kinetic Art table form of MattG) to be swopped?

    So, I have tried to swop the wire terminals at the drive ports M1A and M1B as well as M2A and M2B but it seems like it is not working.

    At the moment I can only draw 1 partial pattern and that is the pattern by Juggers website called β€œSpiral 4”. It starts with the spiral and is drawing it really nicely, but as soon as it comes to the end it buggers up the whole pattern.

    With other patterns, it doesn’t even remotely resemble the patterns when it draws. I’m struggling to upload photos to this form as when I use dropbox links the form doesn’t want to post it…

    Will it be possible (if you are willing) to send me a mail to my pvt email address hendrik.venter1@gmail.com so that I can share photos of what my bot is currently drawing and maybe share a pattern you have that works to see if my bot can draw the same pattern?

    Kind Regards

    #832
    dfronek
    Participant

    Sorry for the confusion Hendrik, referring to the schematic I simply flipped the header 180 degrees, so the pin connected to M1B is now connected to M2B, and the pin connected to M1A is now connected to M2A. This just inverts the direction one of the steppers is going. This combined with trial and error of swapping what motor each stepper driver was controlling solved my issue. Also depending on what version of the arm you are using they may have different lengths from what is in the configuration file. This can be changed by altering the config option “maxval” to reflect the upper and lower arm length in mm. There are two maxval config options, one for the upper and one for the lower arm. It appears that you are using the TMC2100 stepper drivers and I assume you have not used the jumpers on the board to change the drive configuration. changing these jumpers will alter the steps per rotation configuration and could also impact your arms’ movement.

    #979
    HendrikV22
    Participant

    Hi Matt,

    Can you please indicate to me how the stepsPerRot and the unitsPerRot are being calculated?

    I’ve got two sets of boards, one with TMC2208 drivers and the other with TMC2100 Drivers.

    I’m still struggling with the bot not being able to dra patterns. The only pattern that is working is spiral from center outwards…. I’m. Not getting sandify patterns nor other files downloaded from web to be drawn….

    Can you please assist?

    #985
    HendrikV22
    Participant

    Hi @Matt G,

    any possible assistnace with the above?

    Really looking forward to some assistance as I’m struggling to sort it out… Currently the table is no use for me other than a standard table if it cannot draw paterns… a bit frustrating…

    Looking forward to some assistance from anyone that can assist.

    Kind Regards

    #990
    geri
    Participant

    hello hendrikV22 i had the same problem now my table worked fine for a long time except for the break πŸ™
    I tried to change the fw but without success.

    Suddenly my table moves in a slanted pattern, so I reloaded the fw and copied the config code to Matt’s site and added it to the cncUI, adjusted it a bit and it worked again

    {“robotType”:”SandTableScaraMatt”,”cmdsAtStart”:””,”webui”:”SandUI”,”evaluators”:{“thrContinue”:0},”robotGeom”:{“model”:”SingleArmScara”,”homing”:{“homingSeq”:”FR10;A+100000N;B-100000;#;A+50000n;B-50000;#;B+10000N;#;B+200n;#;A=h;B=h;$”,”maxHomingSecs”:120},”blockDistanceMM”:1,”allowOutOfBounds”:0,”stepEnablePin”:”12″,”stepEnLev”:0,”stepDisableSecs”:10,”axis0″:{“maxSpeed”:9,”maxAcc”:50,”maxRPM”:2,”stepsPerRot”:9600,”unitsPerRot”:628.318,”maxVal”:185,”stepPin”:”14″,”dirnPin”:”32″,”endStop0″:{“sensePin”:”36″,”actLvl”:0,”inputType”:”INPUT_PULLUP”}},”axis1″:{“maxSpeed”:9,”maxAcc”:50,”stepsPerRot”:9600,”unitsPerRot”:628.318,”maxRPM”:2,”maxVal”:185,”stepPin”:”27″,”dirnPin”:”15″,”endStop0″:{“sensePin”:”39″,”actLvl”:0,”inputType”:”INPUT_PULLUP”}}},”fileManager”:{“spiffsEnabled”:1,”spiffsFormatIfCorrupt”:1,”sdEnabled”:1,”sdMOSI”:”18″,”sdMISO”:”19″,”sdCLK”:”5″,”sdCS”:”21″},”wifiLed”:{“hwPin”:”14″,”onLevel”:1,”onMs”:200,”shortOffMs”:200,”longOffMs”:750},”ledStrip”:{“ledPin”:”4″,”sensorPin”:”34″}}

    good luck Geri

    #991
    geri
    Participant

    hello hendrikV22

    problem recurred πŸ™ so again, everything disassembled and pcb examined closely and found bad solder joints, re-soldered then tested for several hours and it works. I think that the problem with the solder joint was caused by the heat of the drivers. I hope you you’re lucky lg Geri

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