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.