Arduino Due / gShield /g2Core -- No motion

As noted in a prior post, I build a Lowrider v2. I was able to get up and running with Grbl running on an Arduino Uno w/ gShield v5. I also have an Arduino Due which I flashed with g2Core v101.03… flash went well, I have the gShield wired in with a 24V power supply. I am using CNCjs running on a Raspberry Pi 3 B+. The controller can be configured via console, and responds to jog commands as if motors are moving, but there is no motion. I found many posts about having to enable the axes via $xam=1, $yam=1, etc… but that didn’t help. I also turn Power Management and Power Levels on/off/sideways/etc. I also tried to jump the “m3enab” pin to ground, and then 3.3v, thinking it may have a physical enable requirement. In addition, I tried running CNCjs on my laptop, and also tried to use Chillipeppr. Nada.

No matter what I do, I can’t get motion. I have posted to Synthetos website, but I don’t think they are very active. I’m hoping someone here has a few ideas on what to try next.

Thanks!

Are the motors stopped? Do they hold their position? Check them when idle and again while trying to jog. If they are never held, it maybe a problem with the enable signal. If they are, then maybe a problem with the step signals. There is a configuration option in grbl for reversing the enable signal. $1 or something.

Motors are stopped… no torque output at all… I can freely move all motors. I’ll check to see if there are any additional enable signal options and report back. Any idea where else I can go to get help with this setup? It seems like there aren’t many running g2core with the Due based on the dearth of posts in a Google search!

When I issue a “$$” command in the console, below are all the config options that I am presented with. Perhaps something there will spark an idea?

