Arduino Due- gShield-Tinyg2-Shapeoko2 settings

Home Forums TinyG TinyG Support Arduino Due- gShield-Tinyg2-Shapeoko2 settings

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7443
    nafets77
    Member

    Hi,

    New guy here.

    I run a setup as mentioned in topic, but I have a hard time understanding the concept of using binary files.
    Have used Arduino Uno with gShield for a while, so I’m familiar with hex files and flasing these.
    Did not have any luck flashing the binary file from http://synthetos.github.io/g2/.Doing this made it impossible to get the usb connection functioning.
    I compiled my own file with Atmel studio 6.2 by following the instruction here https://github.com/synthetos/g2/wiki/Compiling-G2-on-Windows-%28Atmel-Studio-6.2%29, cloning the Github/G2 desktop with edge branch. In the settings folder I removed all files except the shapeoko2 file, which I then had to rename setting_shapeoko2, before I could compiled the bin. file without error.

    I still seem to have the original settings_default.h file from the edge branch after flashing the new file using cmd terminal with following command: bossac.exe –port=COM”my port”(5) -U false -i -e -w -v -b C:\”my local directory”\gShield.bin -R.

    I would very much appreciate if anyone with the knowledge could take the time to explain how I go about getting the proper file flashed, and/or how I can change the file. Can I do this in the serial port console of Chilipeppr?

    FYI I have got the machine up and running by giving the motor and axis parameters in Chilipeppr.

    Brgds
    Stefan

    #7445
    cmcgrath5035
    Moderator

    Greetings, Stefan
    The binaries available at

    are very old.
    I suggest you only build your own, as you are attempting.
    In G2 space, Edge is much more ‘edgy’ than in tinyG.
    I might suggest you try Master initially, it will build $fb=71.04 at the moment, I believe.
    If that does not work for you, then try Edge.

    You will need to be both comfortable and proficient with building binaries to use G2 for now, as you are doing.There is continuous change and new development going on, and pre-built binaries are not likely to be available.
    Here are two links you should review, probably several times – lots of details.
    Start with the Readme.md on gitHub at

    Then read this, or all the wiki items so you know where to look for info.

    There is way too much detail to address your specific question, I’ll leave it to you to carefully review the above.
    But here is a hint – don’t delete or modify any files in your cloned gitHub directory – that might cause the build process to fail.
    I have not run a build in AS6.2, have done my builds in Linux, where the command would be:
    make PLATFORM=gShield SETTINGS_FILE=settings_shapeoko375.h
    You will need to find the appropriate fields in AS6.2 to specify the PLATFORM= and the SETTINGS_FILE =

    Once built and flashed, yes, you can make parameter updates either from the CLI widget in CP or using the configuretinyG widget in the tinyG widget.
    Once you know what your custom setting for your machine are, you might want to open the file ‘settings_shapeoko375.h’ in the github cloned directory, make your modifications, then save the file in the settings directory as settings_shapeoko375_stefan.h.
    Then rebuild the binary withSETTINGS_FILE=settings_shapeoko375_stefan.h

    After flashing, any reset of the DUE will have your personalized settings as the default.

    If you try Master (fb=71.04), run Chilipeppr with

    There is a bug in Master that does not initiate well with CP. If you go right to Edge, the bug appears fixed and you can run

    • This reply was modified 9 years, 8 months ago by cmcgrath5035.
    • This reply was modified 9 years, 8 months ago by cmcgrath5035.
    • This reply was modified 9 years, 8 months ago by cmcgrath5035.
    #7477
    nafets77
    Member

    Hi cmcgrath5035,

    Many thanks for your detailed answer.

    I have been reading the G2 and Tinyg wiki many more times, and as you suggested, I gained some more helpful knowledge.
    That said, this newfound knowledge has still not really solved the issues that I’ve had.
    I have compilied my own bin. file, trying with both master and edge branche, making a new custom settings_shapeoko2_”myname”.h file, just doing some minor changes from the original. I pointed to the settings_shapeoko2_”myname”.h in the make file, and compiled based on this.
    Files compiled and flased without problems, but I still have issues running Chilipeppr.

    I can connet to JSON and jog just fine. I can load a file and start running it just fine too, but then the problem starts.
    X- and Y- axis are doing their thing, but Z-axis is just squealing (remember I can jog).
    Have tried four different .nc files, checked settings file, wiring and tried adjusting current, which made no difference.
    When the motor is squealing, I can easily turn it by hand, else it’s locked.

    Any ideas?

    Brgds
    Stefan

    #7480
    cmcgrath5035
    Moderator

    It gets more difficult to troubleshoot now, because CP has so many variations you can run with.

    First, can you post what FW bulild you are running?

    You can jog x, y and z as you report.

    Have you tried commanding Z up and Z down with the Command line (serial port console, lower left in CP.

    [ASSUMES you are in mm mode]
    Set a Zero point with Z axis
    Can you move your Z axis up and down with commands like ?
    G1 Z10 (move up 10 mm)
    G1 Z0 (move back to 0)

    if yes and OK, try
    G1 Z20
    G1 Z0

    Are you sure that your set screws are tight connecting stepper to Z axis threaded rod?

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