Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Accelerometer - Duet 3 Mini5+ - M955 odd behaviour

    Scheduled Pinned Locked Moved Unsolved
    General Discussion
    1
    1
    148
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Fred-Yundefined
      Fred-Y
      last edited by

      I'm hoping to have some help with this one because I cannot figure out what's wrong - The same is happening on both 3.3 and 3.4b7+7
      This is on a Delta with a Duet 3 mini 5+ and Smart Effector, I just installed a LIS3DH which is wired properly - I have some samples using the Input shaping plugin on the beta of 3.4.

      The LIS3DH is connected on both IO2 (+3.3v, ground, in and out) and Temp Daughterboard (MSI, MSO and SCK).

      Here what I have to do to get the accelerometer to work:

      • M955 P0 C"io2.out+io2.in" => Fail: Error: M955: Accelerometer not found on specified port
      • M955 P0 C"io2.in+io2.out" => Fail: Error: M955: Accelerometer not found on specified port (expected as In/out are reversed)
      • M955 P0 C"io2.out+io2.in" => Work: Accelerometer 0:0 with orientation 20 samples at 1344Hz with 10-bit resolution

      I have not even touched the wires between the commands, I have been able to reproduce it many time so I don't think it's a random issue.

      I'm confused, it does not make sense ... maybe I missed a detail it's the first time I setup an accelerometer on a Mini5+ 😶

      It might worth to mention that the graphs doesn't look good (maybe just some noise??)
      5c1bdbf3-ac72-4898-9cbd-674647fd97f2-image.png

      config.g

      ; Configuration file for Duet 3 Mini 5+ (firmware version 3.3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v3.3.5 on Sat Nov 20 2021 16:15:20 GMT-0700 (GMT-07:00)
      
      ; General preferences
      M575 P1 S1 B57600                            ; enable support for PanelDue
      G90                                          ; send absolute coordinates...
      M83                                          ; ...but relative extruder moves
      M550 P"SR"                                   ; set printer name
      M665 R164 L315 B130 H310                     ; Set delta radius, diagonal rod length, printable radius and homed height
      M666 X0 Y0 Z0                                ; put your endstop adjustments here, or let auto calibration find them
      
      ; Network
      M552 S1                                      ; enable network
      M586 P0 S1                                   ; enable HTTP
      M586 P1 S0                                   ; disable FTP
      M586 P2 S0                                   ; disable Telnet
      
      ; Drives
      M569 P0.0 S1                                 ; physical drive 0.0 goes forwards
      M569 P0.1 S1                                 ; physical drive 0.1 goes forwards
      M569 P0.2 S1                                 ; physical drive 0.2 goes forwards
      M569 P0.3 S0                                  ; physical drive 0.3 goes forwards
      M584 X0.0 Y0.1 Z0.2 E0.3                     ; set drive mapping
      M350 X16 Y16 Z16 E16 I1                      ; configure microstepping with interpolation
      ;M92 X80.00 Y80.00 Z80.00 E726                ; Sailfin - set steps per mm
      M92 X80.00 Y80.00 Z80.00 E562                ; LGX Lite - set steps per mm
      M566 X1600.00 Y1600.00 Z1200.00 E400.00     ; set maximum instantaneous speed changes (mm/min)
      M203 X18000.00 Y18000.00 Z18000.00 E3000.00  ; set maximum speeds (mm/min)
      M201 X3000.00 Y3000.00 Z2000.00 E600.00     ; set accelerations (mm/s^2)
      M906 X1000 Y1000 Z1000 E500 I30              ; set motor currents (mA) and motor idle factor in per cent
      M84 S30                                      ; Set idle timeout
      
      ; Axis Limits
      M208 Z0 S1                                   ; set minimum Z
      
      ; Endstops
      M574 X2 S1 P"io5.in"                         ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io2.in
      M574 Y2 S1 P"io3.in"                         ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io3.in
      M574 Z2 S1 P"io4.in"                         ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin io4.in
      
      ; Z-Probe
      ;M558 P5 C"!^io6.in" H5 F600 T6000             ; set Z probe type to switch and the dive height + speeds
      ; xx M558 P8 R0.4 C"io3.in+io3.out"  F240 T2400   
      M558 P8 C"io1.in+io1.out" H5 R0.4 F1200 T12000 A5 S0.04 
      ;M558 H30                                     ;*** Remove this line after delta calibration has been done and new delta parameters have been saved
      ;G31 P500 X0 Y0 Z17.862                          ; set Z probe trigger value, offset and trigger height
      G31 P500 X0 Y0 Z0
      M557 R120 S30                                 ; 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 S0.90                             ; disable bang-bang mode for the bed heater and set PWM limit
      M140 H0                                      ; map heated bed to heater 0
      M143 H0 S80                                  ; set temperature limit for heater 0 to 80C
      M308 S1 P"temp1" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin temp1
      M950 H1 C"out1" T1                           ; create nozzle heater output on out1 and map it to sensor 1
      M307 H1 B0 S1.00                             ; disable bang-bang mode for heater  and set PWM limit
      M143 H1 S240                                 ; set temperature limit for heater 1 to 240C
      
      ; Fans
      M950 F0 C"out2" Q2500                        ; create fan 0 on pin out5 and set its frequency
      M106 P0 S0 H-1  C"Part Fan"                  ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"out6" Q100                         ; create fan 1 on pin out6 and set its frequency
      M106 P1 S1 H1 T45                            ; set fan 1 value. Thermostatic control is turned on
      
      ; Tools
      M563 P0 D0 H1 F0                             ; 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
      
      ; Set Extruder pressure advance
      M572 D0 S0.10
      
      ; Custom settings are not defined
      M501
      

      Log in 3.3 with some M122 (log is too long to be paste here)
      Mini5-log-v3-3.txt

      1 Reply Last reply Reply Quote 0
      • Fred-Yundefined Fred-Y marked this topic as a question
      • First post
        Last post
      Unless otherwise noted, all forum content is licensed under CC-BY-SA