Now I have a project to use Arduino to control 3 steppers by Matlab. I have a gshield board purchased from Inventables. I can get Arduino talk to Matlab now, but somehow I have a problem of making gshield talking to matlab. I think I might use the wrong library for the gshield. Is there anyone having knowledge of the gshield?
It said that the gShield (formerly known as grblShield) is a complete hardware solution for Dank’s CNC motion control system called grbl. All the information I found is from the link : grblShield | Synthetos.com
I'm not using any software to control the steppers since we want to use Matlab to control everything. How to know the format of data required?I'm fairly new to this
GRBL is the software that is controlling the stepper motors.
I have not used it but I understand it needs to be given GCode commands to control the motors. I presume there is nothing to prevent Matlab generating or sending GCode - but (again) I have no experience with Matlab.
Of course you could write your own Arduino code to take the place of Grbl.
You can possibly hack directly into the motor driving code in GRBL - although it may be quite
complicated to pick apart the DDA stuff, I haven't looked at the code for a while now.
Feeding it Gcode might be easier (especially if you already know Gcode)
You can always look up the pinout and drive step/direction pins, perhaps using
3 instance of AccelStepper.