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

    how to configure magnetic filament sensor on duet 3 mini 5+

    Scheduled Pinned Locked Moved
    Filament Monitor
    2
    4
    245
    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.
    • j3dkundefined
      j3dk
      last edited by

      I have conected my rotating magnet sensor to IO_5 on Duet3 mini 5+ but I can't find out how to set up my 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.2 on Thu Sep 16 2021 12:55:16 GMT+0200 (Centraleuropæisk sommertid)

      ; General preferences
      M575 P1 S1 B57600 ; enable support for PanelDue
      G90 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      M550 P"JK Preddy mod" ; set printer name
      M665 R261 L440 B185 H420 ; 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 S1 ; enable 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 backwards
      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 E415.00 ; set steps per mm
      M566 X1200.00 Y1200.00 Z1200.00 E1200.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X18000.00 Y18000.00 Z18000.00 E1200.00 ; set maximum speeds (mm/min)
      M201 X1000.00 Y1000.00 Z1000.00 E1000.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

      ; Axis Limits
      M208 Z0 S1 ; set minimum Z

      ; Endstops
      M574 X2 S1 P"^io1.in" ; configure active-high endstop for high end on X via pin ^io1.in
      M574 Y2 S1 P"^io2.in" ; configure active-high endstop for high end on Y via pin ^io2.in
      M574 Z2 S1 P"^io3.in" ; configure active-high endstop for high end on Z via pin ^io3.in

      ; Z-Probe
      M558 P5 R0.4 C"temp2+io4.out" H5 F1200 T6000 ; set Z probe type to effector and the dive height + speeds
      M558 H30 ;*** Remove this line after delta calibration has been done and new delta parameters have been saved
      G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
      M557 R180 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 B1 S1.00 ; enable 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"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 S280 ; set temperature limit for heater 1 to 280C

      ; Fans
      M950 F0 C"out3" Q500 ; create fan 0 on pin out3 and set its frequency
      M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"out4" Q500 ; create fan 1 on pin out4 and set its frequency
      M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on
      M950 F2 C"out5" Q500 ; create fan 2 on pin out5 and set its frequency
      M106 P2 S0.25 H-1 ; set fan 2 value. Thermostatic control is turned off

      ; 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

      ; Custom settings
      M591 P3 C"e0_stop" S1 ; filament monitor connected to E0_stop

      ; Miscellaneous
      T0 ; select first tool

      what am I missing?

      Jk

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @j3dk
        last edited by droftarts

        @j3dk See https://duet3d.dozuki.com/Wiki/Duet3dFilamentMonitor_RotatingMagnetVersion#Section_Duet_Num_3 for connecting.

        M591 P3 C"e0_stop" S1 ; filament monitor connected to E0_stop

        Change C"e0_stop" (which is Duet 2 pin name) to C"io[x].in" where [x] is the IO connector you have connected the sensor to.

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        j3dkundefined 1 Reply Last reply Reply Quote 0
        • j3dkundefined
          j3dk @droftarts
          last edited by

          @droftarts Hi there thank you for the advise. now I have figured it out putting this line in my config.g it works
          M591 D0.3 P3 C"^io5.in" S1 ; filament monitor connected to E0_stop

          Jk

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @j3dk
            last edited by

            @j3dk said in how to configure magnetic filament sensor on duet 3 mini 5+:

            C"^io5.in"

            You shouldn't need the ^ character in the pin name, it enables the pullup resistor.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA