pinouts stepper motor old board to new board
Quote from BryanHepworth on February 5, 2018, 5:37 pmHi All
Tried installing the new board this evening, I know I have the power and the ribbon in correctly from the last diagram in the installation instructions. However the stepper motor ones aren't illustrated in the same way from the old board to the new board.
I have plugged it in from the old board without switching any of the pinouts, turning on the machine results in a whining noise without anything happening movement wise. I'm guessing I'm going to have to pull some wires out of the original plug and re-seat them. Could someone tell me which original pin to new pin they should be?
Thanks so much.
Bryan
Hi All
Tried installing the new board this evening, I know I have the power and the ribbon in correctly from the last diagram in the installation instructions. However the stepper motor ones aren't illustrated in the same way from the old board to the new board.
I have plugged it in from the old board without switching any of the pinouts, turning on the machine results in a whining noise without anything happening movement wise. I'm guessing I'm going to have to pull some wires out of the original plug and re-seat them. Could someone tell me which original pin to new pin they should be?
Thanks so much.
Bryan
Quote from Paul on February 5, 2018, 7:08 pmHi Bryan, the wiring pinout is identical to the old board. If the motors are whining then it can be two things: the trim pots on the stepstick are too restricting or the steck stick is broken which can happen since they are sensitive to static electricity.
Try to adjust the trim pot just slightly. If nothing improves then definitely a broken step stick. If one axis runs well you could swap the stepstick to confirm if it is broken. The other axis should then have the issue and the previous whining axis should then be fine.
The step sticks are A4988 Allegro, cheap around $5 and easy to get. Let me know how you go, cheers Paul
Hi Bryan, the wiring pinout is identical to the old board. If the motors are whining then it can be two things: the trim pots on the stepstick are too restricting or the steck stick is broken which can happen since they are sensitive to static electricity.
Try to adjust the trim pot just slightly. If nothing improves then definitely a broken step stick. If one axis runs well you could swap the stepstick to confirm if it is broken. The other axis should then have the issue and the previous whining axis should then be fine.
The step sticks are A4988 Allegro, cheap around $5 and easy to get. Let me know how you go, cheers Paul
Quote from Paul on February 5, 2018, 7:11 pmJust remembered, you need to clear the alarm and home the machine first. The whining noise might be just the stepsticks running a holding current! '$X' releases the alarm. '$H' homes the machine. If it does whining a lot while in hold position then the current is a bit high (trimpots should be a quarter open max).
You can use CNCjs to test the movements and laser.
Just remembered, you need to clear the alarm and home the machine first. The whining noise might be just the stepsticks running a holding current! '$X' releases the alarm. '$H' homes the machine. If it does whining a lot while in hold position then the current is a bit high (trimpots should be a quarter open max).
You can use CNCjs to test the movements and laser.
Quote from BryanHepworth on February 5, 2018, 8:22 pmHi Paul
Admittedly I haven't plugged the USB side of things to my PC yet, so probably need to do that first. As soon as the noise started I switched the laser off so haven't got the driver loaded yet for the board.
Getting a bit late for tonight so I'll give it a whirl tomorrow and see. I've bought similar step sticks here and have a few spare, but hopefully the second post is the reason, and it'll clear once I get the controller linked to the PC.
Cheers
Bryan
Hi Paul
Admittedly I haven't plugged the USB side of things to my PC yet, so probably need to do that first. As soon as the noise started I switched the laser off so haven't got the driver loaded yet for the board.
Getting a bit late for tonight so I'll give it a whirl tomorrow and see. I've bought similar step sticks here and have a few spare, but hopefully the second post is the reason, and it'll clear once I get the controller linked to the PC.
Cheers
Bryan
Quote from BryanHepworth on February 6, 2018, 5:13 pmHi Paul
OK I've got some communication - the whining noise stopped eventually, hope that isn't a foreboding sign!
Console gave me these messages: -
Waiting for connection...
Waiting for connection...
Connected
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
,128|FS:0,0|WCO:0.0
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
error:11
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
ok
Grbl 1.1e ['$' for help]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
ALARM:49
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
error:11
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Hi Paul
OK I've got some communication - the whining noise stopped eventually, hope that isn't a foreboding sign!
Console gave me these messages: -
Waiting for connection...
Waiting for connection...
Connected
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
,128|FS:0,0|WCO:0.0
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
error:11
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
ok
Grbl 1.1e ['$' for help]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
ALARM:49
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
�
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
error:11
Grbl 1.1e ['$' for help]
[MSG:'$H'|'$X' to unlock]
[MSG:Caution: Unlocked]
ok
Quote from BryanHepworth on February 6, 2018, 5:17 pmHi Paul
I'm going to try with another machine with a fresh Windows installation on too..
Bryan
Hi Paul
I'm going to try with another machine with a fresh Windows installation on too..
Bryan
Quote from BryanHepworth on February 6, 2018, 7:09 pmI thought I'd added a follow up, but can't see it.
New machine had better Comms $H returned error 5 There was no movement of the laser head.
Bryan
I thought I'd added a follow up, but can't see it.
New machine had better Comms $H returned error 5 There was no movement of the laser head.
Bryan
Quote from BryanHepworth on February 6, 2018, 7:19 pmWaiting for connection...
Waiting for connection...
Connected
$
Waiting for connection...
Connected
S0]
Grbl 1.1e ['$' for help]
$
[HLP:$$ $# $G $I $N $x=val $Nx=line $J=line $SLP $C $X $H ~ ! ? ctrl-x]
ok
$X
ok
$H
error:5
$$
$0=0
$1=0
$2=0
$3=0
$4=0
$5=1
$6=1
$10=0
$11=0.000
$12=0.000
$13=0
$20=0
$21=0
$22=0
$23=0
$24=600.000
$25=1000.000
$26=250
$27=5.000
$28=0.000
$30=0
$31=0
$32=1
$100=160.000
$101=128.000
$102=0.000
$110=11264.000
$111=9984.000
$112=128.000
$120=0.000
$121=0.000
$122=0.000
$130=0.000
$131=0.000
$132=0.000
ok
Waiting for connection...
Waiting for connection...
Connected
$
Waiting for connection...
Connected
S0]
Grbl 1.1e ['$' for help]
$
[HLP:$$ $# $G $I $N $x=val $Nx=line $J=line $SLP $C $X $H ~ ! ? ctrl-x]
ok
$X
ok
$H
error:5
$$
$0=0
$1=0
$2=0
$3=0
$4=0
$5=1
$6=1
$10=0
$11=0.000
$12=0.000
$13=0
$20=0
$21=0
$22=0
$23=0
$24=600.000
$25=1000.000
$26=250
$27=5.000
$28=0.000
$30=0
$31=0
$32=1
$100=160.000
$101=128.000
$102=0.000
$110=11264.000
$111=9984.000
$112=128.000
$120=0.000
$121=0.000
$122=0.000
$130=0.000
$131=0.000
$132=0.000
ok
Quote from davegalesr on February 7, 2018, 9:11 amWOW - those parms need some adjustments - here is what I use and both Inkscape and LightBurn work fine - so does cncjs.
Default
Settings Description
$0=10 Step pulse, microseconds
$1=255 Step idle delay, milliseconds
$2=0 Step port invert, mask
$3=02 Direction port invert, mask
$4=0 Step enable invert, boolean
$5=0 1 Limit pins invert, boolean
$6=0 Probe pin invert, boolean
$10=31 Status report, mask
$11=0.010 Junction deviation, mm
$12=0.002 Arc tolerance, mm
$13=0 Report inches, boolean
$20=0 Soft limits, boolean
$21=0 Hard limits, boolean
$22=1 Homing cycle, boolean
$23=3 Homing dir invert, mask
$24=600.000 Homing feed, mm/min
$25=1000.000 Homing seek, mm/min
$26=250 Homing debounce, milliseconds
$27=5.000 Homing pull-off, mm
$28 0.000 PWM mode - gerbil custom
$30=1000 Max spindle speed, RPM (Higher number for lighter prints)
$31=5 Min spindle speed, RPM
$32=0 Laser mode, boolean
$100=162.000 X steps/mm
$101=160.000 Y steps/mm
$102=250 Z steps/mm
$110=10000.000 X Max rate, mm/min
$111=10000.000 Y Max rate, mm/min
$112=500 Z Max rate, mm/min
$120=3000.000 X Acceleration, mm/sec^2
$121=3000.000 Y Acceleration, mm/sec^2
$122=10 Z Acceleration, mm/sec^2
$130=320.000 X Max travel, mm (set to your available print width)
$131=230.000 Y Max travel, mm (set to your available print length)
$132=200 Z Max travel, mm
PWM Laser freq Value PWM mode Remarks
244 Hz 0 fast pwm DEFAULT great engraving
61 Hz 1 fast pwm dither effects
1.9 kHz 2 fast pwm just b/w
15 kHz 3 fast pwm just b/w
122 Hz 4 phase-freq correct great engraving
1 kHz 5 phase-freq correct just b/w
7.5 kHz 6 phase-freq correct just b/w
WOW - those parms need some adjustments - here is what I use and both Inkscape and LightBurn work fine - so does cncjs.
Default
Settings Description
$0=10 Step pulse, microseconds
$1=255 Step idle delay, milliseconds
$2=0 Step port invert, mask
$3=02 Direction port invert, mask
$4=0 Step enable invert, boolean
$5=0 1 Limit pins invert, boolean
$6=0 Probe pin invert, boolean
$10=31 Status report, mask
$11=0.010 Junction deviation, mm
$12=0.002 Arc tolerance, mm
$13=0 Report inches, boolean
$20=0 Soft limits, boolean
$21=0 Hard limits, boolean
$22=1 Homing cycle, boolean
$23=3 Homing dir invert, mask
$24=600.000 Homing feed, mm/min
$25=1000.000 Homing seek, mm/min
$26=250 Homing debounce, milliseconds
$27=5.000 Homing pull-off, mm
$28 0.000 PWM mode - gerbil custom
$30=1000 Max spindle speed, RPM (Higher number for lighter prints)
$31=5 Min spindle speed, RPM
$32=0 Laser mode, boolean
$100=162.000 X steps/mm
$101=160.000 Y steps/mm
$102=250 Z steps/mm
$110=10000.000 X Max rate, mm/min
$111=10000.000 Y Max rate, mm/min
$112=500 Z Max rate, mm/min
$120=3000.000 X Acceleration, mm/sec^2
$121=3000.000 Y Acceleration, mm/sec^2
$122=10 Z Acceleration, mm/sec^2
$130=320.000 X Max travel, mm (set to your available print width)
$131=230.000 Y Max travel, mm (set to your available print length)
$132=200 Z Max travel, mm
PWM Laser freq Value PWM mode Remarks
244 Hz 0 fast pwm DEFAULT great engraving
61 Hz 1 fast pwm dither effects
1.9 kHz 2 fast pwm just b/w
15 kHz 3 fast pwm just b/w
122 Hz 4 phase-freq correct great engraving
1 kHz 5 phase-freq correct just b/w
7.5 kHz 6 phase-freq correct just b/w
Quote from BryanHepworth on February 7, 2018, 4:46 pmThanks Dave
Wonder why all the values in mine are a blank sheet! Anyways thanks for the input, I'll do a bit more sleuthing tonight and see how far I get.
Bryan
Thanks Dave
Wonder why all the values in mine are a blank sheet! Anyways thanks for the input, I'll do a bit more sleuthing tonight and see how far I get.
Bryan
Quote from BryanHepworth on February 8, 2018, 6:47 pmHi All
As a sanity check I re-plugged the old board, and everything functioned as normal - stepper motors homed correctly, so I know the stepper as functioning.
Where there was a whining noise when I first plugged the gerbil in it is now gone when powering up the machine.
I still get error 5 when trying $H
Is there a listing of error codes posted anywhere I can start looking at?
Thanks
Bryan
Hi All
As a sanity check I re-plugged the old board, and everything functioned as normal - stepper motors homed correctly, so I know the stepper as functioning.
Where there was a whining noise when I first plugged the gerbil in it is now gone when powering up the machine.
I still get error 5 when trying $H
Is there a listing of error codes posted anywhere I can start looking at?
Thanks
Bryan
Quote from Paul on February 9, 2018, 7:42 pmHi Brian,
The error messages are described here: https://github.com/paulusjacobus/grbl/wiki/Gerbil-Messages-explained-and-Interfacing-with-Grbl
If you get limit errors, you can switch these hard and soft limits off in order to debug the switches or positions:
$20, and $21 set to zero '0' and you can set the pull off from zero setting $27 = the number of mm from the end stop (default 2mm). You might want to increase that.
Soft limits are limits set by the dimensions of the X and Y axis. Hard limits are limits triggered by end switches.
End stop errors can happen when the limit switches are mechanical. Adding a 100nF capacitor does help to kill the noise on the signal wires. Most k40 do have hall sensors for end switches so this problem does not happen. $26 is the software debounce in millisec. You can increase this as well so the endstop does not get triggered when the switch bounces until a certain time has passed.
Hi Brian,
The error messages are described here: https://github.com/paulusjacobus/grbl/wiki/Gerbil-Messages-explained-and-Interfacing-with-Grbl
If you get limit errors, you can switch these hard and soft limits off in order to debug the switches or positions:
$20, and $21 set to zero '0' and you can set the pull off from zero setting $27 = the number of mm from the end stop (default 2mm). You might want to increase that.
Soft limits are limits set by the dimensions of the X and Y axis. Hard limits are limits triggered by end switches.
End stop errors can happen when the limit switches are mechanical. Adding a 100nF capacitor does help to kill the noise on the signal wires. Most k40 do have hall sensors for end switches so this problem does not happen. $26 is the software debounce in millisec. You can increase this as well so the endstop does not get triggered when the switch bounces until a certain time has passed.