> $$
[fb]  firmware build            101.03
[fv]  firmware version            0.99
[fbs] firmware build                  101.03-18-ge1b5a
[fbc] firmware config               settings_default.h
[hp]  hardware platform     ArduinoDue
[hv]  hardware version           na
[id]  g2core ID                   0084-7bd6-0084-18c
[jt]  junction integration time   0.75
[ct]  chordal tolerance           0.0100 mm
[zl]  Z lift on feedhold           0.000 mm
[sl]  soft limit enable           0 [0=disable,1=enable]
[lim] limit switch enable         0 [0=disable,1=enable]
[saf] safety interlock enable     0 [0=disable,1=enable]
[m48] overrides enabled           1 [0=disable,1=enable]
[froe] feed override enable       0 [0=disable,1=enable]
[fro]  feedrate override          1.000 [0.05 < mfo < 2.00]
[troe] traverse over enable       0 [0=disable,1=enable]
[tro]  traverse override          1.000 [0.05 < mto < 1.00]
[mt]  motor idle timeout       1000.00 seconds
[tv]  text verbosity              1 [0=silent,1=verbose]
[ej]  enable json mode            0 [0=text,1=JSON,2=auto]
[jv]  json verbosity              4 [0=silent,1=footer,2=messages,3=configs,4=linenum,5=verbose]
[qv]  queue report verbosity      1 [0=off,1=single,2=triple]
[sv]  status report verbosity     1 [0=off,1=filtered,2=verbose]
[si]  status interval           100 ms
[gpl] default gcode plane         0 [0=G17,1=G18,2=G19]
[gun] default gcode units mode    1 [0=G20,1=G21]
[gco] default gcode coord system  1 [1-6 (G54-G59)]
[gpa] default gcode path control  2 [0=G61,1=G61.1,2=G64]
[gdi] default gcode distance mode 0 [0=G90,1=G91]
[1ma] m1 map to axis              0 [0=X,1=Y,2=Z...]
[1sa] m1 step angle               1.800 deg
[1tr] m1 travel per revolution    1.2500 mm
[1su] m1 steps per unit        1280.00000 steps per mm
[1mi] m1 microsteps               8 [1,2,4,8,16,32]
[1po] m1 polarity                 0 [0=normal,1=reverse]
[1pm] m1 power management         1 [0=disabled,1=always on,2=in cycle,3=when moving]
[1pl] m1 motor power level        1.000 [0.000=minimum, 1.000=maximum]
[1ep] m1 enable polarity          0 [0=active HIGH,1=active LOW]
[1sp] m1 step polarity            1 [0=active HIGH,1=active LOW]
[2ma] m2 map to axis              1 [0=X,1=Y,2=Z...]
[2sa] m2 step angle               1.800 deg
[2tr] m2 travel per revolution   40.0000 mm
[2su] m2 steps per unit          40.00000 steps per mm
[2mi] m2 microsteps               8 [1,2,4,8,16,32]
[2po] m2 polarity                 0 [0=normal,1=reverse]
[2pm] m2 power management         1 [0=disabled,1=always on,2=in cycle,3=when moving]
[2pl] m2 motor power level        1.000 [0.000=minimum, 1.000=maximum]
[2ep] m2 enable polarity          1 [0=active HIGH,1=active LOW]
[2sp] m2 step polarity            1 [0=active HIGH,1=active LOW]
[3ma] m3 map to axis              2 [0=X,1=Y,2=Z...]
[3sa] m3 step angle               1.800 deg
[3tr] m3 travel per revolution    1.2500 mm
[3su] m3 steps per unit        1280.00000 steps per mm
[3mi] m3 microsteps               8 [1,2,4,8,16,32]
[3po] m3 polarity                 1 [0=normal,1=reverse]
[3pm] m3 power management         1 [0=disabled,1=always on,2=in cycle,3=when moving]
[3pl] m3 motor power level        1.000 [0.000=minimum, 1.000=maximum]
[3ep] m3 enable polarity          0 [0=active HIGH,1=active LOW]
[3sp] m3 step polarity            0 [0=active HIGH,1=active LOW]
[4ma] m4 map to axis              3 [0=X,1=Y,2=Z...]
[4sa] m4 step angle               1.800 deg
[4tr] m4 travel per revolution  360.0000 mm
[4su] m4 steps per unit           4.44444 steps per mm
[4mi] m4 microsteps               8 [1,2,4,8,16,32]
[4po] m4 polarity                 0 [0=normal,1=reverse]
[4pm] m4 power management         0 [0=disabled,1=always on,2=in cycle,3=when moving]
[4pl] m4 motor power level        0.000 [0.000=minimum, 1.000=maximum]
[4ep] m4 enable polarity          0 [0=active HIGH,1=active LOW]
[4sp] m4 step polarity            1 [0=active HIGH,1=active LOW]
[xam] x axis mode                 1 [standard]
[xvm] x velocity maximum       1000 mm/min
[xfr] x feedrate maximum       1000 mm/min
[xtn] x travel minimum            0.000 mm
[xtm] x travel maximum            0.000 mm
[xjm] x jerk maximum           1000 mm/min^3 * 1 million
[xjh] x jerk homing            1000 mm/min^3 * 1 million
[xhi] x homing input              0 [input 1-N or 0 to disable homing this axis]
[xhd] x homing direction          0 [0=search-to-negative, 1=search-to-positive]
[xsv] x search velocity         500 mm/min
[xlv] x latch velocity       100.00 mm/min
[xlb] x latch backoff             4.000 mm
[xzb] x zero backoff              2.000 mm
[yam] y axis mode                 1 [standard]
[yvm] y velocity maximum       1000 mm/min
[yfr] y feedrate maximum       1000 mm/min
[ytn] y travel minimum            0.000 mm
[ytm] y travel maximum            0.000 mm
[yjm] y jerk maximum           1000 mm/min^3 * 1 million
[yjh] y jerk homing            1000 mm/min^3 * 1 million
[yhi] y homing input              0 [input 1-N or 0 to disable homing this axis]
[yhd] y homing direction          0 [0=search-to-negative, 1=search-to-positive]
[ysv] y search velocity         500 mm/min
[ylv] y latch velocity       100.00 mm/min
[ylb] y latch backoff             4.000 mm
[yzb] y zero backoff              2.000 mm
[zam] z axis mode                 1 [standard]
[zvm] z velocity maximum       1000 mm/min
[zfr] z feedrate maximum       1000 mm/min
[ztn] z travel minimum        -1000.000 mm
[ztm] z travel maximum         1000.000 mm
[zjm] z jerk maximum            500 mm/min^3 * 1 million
[zjh] z jerk homing             500 mm/min^3 * 1 million
[zhi] z homing input              0 [input 1-N or 0 to disable homing this axis]
[zhd] z homing direction          0 [0=search-to-negative, 1=search-to-positive]
[zsv] z search velocity         250 mm/min
[zlv] z latch velocity        25.00 mm/min
[zlb] z latch backoff             4.000 mm
[zzb] z zero backoff              2.000 mm
[uam] u axis mode                 0 [disabled]
[uvm] u velocity maximum       1000 mm/min
[ufr] u feedrate maximum       1000 mm/min
[utn] u travel minimum            0.000 mm
[utm] u travel maximum            0.000 mm
[ujm] u jerk maximum           1000 mm/min^3 * 1 million
[ujh] u jerk homing            1000 mm/min^3 * 1 million
[uhi] u homing input              0 [input 1-N or 0 to disable homing this axis]
[uhd] u homing direction          0 [0=search-to-negative, 1=search-to-positive]
[usv] u search velocity         500 mm/min
[ulv] u latch velocity       100.00 mm/min
[ulb] u latch backoff             4.000 mm
[uzb] u zero backoff              2.000 mm
[vam] v axis mode                 0 [disabled]
[vvm] v velocity maximum       1000 mm/min
[vfr] v feedrate maximum       1000 mm/min
[vtn] v travel minimum            0.000 mm
[vtm] v travel maximum            0.000 mm
[vjm] v jerk maximum           1000 mm/min^3 * 1 million
[vjh] v jerk homing            1000 mm/min^3 * 1 million
[vhi] v homing input              0 [input 1-N or 0 to disable homing this axis]
[vhd] v homing direction          0 [0=search-to-negative, 1=search-to-positive]
[vsv] v search velocity         500 mm/min
[vlv] v latch velocity       100.00 mm/min
[vlb] v latch backoff             4.000 mm
[vzb] v zero backoff              2.000 mm
[wam] w axis mode                 0 [disabled]
[wvm] w velocity maximum       1000 mm/min
[wfr] w feedrate maximum       1000 mm/min
[wtn] w travel minimum            0.000 mm
[wtm] w travel maximum            0.000 mm
[wjm] w jerk maximum            500 mm/min^3 * 1 million
[wjh] w jerk homing             500 mm/min^3 * 1 million
[whi] w homing input              0 [input 1-N or 0 to disable homing this axis]
[whd] w homing direction          0 [0=search-to-negative, 1=search-to-positive]
[wsv] w search velocity         250 mm/min
[wlv] w latch velocity        25.00 mm/min
[wlb] w latch backoff             4.000 mm
[wzb] w zero backoff              2.000 mm
[aam] a axis mode                 0 [disabled]
[avm] a velocity maximum     288000 deg/min
[afr] a feedrate maximum     288000 deg/min
[atn] a travel minimum           -1.000 deg
[atm] a travel maximum           -1.000 deg
[ajm] a jerk maximum         288000 deg/min^3 * 1 million
[ajh] a jerk homing          288000 deg/min^3 * 1 million
[ara] a radius value             57.2957 deg
[ahi] a homing input              0 [input 1-N or 0 to disable homing this axis]
[ahd] a homing direction          0 [0=search-to-negative, 1=search-to-positive]
[asv] a search velocity      144000 deg/min
[alv] a latch velocity     28800.00 deg/min
[alb] a latch backoff             5.000 deg
[azb] a zero backoff              2.000 deg
[bam] b axis mode                 0 [disabled]
[bvm] b velocity maximum     288000 deg/min
[bfr] b feedrate maximum     288000 deg/min
[btn] b travel minimum           -1.000 deg
[btm] b travel maximum           -1.000 deg
[bjm] b jerk maximum         288000 deg/min^3 * 1 million
[bjh] b jerk homing          288000 deg/min^3 * 1 million
[bra] b radius value             57.2957 deg
[bhi] b homing input              0 [input 1-N or 0 to disable homing this axis]
[bhd] b homing direction          0 [0=search-to-negative, 1=search-to-positive]
[bsv] b search velocity      144000 deg/min
[blv] b latch velocity     28800.00 deg/min
[blb] b latch backoff             5.000 deg
[bzb] b zero backoff              2.000 deg
[cam] c axis mode                 0 [disabled]
[cvm] c velocity maximum     288000 deg/min
[cfr] c feedrate maximum     288000 deg/min
[ctn] c travel minimum           -1.000 deg
[ctm] c travel maximum           -1.000 deg
[cjm] c jerk maximum         288000 deg/min^3 * 1 million
[cjh] c jerk homing          288000 deg/min^3 * 1 million
[cra] c radius value             57.2957 deg
[chi] c homing input              0 [input 1-N or 0 to disable homing this axis]
[chd] c homing direction          0 [0=search-to-negative, 1=search-to-positive]
[csv] c search velocity      144000 deg/min
[clv] c latch velocity     28800.00 deg/min
[clb] c latch backoff             5.000 deg
[czb] c zero backoff              2.000 deg
[di1mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di1ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di1fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di2mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di2ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di2fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di3mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di3ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di3fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di4mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di4ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di4fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di5mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di5ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di5fn] input function            4 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di6mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di6ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di6fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di7mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di7ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di7fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di8mo] input mode                0 [0=active-low,1=active-hi,2=disabled]
[di8ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di8fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[di9mo] input mode                1 [0=active-low,1=active-hi,2=disabled]
[di9ac] input action              0 [0=none,1=stop,2=fast_stop,3=halt,4=alarm,5=shutdown,6=panic,7=reset]
[di9fn] input function            0 [0=none,1=limit,2=interlock,3=shutdown,4=probe]
[do1mo] output mode               2 [0=active low,1=active high,2=disabled]
[do2mo] output mode               2 [0=active low,1=active high,2=disabled]
[do3mo] output mode               2 [0=active low,1=active high,2=disabled]
[do4mo] output mode               2 [0=active low,1=active high,2=disabled]
[do5mo] output mode               2 [0=active low,1=active high,2=disabled]
[do6mo] output mode               2 [0=active low,1=active high,2=disabled]
[do7mo] output mode               2 [0=active low,1=active high,2=disabled]
[do8mo] output mode               2 [0=active low,1=active high,2=disabled]
[do9mo] output mode               2 [0=active low,1=active high,2=disabled]
[p1frq] pwm frequency               100 Hz
[p1csl] pwm cw speed lo            7900 RPM
[p1csh] pwm cw speed hi           12800 RPM
[p1cpl] pwm cw phase lo           0.130 [0..1]
[p1cph] pwm cw phase hi           0.170 [0..1]
[p1wsl] pwm ccw speed lo           7900 RPM
[p1wsh] pwm ccw speed hi          12800 RPM
[p1wpl] pwm ccw phase lo          0.130 [0..1]
[p1wph] pwm ccw phase hi          0.170 [0..1]
[p1pof] pwm phase off             0.100 [0..1]
[g54x] g54 x offset               0.000 mm
[g54y] g54 y offset               0.000 mm
[g54z] g54 z offset               0.000 mm
[g54u] g54 u offset               0.000 mm
[g54v] g54 v offset               0.000 mm
[g54w] g54 w offset               0.000 mm
[g54a] g54 a offset               0.000 deg
[g54b] g54 b offset               0.000 deg
[g54c] g54 c offset               0.000 deg
[g55x] g55 x offset               0.000 mm
[g55y] g55 y offset               0.000 mm
[g55z] g55 z offset               0.000 mm
[g55u] g55 u offset               0.000 mm
[g55v] g55 v offset               0.000 mm
[g55w] g55 w offset               0.000 mm
[g55a] g55 a offset               0.000 deg
[g55b] g55 b offset               0.000 deg
[g55c] g55 c offset               0.000 deg
[g56x] g56 x offset               0.000 mm
[g56y] g56 y offset               0.000 mm
[g56z] g56 z offset               0.000 mm
[g56u] g56 u offset               0.000 mm
[g56v] g56 v offset               0.000 mm
[g56w] g56 w offset               0.000 mm
[g56a] g56 a offset               0.000 deg
[g56b] g56 b offset               0.000 deg
[g56c] g56 c offset               0.000 deg
[g57x] g57 x offset               0.000 mm
[g57y] g57 y offset               0.000 mm
[g57z] g57 z offset               0.000 mm
[g57u] g57 u offset               0.000 mm
[g57v] g57 v offset               0.000 mm
[g57w] g57 w offset               0.000 mm
[g57a] g57 a offset               0.000 deg
[g57b] g57 b offset               0.000 deg
[g57c] g57 c offset               0.000 deg
[g58x] g58 x offset               0.000 mm
[g58y] g58 y offset               0.000 mm
[g58z] g58 z offset               0.000 mm
[g58u] g58 u offset               0.000 mm
[g58v] g58 v offset               0.000 mm
[g58w] g58 w offset               0.000 mm
[g58a] g58 a offset               0.000 deg
[g58b] g58 b offset               0.000 deg
[g58c] g58 c offset               0.000 deg
[g59x] g59 x offset               0.000 mm
[g59y] g59 y offset               0.000 mm
[g59z] g59 z offset               0.000 mm
[g59u] g59 u offset               0.000 mm
[g59v] g59 v offset               0.000 mm
[g59w] g59 w offset               0.000 mm
[g59a] g59 a offset               0.000 deg
[g59b] g59 b offset               0.000 deg
[g59c] g59 c offset               0.000 deg
[g92x] g92 x offset               0.000 mm
[g92y] g92 y offset               0.000 mm
[g92z] g92 z offset               0.000 mm
[g92u] g92 u offset               0.000 mm
[g92v] g92 v offset               0.000 mm
[g92w] g92 w offset               0.000 mm
[g92a] g92 a offset               0.000 deg
[g92b] g92 b offset               0.000 deg
[g92c] g92 c offset               0.000 deg
[g28x] g28 x position             0.000 mm
[g28y] g28 y position             0.000 mm
[g28z] g28 z position             0.000 mm
[g28u] g28 u position             0.000 mm
[g28v] g28 v position             0.000 mm
[g28w] g28 w position             0.000 mm
[g28a] g28 a position             0.000 deg
[g28b] g28 b position             0.000 deg
[g28c] g28 c position             0.000 deg
[g30x] g30 x position             0.000 mm
[g30y] g30 y position             0.000 mm
[g30z] g30 z position             0.000 mm
[g30u] g30 u position             0.000 mm
[g30v] g30 v position             0.000 mm
[g30w] g30 w position             0.000 mm
[g30a] g30 a position             0.000 deg
[g30b] g30 b position             0.000 deg
[g30c] g30 c position             0.000 deg
g2core[mm] ok>

Whoa, that is not grbl. I misread your first post.

The thing I was thinking of was 1ep, 2ep, 3ep.

But I haven’t ever used that firmware.

I have a TinyG on my LowRider2, which is very similar to the g2core code. You have some configuration options I don’t recognize, but what looks off to me is the travel per revolution settings and probably the steps per unit setting (that setting doesn’t exist on the tinyG though…).

As usually configured, on the LowRider the x an,d y axes are belt driven with (I think) 16 tooth pulleys with 2 mm pitch. That should work out to about 32mm per revolution.

My Z axis raises and lowers the gantry on 8mm pitch screws…so 8 mm per revolution.

I’m not sure about the steps per unit settings, but I think they should be about 6.25 for the x and y axes, and about 25 for the z.

I don’t know if any of that is related to your “No Motion” issue though.

=Pete

1 Like

I just stumbled on this thread as I was telling one of the g2Core admins about a similar issue I had, so I thought I’d drop in my fix in case you hadn’t sorted it out, or if another user has a similar problem.

My motor drivers are enable low, and by default g2 seems to be enable high. So I had to send the following commands to my axis to get it working:

$1pm = 1 // Power Management - Always On
$1ep = 0 // Enable Polarity - Low

If I only changed Enable Polarity, and left Power Management to Off, it seems that the enable pin wasn’t sent low.