Coding for TinyG

Home Forums TinyG TinyG Support Coding for TinyG

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12038
    gerta
    Participant

    I have a TinyG worked into a project where I’m adapting a CNC design for a different application in a research lab. The TinyG delivers wonderful motion control with off-the-shelf G-code software and even just typing in movement commands via CoolTerm.

    For my full project, I need to program coordinated control of the TinyG and an Arduino that controls other components (basically just a series of solenoids). I’m just not clear on how best to tackle this problem. The TinyG documentation indicates the JavaScript g2core-api is the best way to communicate with the TinyG; should I develop a Node.js program to run the TinyG and the Arduino? Is there a straightforward solution that would just use Java instead, since that’s more in my comfort zone (especially for GUI development)?

    I don’t mind getting up to speed in JavaScript or whatever if necessary, nor am I tied to the Arduino if switching to a Raspberry Pi would make life easier. I don’t really have any experience programming for hardware control, so I’m hoping someone here will be able to steer me in the right direction. Thanks.

    #12039
    cmcgrath5035
    Moderator

    I can’t tell the scope of your project, particularly what sort of real time performance you need to achieve. You might want to look at the Chilipepper and CNC.JS projects as examples of how it has been done. Both of those focus on maximizing Gcode delivery performance while monitoring and displaying the return status channel.
    Be aware that the G2core api is optimized for G2core hardware that supppots I/O that is not available in tinyG.

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