@dc42 I will. Thank you.
Posts made by Wichur
-
RE: Toolboard 1.1 accelerometer not reporting...
@dc42 said in Toolboard 1.1 accelerometer not reporting...:
I bought 2x1LCs 1.1 around June. Mounted and briefly tested accelerometers. Used normally up until few days ago when I tried to play with Input Shaping. Then I noticed that one accelerometer is missing.
M122 B20 (Accelerometer detected: no)
Diagnostics for board 20: Duet TOOL1LC rev 1.1 or later firmware version 3.4.0beta5 (2021-10-12 13:59:06) Bootloader ID: SAMC21 bootloader version 2.3 (2021-01-26b1) Never used RAM 3412, free system stack 2745 words Tasks: Move(notifyWait,5.5%,99) HEAT(notifyWait,1.9%,97) CanAsync(notifyWait,0.0%,58) CanRecv(notifyWait,1.0%,75) CanClock(notifyWait,0.2%,64) TMC(notifyWait,25.2%,57) MAIN(running,24.1%,340) IDLE(ready,0.0%,27) AIN(delaying,42.0%,142), total 100.0% Last reset 12:38:33 ago, cause: VDD brownout Last software reset time unknown, reason: AssertionFailed, available RAM 4192, slot 1 Software reset code 0x0120 ICSR 0x00000000 SP 0x20003ef4 Task Freestk 129 bad marker Stack: 00000544 00022ffc 00019b65 20003134 00016cff 20003134 000163d1 20000ed0 00000000 00000001 00008275 200071c8 200071c8 200071e0 00000000 20000f50 00011647 000223b8 00022474 00021ac8 00019b05 200071c8 200071c8 20000f50 000083ed 200071d8 000009c6 Driver 0: pos 17231199, 699.3 steps/mm,ok, SG min/max 0/464, read errors 17, write errors 0, ifcnt 16, reads 24255, writes 16, timeouts 11, DMA errors 0, failedOp 0x01, steps req 46168729 done 46168229 Moves scheduled 710857, completed 710856, in progress 1, hiccups 242, step errors 0, maxPrep 1582, maxOverdue 4140, maxInc 3603, mcErrs 0, gcmErrs 0 Peak sync jitter 4/12, peak Rx sync delay 231, resyncs 0/0, next step interrupt due in 1341 ticks, enabled VIN voltage: min 23.8, current 24.2, max 24.3 MCU temperature: min 36.8C, current 51.1C, max 55.9C Last sensors broadcast 0x00000002 found 1 53 ticks ago, loop time 0 CAN messages queued 920280, send timeouts 0, received 1312488, lost 0, free buffers 37, min 34, error reg 20000 dup 0, oos 2/0/1/0, bm 1, wbm 4140, rxMotionDelay 933, adv 34249/74661 Accelerometer detected: no I2C bus errors 0, naks 12, other errors 0
M122 B21
Diagnostics for board 21: Duet TOOL1LC rev 1.1 or later firmware version 3.4.0beta5 (2021-10-12 13:59:06) Bootloader ID: SAMC21 bootloader version 2.3 (2021-01-26b1) Never used RAM 2608, free system stack 2789 words Tasks: Move(notifyWait,0.0%,153) HEAT(notifyWait,1.3%,105) CanAsync(notifyWait,0.0%,64) CanRecv(notifyWait,0.2%,77) CanClock(notifyWait,0.2%,64) ACCEL(notifyWait,0.0%,61) TMC(delaying,24.7%,57) MAIN(running,32.5%,350) IDLE(ready,0.0%,27) AIN(delaying,41.2%,142), total 100.0% Last reset 12:39:11 ago, cause: power up Last software reset time unknown, reason: AssertionFailed, available RAM 3392, slot 1 Software reset code 0x0120 ICSR 0x00000000 SP 0x2000415c Task Freestk 129 bad marker Stack: 00000544 00022ffc 00019b65 20003134 00016cff 20003134 000163d1 20000ed0 00000000 00000001 00008275 200071c8 200071c8 200071e0 00000000 20000f50 00011647 000223b8 00022474 00021ac8 00019b05 200071c8 200071c8 20000f50 000083ed 200071d8 000009c7 Driver 0: pos 0, 699.3 steps/mm, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 13, reads 34773, writes 13, timeouts 21, DMA errors 0, failedOp 0x6f, steps req 0 done 0 Moves scheduled 0, completed 0, in progress 0, hiccups 0, step errors 0, maxPrep 0, maxOverdue 0, maxInc 0, mcErrs 0, gcmErrs 0 Peak sync jitter 5/14, peak Rx sync delay 218, resyncs 0/0, no step interrupt scheduled VIN voltage: min 24.2, current 24.3, max 24.4 MCU temperature: min 33.2C, current 41.9C, max 46.5C Last sensors broadcast 0x00000004 found 1 53 ticks ago, loop time 0 CAN messages queued 911096, send timeouts 0, received 592244, lost 0, free buffers 37, min 37, error reg 20000 dup 0, oos 0/0/0/0, bm 0, wbm 0, rxMotionDelay 0 Accelerometer detected: yes, status: 00 I2C bus errors 0, naks 3, other errors 0
-
RE: Toolboard 1.1 accelerometer not reporting...
That is what I get when trying to configure.
-
Toolboard 1.1 accelerometer not reporting...
Hi,
I have IDEX cartesian printer running on Duet 3 6HC with two Toolboards 1LC 1.1 connected via CAN. FW is 3.4b5. I have them for some time now and finally wanted to try input shaping.
I've noticed that accelerometer on 20.0 is not found, but on 21.0 its ok. Is there anything I can do to fix it or look for cause other than hardware failure?
-
RE: Problem with proper setting of StealthChop-to-SpreadCycle mode
@dc42 I experimented some more and came up with testing routine. Trying to set StealthChop to SpreadCycle at low speed. No luck... Or maybe at 10mm/s is all I can get?
Accel/jerk are halved in comparison to normal operation.
Each testing sequence consists of:
- Configuration
- Homing with tuning
- Three sets of moves of Y and U separately
- Each set has different speed - 10, 50 and 100mm/s
It runs five tests with different configuration each:
- StealthChop to SpreadCycle with switch at 10.4 mm/s
- StealthChop to SpreadCycle with switch at 52.1 mm/s
- StealthChop to SpreadCycle with switch at 93.8 mm/s
- Pure SpreadCycle
- Pure StealthChop
I've recorded a routine with first 3 sequences. Every time movement is above switch speed then "clack" happens. Its visibly less noticeable at low setting, but is still there. As it's increased then it gets much worse.
If you could look if I did homing/tuning correctly, please.
I'll proceed to experimenting with different speeds. Previously when I picked different values for M569 and M915 I've got some improvement - clacking was getting less and less visible.
Thanks for your time and input.
Video (last two removed for brevity):
https://youtu.be/yojaNXBJG9sMacros:
stealthChop.home.g; Homing and tuning M18 X U Y Z ; Disable motors M17 X U Y Z ; Enable motors G4 P100 ; Wait G91 ; Relative positioning G1 Z5 F1000 H2 ; Lift Z relative to current position G1 X-999 U999 Y-999 F3000 H1 ; Move and Tune G1 X5 U-5 Y5 F6000 H2 ; Go back a few mm G1 X-999 U999 Y-999 F360 H1 ; Move again G1 Z-5 F1000 H2 ; Return Z to previous height G90 ; BLTouch preperation M280 P0 S160 ; Precautionary alarm release M280 P0 S90 ; Ensure the pin is raised ; Home Z using the Z-Probe G91 ; Relative positioning G1 Z10 F1000 H2 ; Lift Z relative to current position G90 ; Absolute positioning G1 X-130 Y-115 F6000 ; Move T0 to probing point, including probe offset G30 ; Probe the bed and set Z to the probe offset G1 Z10 F1000 ; Raise Z off the bed
stealthChop.test.g
; Initial settings var distance = 30 ;mm var speed_high = 100 ;mm/s var speed_high_min = 60 * var.speed_high; var speed_med = 50 ;mm/s var speed_med_min = 60 * var.speed_med; var speed_low = 10 ;mm/s var speed_low_min = 60 * var.speed_low; G1 X-999 U0 Y0 F3000 ; Prepare for test G4 P1000 ; Test Low Speed while iterations < 3 G1 U{var.distance/4} F{var.speed_low_min} G1 U{-(var.distance/4)} F{var.speed_low_min} while iterations < 3 G1 Y{var.distance/4} F{var.speed_low_min} G1 Y{-(var.distance/4)} F{var.speed_low_min} ; Test Medium Speed while iterations < 3 G1 U{var.distance/2} F{var.speed_med_min} G1 U{-(var.distance/2)} F{var.speed_med_min} while iterations < 3 G1 Y{var.distance/2} F{var.speed_med_min} G1 Y{-(var.distance/2)} F{var.speed_med_min} ; Test High Speed while iterations < 3 G1 U{var.distance} F{var.speed_high_min} G1 U{-(var.distance)} F{var.speed_high_min} while iterations < 3 G1 Y{var.distance} F{var.speed_high_min} G1 Y{-(var.distance)} F{var.speed_high_min}
stealthChop.spreadCycle.test.g
; RR VCast IDEX (Cartesian) ; Duet 3 6HC TMC5160 ; Testing U and Y ; XUY using 2.5A/3.1V LDO-42STH47-2504AC ; https://www.ratrig.com/nema-17-stepper-motor.html ; 1. Load StealthChop to SpreadCycle settings ; 2. Tune drivers ; 3. Run test for StealthChop to SpreadCycle ; 4. Run test for StealthChop only ; 5. Run test for SpreadCycle only G4 S5 ; Time to start recording :) ; Accel/Jerk are halved in comparison to normal operation M906 X2125 U2125 Y2125 Z1600:1600 E350:350 I50 ; set currents M566 X350 U350 Y350 Z60:60 E300:300 ; set maximum instantaneous speed changes (mm/min) M203 X6000 U6000 Y6000 Z1800:1800 E3600:3600 ; set maximum speeds (mm/min) M201 X400 U400 Y450 Z100:100 E600:600 ; set accelerations (mm/s^2) M204 P400 T400 ;------------------------------------ ;---- StealthChop to SpreadCycle ---- ;------------------------------------ echo "Enable StealthChop to SpreadCycle settings (Switch Speed - 10.4 mm/s)" ; Reset Coolstep M915 P0.0:0.1:0.2:0.3:0.4:0.5 T1 ; disable coolstep M915 P20.0:21.0 T1 ; disable coolstep ; Set U M569 P0.1 S0 D3 V900 H900 M915 P0.1 T900 ; Set Y M569 P0.2 S0 D3 V900 H900 M915 P0.2 T900 ; Homing and tuning M98 p"/macros/stealthChop.home.g" M98 p"/macros/stealthChop.test.g" echo "Enable StealthChop to SpreadCycle settings (Switch speed - 52.1 mm/s)" ; Reset Coolstep M915 P0.0:0.1:0.2:0.3:0.4:0.5 T1 ; disable coolstep M915 P20.0:21.0 T1 ; disable coolstep ; Set U M569 P0.1 S0 D3 V180 H180 M915 P0.1 T180 ; Set Y M569 P0.2 S0 D3 V180 H180 M915 P0.2 T180 ; Homing and tuning M98 p"/macros/stealthChop.home.g" M98 p"/macros/stealthChop.test.g" echo "Enable StealthChop to SpreadCycle settings (Switch speed - 93.8 mm/s)" ; Reset Coolstep M915 P0.0:0.1:0.2:0.3:0.4:0.5 T1 ; disable coolstep M915 P20.0:21.0 T1 ; disable coolstep ; Set U M569 P0.1 S0 D3 V100 H100 M915 P0.1 T100 ; Set Y M569 P0.2 S0 D3 V100 H100 M915 P0.2 T100 ; Homing and tuning M98 p"/macros/stealthChop.home.g" M98 p"/macros/stealthChop.test.g" ;------------------------------------ ;---- SpreadCycle only ---- ;------------------------------------ echo "Enable SpreadCycle settings" ; Reset Coolstep M915 P0.0:0.1:0.2:0.3:0.4:0.5 T1 ; disable coolstep M915 P20.0:21.0 T1 ; disable coolstep ; Set U (Factory values) M569 P0.1 S0 D2 H200 M915 P0.1 T2000 ; Set Y M569 P0.2 S0 D2 H200 M915 P0.2 T2000 ; Homing and tuning M98 p"/macros/stealthChop.home.g" M98 p"/macros/stealthChop.test.g" ;------------------------------------ ;---- StealthChop only ---- ;------------------------------------ echo "Enable StealthChop settings" ; Reset Coolstep M915 P0.0:0.1:0.2:0.3:0.4:0.5 T1 ; disable coolstep M915 P20.0:21.0 T1 ; disable coolstep ; Set U (Above 100mm/s) M569 P0.1 S0 D3 V50 H50 M915 P0.1 T50 ; Set Y M569 P0.2 S0 D3 V50 H50 M915 P0.2 T50 ; Homing and tuning M98 p"/macros/stealthChop.home.g" M98 p"/macros/stealthChop.test.g"
-
RE: Problem with proper setting of StealthChop-to-SpreadCycle mode
@dc42 That is only homex.g file. After that I run homeu.g, homey.g and finally homez.g calling one after another using M98 P from homeall.g
To have it working properly I cannot tune them separately, but have to do it in one move? Correct?
-
RE: Problem with proper setting of StealthChop-to-SpreadCycle mode
@dc42 Yes. I already did that. But maybe version with M17 is more reliable?
I ran your corexy test to confirm is it actually changing something and it is (https://forum.duet3d.com/topic/16297/help-needed-with-duet-3-6hc-tmc5160-stealthchop-config/75?_=1634594365615)
echo "Running homex.g" G91 ; Relative positioning G1 H2 Z0.02 F3000 G4 P250 G1 Z5 F1000 H2 ; Lift Z relative to current position G1 H2 X0.02 F3000 G4 P250 G1 X-999 F6000 H1 ; Move X-axis to the endstop and stop (first pass) G1 X5 F6000 H2 ; Go back a few mm G1 X-999 F360 H1 ; Move X-axis to the endstop once more (second pass) G1 Z-5 F1000 H2 ; Return Z to previous height G90 ; Absolute positioning
-
RE: Problem with proper setting of StealthChop-to-SpreadCycle mode
@dc42 Thanks for a rapid answer.
So it was my lack of understanding.
On Prusa/Bear that I duetized (Duet 3 mini 5+) it worked quickly just using 2nd strategy. Just configured StealthChop only mode and it worked without layer shifts up to 100mm/s - which I never excedeed. Probably worked due to different steppers, masses etc.
I'll do a step back then. First trying to tune speed/acc/jerk as currently I have mix of values provided by manufacturers (RR and Orbiter) and what produced good prints. Then retry setting StealthChop by adjusting jerk and drivers to find proper speed to switch to SpreadCycle.
My fallback will be to stay in one mode only.
One thing makes me wonder. Why I execute few moves consecutively with speed enabling SpreadCycle then sound stays. Not only when I move slow->fast->slow->fast.
Cheers!
-
Problem with proper setting of StealthChop-to-SpreadCycle mode
Hi,
I have VCast IDEX with Duet 6HC and two 1LCs. Firmware is 3.4beta 5.
I am trying to configure StealthChop with switch to SpreadCycle at certain speed. So far it works, BUT with some issue I cannot understand.
When I enable SpreadCycle only. Then everything works ok. Prints are fine and motors sing their own songs on low speeds.
When I enable StealthChop up to 46.9mm/s (example) then when switch to SpreadCycle (above 46.9mm/s) happens there is an awful metal-like noise ("clack") on start of a movement/change direction. Prints are fine, but that sound defeats the purpose. It happens to all XUYZ as I run SpreadCycle on extruder motors.
Please bear in mind that on X (and most probably U) MGN carriage is very loose so contributes to awful noise while moving carriage around 60-75mm/s. Low quality unfortunately. To be replaced soon.
SpreadCycle only
https://youtu.be/0HDCOK81GIsStealthChop with switch to SpreadCycle
https://youtu.be/jnZPjZBxbwsMacro routine does series of moves on each axis speeding up to 100mm/s and shortens movement distance to 2mm gradually. When StealthChop is enabled its nice and quiet, then SpreadCycle takes over and noise appears. Exactly same routine does not emit that sound when running in SpreadCycle only mode.
I've added driver tuning to my homing sequence and checked with dc42 corexy test script that it is actually tuning. Also tried various advices from forum. No luck so far...
Played with various THIGH, TPWMTHRS and TCOOLTHRS and I was either having StealthChop not enabling at all or that clacking sound. Tried with and without PA and Input Shaping enabled. I've managed get that clack sound a bit down but nothing close to how it is non-existing in SpreadCycle only mode.
Basically I could leave StealthChop on for all moves but during test prints I had layer shifts on Y (heavy bed) when executing travel moves around 100mm/s. So I would loose some speed.
STRANGEST (At least for me) part is that that noise is not present when only SpreadCycle is enabled.
Sooo... Any idea what I am doing wrong would be highly appreciated.
Motors config
M584 X0.0 U0.1 Y0.2 Z0.3:0.4 E20.0:21.0 ; set drive mapping var scSpeed_XU_TPWMTHRS = 200 var scSpeed_XU_THIGH = 200 var sdSpeed_XU = 200 var scSpeed_Y_TPWMTHRS = 200 var scSpeed_Y_THIGH = 200 var sdSpeed_Y_TCOOLTHRS = 200 var scSpeed_Z_TPWMTHRS = 50 var scSpeed_Z_THIGH = 50 var sdSpeed_Z_TCOOLTHRS = 50 M569 P0.0 S0 D3 V{var.scSpeed_XU_TPWMTHRS} H{var.scSpeed_XU_THIGH} ; physical drive 0.0 goes backwards X M915 P0.0 T{var.sdSpeed_XU} M569 P0.1 S0 D3 V{var.scSpeed_XU_TPWMTHRS} H{var.scSpeed_XU_THIGH} ; physical drive 0.1 goes backwards U M915 P0.1 T{var.sdSpeed_XU} M569 P0.2 S0 D3 V{var.scSpeed_Y_TPWMTHRS} H{var.scSpeed_Y_THIGH} ; physical drive 0.2 goes backwards Y M915 P0.2 T{var.sdSpeed_Y_TCOOLTHRS} M569 P0.3 S1 D3 V{var.scSpeed_Z_TPWMTHRS} H{var.scSpeed_Y_THIGH} ; physical drive 0.3 goes forwards ZLeft M915 P0.3 T{var.sdSpeed_Z_TCOOLTHRS} M569 P0.4 S1 D3 V{var.scSpeed_Z_TPWMTHRS} H{var.scSpeed_Z_THIGH} ; physical drive 0.4 goes forwards ZRight M915 P0.4 T{var.sdSpeed_Z_TCOOLTHRS} M569 P20.0 S1 D2 ; physical drive 20.0 goes forwards M569 P21.0 S1 D2 ; physical drive 21.0 goes forwards M915 P0.0:0.1:0.2:0.3:0.4:0.5 T1 ; disable coolstep M915 P20.0:21.0 T1 ; disable coolstep
Drivers reports
Drive 0 runs in reverse, active low enable, timing fast, mode stealthChop, ccr 0x08053, toff 3, tblank 1, thigh 200 (46.9 mm/sec), tpwmthrs 200 (46.9 mm/sec), pwmScaleSum 24, pwmScaleAuto 2, pwmOfsAuto 32, pwmGradAuto 3, pos 824 Driver 0.0: stall threshold 1, filter off, steps/sec 200 (40.0 mm/sec), coolstep threshold 1 (9376.9 mm/sec), action on stall: none Drive 1 runs in reverse, active low enable, timing fast, mode stealthChop, ccr 0x08053, toff 3, tblank 1, thigh 200 (46.9 mm/sec), tpwmthrs 200 (46.9 mm/sec), pwmScaleSum 22, pwmScaleAuto 0, pwmOfsAuto 32, pwmGradAuto 1, pos 168 Driver 0.1: stall threshold 1, filter off, steps/sec 200 (40.0 mm/sec), coolstep threshold 1 (9380.6 mm/sec), action on stall: none Drive 2 runs in reverse, active low enable, timing fast, mode stealthChop, ccr 0x08053, toff 3, tblank 1, thigh 200 (46.8 mm/sec), tpwmthrs 200 (46.8 mm/sec), pwmScaleSum 19, pwmScaleAuto 0, pwmOfsAuto 29, pwmGradAuto 14, pos 24 Driver 0.2: stall threshold 1, filter off, steps/sec 200 (39.9 mm/sec), coolstep threshold 1 (9356.3 mm/sec), action on stall: none Drive 3 runs forwards, active low enable, timing fast, mode stealthChop, ccr 0x08053, toff 3, tblank 1, thigh 50 (37.8 mm/sec), tpwmthrs 50 (37.8 mm/sec), pwmScaleSum 23, pwmScaleAuto 0, pwmOfsAuto 34, pwmGradAuto 23, pos 648 Driver 0.3: stall threshold 1, filter off, steps/sec 200 (8.1 mm/sec), coolstep threshold 1 (1890.0 mm/sec), action on stall: none Drive 4 runs forwards, active low enable, timing fast, mode stealthChop, ccr 0x08053, toff 3, tblank 1, thigh 50 (37.8 mm/sec), tpwmthrs 50 (37.8 mm/sec), pwmScaleSum 24, pwmScaleAuto 0, pwmOfsAuto 35, pwmGradAuto 20, pos 648 Driver 0.4: stall threshold 1, filter off, steps/sec 200 (8.1 mm/sec), coolstep threshold 1 (1890.0 mm/sec), action on stall: none
Speeds
M566 X700 U700 Y600 Z60:60 E300:300 ; set maximum instantaneous speed changes (mm/min) M203 X6000 U6000 Y6000 Z1800:1800 E3600:3600 ; set maximum speeds (mm/min) M201 X800 U800 Y900 Z100:100 E600:600 ; set accelerations (mm/s^2) M204 P800 T1600
Currents and steps
M906 X2125 U2125 Y2000 Z1600:1600 E350:350 I50 M84 X0 U3 Y1 S30 M350 X16 U16 Y16 Z16:16 E16:16 I1 M92 X79.9840 U79.9520 Y80.1603 Z396.8254 E699.3007:699.3007