A few problems after setting up board... Includng stepper sounds
-
Diagnostics
config.g
; Configuration file for Duet 3 Mini 5+ (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Wed Apr 14 2021 01:55:04 GMT-0500 (Central Daylight Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Duet 3" ; set printer name M80 ; start 24v PSU G4 S1 ; wait for expansion boards to start ; Drives M569 P0.0 S1 ; physical drive 0.0 goes forwards M569 P0.1 S0 ; physical drive 0.1 goes forwards M569 P0.2 S0 ; physical drive 0.2 goes forwards M569 P0.3 S0 ; physical drive 0.3 goes forwards M569 P121.0 S1 ; physical drive 121.0 goes forwards M584 X0.0 Y0.1 Z0.2:0.3 E121.0 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X80.00 Y80.00 Z400.00 E420.00 ; set steps per mm M566 X480.00 Y480.00 Z24.00 E300.00 ; set maximum instantaneous speed changes (mm/min) M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X800 Y800 Z800 E800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Independent Z Axis M671 X-20:320 Y0:0 S1.0 ; leadscrews at left (connected to Z) and right (connected to E1) of X axis M208 X-5:305 Y0:310 ; X carriage moves from -5 to 205, Y bed goes from 0 to 200 ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X300 Y310 Z375 S0 ; set axis maxima ; Endstops M574 X1 S3 ; configure sensorless endstop for low end on X M574 Y1 S3 ; configure sensorless endstop for low end on Y ;M574 Y1 S1 P"io0.in" ; configure active-high endstop for low end on Y via pin io0.in M574 Z1 S2 ; configure Z-probe endstop for low end on Z ; Stall Detection M915 X Y R0 F0 ; Z-Probe M950 S0 C"121.io0.out" ; create servo pin 0 for BLTouch ; NOTE: Set dive height to 30mm temporarily M558 P9 C"^121.io0.in" H30 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds G31 P500 X-27 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height M557 X15:285 Y15:295 S20 ; define mesh grid ; Heaters M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"121.temp0" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin 121.temp0 M950 H1 C"121.out0" T1 ; create nozzle heater output on 121.out0 and map it to sensor 1 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H1 S280 ; set temperature limit for heater 1 to 280C ; Fans M950 F0 C"121.out1" Q25000 ; create fan 0 on pin 121.out1 and set its frequency M106 P0 C"Hotend" S1 H1 T45 ; set fan 0 name and value. Thermostatic control is turned on M950 F1 C"121.out2" Q500 ; create fan 1 on pin 121.out2 and set its frequency M106 P1 C"Part" S0 H-1 ; set fan 1 name and value. Thermostatic control is turned off M950 F2 C"out6" ; create fan 2 on pin out6 M106 P2 C"Motherboard" S0.5 H-1 ; set fan 2 name and value. Thermostatic control is turned off ; Tools M563 P0 S"LGX" D0 H1 F0:1 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Custom settings are not defined ; Miscellaneous M501 ; load saved parameters from non-volatile memory T0 ; select first tool
M122
=== Diagnostics === RepRapFirmware for Duet 3 Mini 5+ version 3.3beta2 running on Duet 3 Mini5plus WiFi (SBC mode) Board ID: 524WM-Y296U-D65J0-40KM8-MB03Z-HJSAK Used output buffers: 1 of 40 (10 max) === RTOS === Static ram: 99720 Dynamic ram: 93000 of which 0 recycled Never used RAM 50984, free system stack 200 words Tasks: Linux(ready,137) HEAT(delaying,321) CanReceiv(notifyWait,798) CanSender(notifyWait,372) CanClock(delaying,341) TMC(notifyWait,100) MAIN(running,576) IDLE(ready,20) AIN(delaying,260) Owned mutexes: HTTP(MAIN) === Platform === Last reset 00:04:45 ago, cause: power up Last software reset at 2021-04-14 17:21, reason: User, none spinning, available RAM 50984, slot 1 Software reset code 0x0012 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00000000 BFAR 0xe000ed38 SP 0x00000000 Task Linu Freestk 0 n/a Error status: 0x00 Aux0 errors 0,0,0 Aux1 errors 0,0,0 Supply voltage: min 0.0, current 24.1, max 24.2, under voltage events: 0, over voltage events: 0, power good: yes Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0 Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 11, reads 40603, writes 11, timeouts 0, DMA errors 0 Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 11, reads 40603, writes 11, timeouts 0, DMA errors 0 Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 11, reads 40602, writes 11, timeouts 0, DMA errors 0 Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 11, reads 40602, writes 11, timeouts 0, DMA errors 0 Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 40605, writes 9, timeouts 0, DMA errors 0 Driver 5: position 0, assumed not present Driver 6: position 0, assumed not present Date/time: 2021-04-14 18:14:07 Cache data hit count 636851523 Slowest loop: 1.24ms; fastest: 0.11ms === Storage === Free file entries: 10 SD card 0 not detected, interface speed: 0.0MBytes/sec SD card longest read time 0.0ms, write time 0.0ms, max retries 0 === Move === DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000 === MainDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === AuxDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === Heat === Bed heaters = 0 -1, chamberHeaters = -1 -1 Heater 1 is on, I-accum = 0.0 === GCodes === Segments left: 0 Movement lock held by null HTTP* is doing "M122" in state(s) 0 Telnet is idle in state(s) 0 File is idle in state(s) 0 USB is idle in state(s) 0 Aux is idle in state(s) 0 Trigger* is idle in state(s) 0 Queue is idle in state(s) 0 LCD is idle in state(s) 0 SBC is idle in state(s) 0 Daemon is idle in state(s) 0 Aux2 is idle in state(s) 0 Autopause is idle in state(s) 0 Code queue is empty. === CAN === Messages queued 2485, send timeouts 6, received 3135, lost 0, longest wait 2ms for reply type 6049, peak Tx sync delay 44154, free buffers 17 (min 16) Last cancelled message type 30 dest 127 === SBC interface === State: 4, failed transfers: 0 Last transfer: 4ms ago RX/TX seq numbers: 8593/8593 SPI underruns 0, overruns 0 Number of disconnects: 0, IAP RAM available 0x11584 Buffer RX/TX: 0/0-0 === Duet Control Server === Duet Control Server v3.3-b2 Code buffer space: 4096 Configured SPI speed: 8000000 Hz Full transfers per second: 2.93 Codes per second: 0.02 Maximum length of RX/TX data transfers: 5248/524
M122 B121
Diagnostics for board 121: Duet TOOL1LC firmware version 3.3beta2 (2021-03-10 10:06:22) Bootloader ID: not available Never used RAM 4016, free system stack 0 words Tasks: Move(notifyWait,152) HEAT(delaying,77) CanAsync(notifyWait,67) CanRecv(notifyWait,79) CanClock(notifyWait,67) TMC(delaying,56) MAIN(running,348) AIN(delaying,63) Last reset 00:05:20 ago, cause: VDD brownout Last software reset data not available Driver 0: position 0, 420.0 steps/mm, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 12, reads 29399, writes 12, timeouts 0, DMA errors 0, 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 8, peak Rx sync delay 567, resyncs 1, no step interrupt scheduled VIN: 24.1V MCU temperature: min 18.2C, current 30.4C, max 30.5C Ticks since heat task active 247, ADC conversions started 319803, completed 319803, timed out 0 Last sensors broadcast 0x00000002 found 1 2 ticks ago, loop time 0 CAN messages queued 3601, send timeouts 0, received 2819, lost 0, free buffers 36, min 36, error reg 0 dup 0, oos 0, bm 0, wbm 0
-
Update
I figured out the stepper driver problem. (sort of) It turns out the default threshold for SpreadCycle is 4.3 mm/s which I though was kind of weird.
So now the motors are quiet if I stay in StealthChop but SpreadCycle is still really loud. To me at least, it doesn't sound right. So idk what to do about that.
If anyone has some
M569
orM915
numbers for the TMC2209 to use as a starting point that would be great! -
@nmsmith89 said in A few problems after setting up board... Includng stepper sounds:
I have a 24v PSU hooked up via a relay. When I first booted the board I could control it. (I put an M80 in the config so the board can see the toolboard on boot) But now after updating the firmware on everything I can't control it with M80/M81 its just always on.
By tool board do you mean raspberry pi, or do you mean an actual tool board?
@nmsmith89 said in A few problems after setting up board... Includng stepper sounds:
After running PID tuning on the bed and hotend (the bed was giving a slow heating fault). Both heaters now give me an "overpowered" error on boot.
This is normal. It's telling you what it calculates the potential max temperature would be in a runaway heater situation. It's a warning.
@nmsmith89 said in A few problems after setting up board... Includng stepper sounds:
If anyone has some M569 or M915 numbers for the TMC2209 to use as a starting point that would be great!
https://forum.duet3d.com/topic/22436/missing-steps-cant-print-spreadcycle-stealthchop-tuning-help
There's some bug fixing going on with the mini5 drivers at the moment so might want to follow in that thread to see if you're seeing something similar. At the end of that thread there is a test firmware build you might want to try.
-
Thanks for the links!
Yeah I mean Toolboard 1LC but I am also running in SBC mode.
I pretty much set the steppers to stay in StealthChop and I also got homing working. But, for some reason the BLTouch is constantly flashing red when not being used. It also looks a little different than the normal BLTouch error flashing.
-
@nmsmith89 said in A few problems after setting up board... Includng stepper sounds:
So now the motors are quiet if I stay in StealthChop but SpreadCycle is still really loud. To me at least, it doesn't sound right. So idk what to do about that.
That isn't right. What stepper motors are you using, what current are you running them at, and what VIN voltage?
-
I'll add to some of this as well:
I've dug around in the source code, but still definitely have some questions on motor noise - spreadcycle on my d3 is significantly louder than spreadcycle on my skr mini, both with 24v, both with the same motors.
Is there any config in particular thats recommended for the trinamic settings for the 2209's? Any unique things designed into the circuitry that deviate from the norm as well?
I remember from a seperate thread that the voltage is actually capping the current delivered and that might generate noise, is that what's going on here? I run similar currents thru the e3 mini vs the D3
-
@luke-slaboratory, do you definitely have microstepping interpolation enabled?
If there is insufficient VIN voltage to supply the requested current at high speeds, then the motors will become noisy because microstepping won't work.
-
@dc42 Yes - microstepping interpolation is on - generating at 16x.
This noise is both idle and in motion, however. In motion it makes plenty of sense, this machine goes fast, but the idle noise is always what gets me compared to the machine with an SKR mini
-
If the idle noise is different with the same VIN voltage and motor type, there are a few possibilities:
- Current setting is different. Does whatever firmware you are using on the SKR board set the current correctly?
- Standstill current reduction factor is different. On Duet Mini you can change it using M917. It defaults to 75%. Perhaps the firmware on your other board has a lower default.
- Other relevant parameters are different, for example toff, tblank, hstart/hend/hdec.
-
Thanks for the reply
-
99% sure it sets it correctly - Klipper. When I TMC_DUMP the values seem to line up where I've asked them to be (I could be interpreting the registers wrong - klipper doesn't translate them like marlin/rrf does into mAmps)
-
Samsies - I made them match between the D3 Mini and the SKR mini, and they're the same between RRF/Klipper on the D3 mini, 75%
-
This is the curious part to me - When I run my D3 Mini in RRF, the standby noise is different in character, as well as just a touch quieter. When I'm running Klipper, the standby is noisier and the operation is noisier. This is with the same current delivery specified - RRF does it in Peak, Klipper does it in RMS, so there's a sqrt2 between the two
Klipper uses the following config as their defaults:
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 20
#driver_TBL: 2
#driver_TOFF: 3
#driver_HEND: 0
#driver_HSTRT: 5
#driver_PWM_AUTOGRAD: True
#driver_PWM_AUTOSCALE: True
#driver_PWM_LIM: 12
#driver_PWM_REG: 8
#driver_PWM_FREQ: 1
#driver_PWM_GRAD: 14
#driver_PWM_OFS: 36
#driver_SGTHRS: 0is there anything in RRF you've specifically changed to match the circuitry/tuning of the D3 mini?
-
-
@luke-slaboratory said in A few problems after setting up board... Includng stepper sounds:
is there anything in RRF you've specifically changed to match the circuitry/tuning of the D3 mini?
No, except we added an output filter to reduce EMI.
RRF defaults to tblank= 0 which I presume corresponds to the TBL=2 that you've quoted for Klipper. The other spreadCycle parameters look the same to me.
-
Interesting - I'll make some changes and give it a test to see what happens
-
I'm using the stock CR-10 steppers at 800 mA; VIN is measured at 24.2 V; 1/16 microstepping interpolation on
-
@nmsmith89 said in A few problems after setting up board... Includng stepper sounds:
I'm using the stock CR-10 steppers at 800 mA; VIN is measured at 24.2 V; 1/16 microstepping interpolation on
Do you have a model number for the stepper motors?