Hi all,
Started looking back at TinyG2 (g2core) for using with an Arduino Due + several A4988 stepper drivers. All just on a breadboard at the moment, while I get the hang of concepts. ;)
I'm able to compile and flash the Due using edge branch git repo code without issue. Using CentOS 7 x64 if that helps.
As a first go, just blindly following the instructions on the g2 wiki page for compiling I used the make CONFIG=TestV9 command, then flashed the .bin to the board.
Using the "g2" nodeJS cli, I'm then able to connect to /dev/ttyACM1 and feed it G-Code. The responses back (in JSON, ugh) seem to indicate that it would be moving motors if things were hooked up. So, seems like a win to that point.
g2# G0 X10 Y10 Z10
Pos: X=1.97 Y=1.97 Z=1.97 A=0.00 Vel:1732.05 (Running)
Pos: X=6.13 Y=6.13 Z=6.13 A=0.00 Vel:1732.05 (Running)
Pos: X=9.85 Y=9.85 Z=9.85 A=0.00 Vel:619.25 (Running)
Pos: X=10.00 Y=10.00 Z=10.00 A=0.00 Vel:0.00 (Stop)
Pos: X=10.00 Y=10.00 Z=10.00 A=0.00 Vel:0.00 (Stop)
{"line":0,"posx":10,"posy":10,"posz":10,"feed":0,"vel":0,"momo":0,"stat":3}
Trying the same thing through the "CNCjs" web based UI, that also seems to work. Jogging around using the direction arrows steps the virtual pointer. Again, things seems on track.
However, trying to then hook up real steppers to the Due board is failing badly for me so far.
Trying with just a single stepper, and (after reading further on the wiki) I've recompiled using make PLATFORM=DUE BOARD=gShield, then flashed the result to the Due.
However, neither g2 nor CNCjs seems to want to "do anything" now. They'll both connect to /dev/ttyACM1 happily... but feeding (the exact same) G-Code to g2 gives a response like it's not moving anything.
g2# G0 X10 Y10 Z10
Pos: X=0.00 Y=0.00 Z=0.00 A=0.00 Vel:0.00 (Stop)
{"line":0,"posx":0,"posy":0,"posz":0,"posa":0,"feed":20,"vel":0,"unit":1,"coor":1,"dist":0,"admo":1,"frmo":1,"momo":0,"stat":3}
Same for CNCjs.
At this point I'm just super frustrated, as it's not making any sense whatsoever. I'm using the exact same commands now that were "working" with the TestV9 config, except now that the flash is for the "correct" board type... they're not working, and nothing seems to indicate WTF is wrong.
Any hints? Kind of guessing it'll be something super simple, but I'm just not seeing it.
Regards,
Justin Clift