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

    IR probe and Duet Maestro

    Scheduled Pinned Locked Moved Solved
    IR Height Sensor
    irprobe maestro
    3
    13
    1.8k
    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.
    • Mautundefined
      Maut
      last edited by Maut

      This is my M558 command in config.g:

      M558 P1 H5 F120 T6000

      And my full config.g:

      ; Configuration file for Duet Maestro (firmware version 1.20 or newer)
      ; executed by the firmware on start-up
      ;

      ; General preferences
      M111 S0 ; Debugging off
      G21 ; Work in millimetres
      G90 ; Send absolute coordinates...
      M83 ; ...but relative extruder moves
      M555 P1 ; Set firmware compatibility to look like RepRapFirmare
      ; Automatic saving after power loss is not enabled
      M208 X0 Y0 Z0 S1 ; Set axis minima
      M208 X210 Y205 Z195 S0 ; Set axis maxima

      ; Endstops
      M574 X1 Y1 S1 ; Set active high endstops
      M574 Z1 S2 ; Set endstops controlled by probe
      M558 P1 H5 F120 T6000 ; Set Z probe type to unmodulated and the dive height + speeds
      G31 P500 X0 Y19.22 Z2.850 ; Set Z probe trigger value, offset and trigger height
      M557 X10:210 Y20:200 S20 ; Define mesh grid

      ; Drives
      M569 P0 S0 ; Drive 0 goes backwards
      M569 P1 S1 ; Drive 1 goes forwards
      M569 P2 S0 ; Drive 2 goes backwards
      M569 P3 S1 ; Drive 3 goes forwards
      M350 X16 Y16 Z16 E16 I1 ; set 16x microstepping with interpolation
      M92 X80 Y80 Z400 E831 ; Set steps per mm
      M566 X1200 Y1200 Z60 E300 ; Set maximum instantaneous speed changes (mm/min)
      M203 X12000 Y12000 Z600 E3600 ; Set maximum speeds (mm/min)
      M201 X3000 Y3000 Z50 E1000 ; Set accelerations (mm/s^2)
      M906 X1000 Y1000 Z1000 E1300 I30 ; Set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      M671 X110:15:205 Y15:195:195 P0.5

      ; Heaters
      M305 P0 T100000 B3950 C0 R2200 ; Set thermistor + ADC parameters for heater 0
      M143 H0 S120 ; Set temperature limit for heater 0 to 120C
      M307 H0 A131.4 C339.7 D1.0 B0 ; Set PID parameters for heater 0 (bed) at 60C
      M305 P1 T100000 B4725 C7.060000e-8 R2200 ; Set thermistor + ADC parameters for heater 1
      M143 H1 S280 ; Set temperature limit for heater 1 to 280C
      M307 H1 A361.8 C225.6 D5.8 B0 ; Set PID parameters for heater 1 (hotend) at 210C

      ; Tools
      M563 P0 D0 H1 ; 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

      ; Fans
      M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P1 S0 I0 F500 H-1 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off

      ; Custom settings are not configured

      ; Miscellaneous
      T0 ; Select first tool

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        That config looks ok to me. I have one of our own IR sensors in my Maestro-powered Ormerod printer. I am fairly sure it flashes four times at power up, but I'll check next time I use it.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by

          I have confirmed, an IR sensor connected correctly to the Duet Maestro in my Ormerod printer flashes 4 times at startup, using P1 in the M558 command.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • Mautundefined
            Maut
            last edited by

            Thanks, but would it be a problem for my printer? The two flashes mean digital output, but I'm using the analog output anyway, am I right?
            If it's a problem, what else should I look into?

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators
              last edited by

              Something isn't right, however the probe will still work even if the Duet is configured for analog mode and the IR sensor is producing a digital output. You won't get the benefit of the probing move slowing down when the probe gets close to trigger height.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • simplesimsonundefined
                simplesimson
                last edited by

                Hi, I´ve the same problem as Maut. But my Z-Probe also reads 1000 all the time. On your webpage https://miscsolutions.wordpress.com/mini-height-sensor-board/ you say its due to high IR influence from eg sunbeams. To avoid the sun i tried it in the night 😉
                My config looks like this:
                ; Configuration file for Duet Maestro (firmware version 1.21)
                ; executed by the firmware on start-up
                ;

                ; General preferences
                G90 ; Send absolute coordinates...
                M83 ; ...but relative extruder moves

                M667 S1 ; Select CoreXY mode

                ; Network
                M550 P"Tronxy" ; Set machine name

                M552 P192.168.178.15 S1 ; Enable network and acquire dynamic address via DHCP
                M586 P0 S1 ; Enable HTTP
                M586 P1 S0 ; Disable FTP
                M586 P2 S0 ; Disable Telnet

                ; Drives
                M569 P0 S1 ; Physical drive 0 goes backwards
                M569 P1 S1 ; Physical drive 1 goes backwards
                M569 P2 S0 ; Physical drive 2 goes forwards
                M569 P3 S1 ; Physical drive 3 goes forwards
                M350 X128 Y128 Z16 E128 I1 ; Configure microstepping with interpolation
                M92 X640.00 Y640.00 Z400.00 E2222.38 ; Set steps per mm
                M566 X900.00 Y900.00 Z12.00 E120.00 ; Set maximum instantaneous speed changes (mm/min)
                M203 X6000.00 Y6000.00 Z180.00 E9000.00 ; Set maximum speeds (mm/min)
                M201 X500.00 Y500.00 Z20.00 E250.00 ; Set accelerations (mm/s^2)
                M906 X800.00 Y800.00 Z800.00 E800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
                M84 S30 ; Set idle timeout

                ; Axis Limits
                M208 X0 Y0 Z0 S1 ; Set axis minima
                M208 X350 Y300 Z350 S0 ; Set axis maxima

                ; Endstops
                M574 X1 Y1 Z2 S0 ;set endstops low active

                ; Z-Probe
                ;M574 Z2 S2 ; Set endstops controlled by probe
                ;M558 P1 H0 F120 T3000 ; Set Z probe type to unmodulated and the dive height + speeds
                ;G31 P500 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
                ;M557 X15:335 Y15:195 S20 ; Define mesh grid

                ; Heaters
                M302 P1

                M307 H0 B0 S1.00 ; Disable bang-bang mode for the bed heater and set PWM limit
                M305 P0 T100000 B3950 ; Set thermistor + ADC parameters for heater 0
                M143 H0 S120 ; Set temperature limit for heater 0 to 120C
                M305 P1 T100000 B3950 ; Set thermistor + ADC parameters for heater 1
                M143 H1 S280 ; Set temperature limit for heater 1 to 280C

                ; Fans
                M106 P0 S0 I0 F500 H T45 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
                M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on

                ; Tools
                M563 P0 D0 H1 ; 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

                ; Automatic saving after power loss is not enabled

                ; Custom settings are not configured

                I commended the Z-Probing as I dont get good reading with "Send M558 P1 to the Duet, then send G31 P500 Z1.0."

                I really would appreciate your help!

                Thanks a lot 🙂

                1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators
                  last edited by

                  @simplesimson, does the Z probe reading in DWC depend on whether it is triggered or not (i.e. whether the red LED on the sensor is illuminated)?

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  simplesimsonundefined 1 Reply Last reply Reply Quote 0
                  • simplesimsonundefined
                    simplesimson @dc42
                    last edited by

                    @dc42 Hey, sorry for the late reply - first of all thanks for your great work, read a lot of your posts and so on. Thanks a lot.
                    Back to topic:
                    In the DuetWebplatform the reading is around 5 when no item is near the sensor. If it gets triggered it jumps digital to 1000. There is no analog change/increase.

                    1 Reply Last reply Reply Quote 0
                    • simplesimsonundefined
                      simplesimson
                      last edited by

                      Hey,

                      i´m still having the same problem. Do I need to use M558 P2 for the "digital probe"? if I do so, the Probe Z status in DWC shows 0 (5) when not triggered and 0(1000) when triggered. By Triggerd i mean a red LED.

                      dc42undefined 1 Reply Last reply Reply Quote 0
                      • simplesimsonundefined
                        simplesimson
                        last edited by

                        Good morning. The Probe works as it should. It Reports 460-530 in trigger range.

                        I must have made a misstake. If somebody in future has the same Problem. Have a look at your Z-Speed I slowed it down a lot maybe thats been a Issue. Also I changed my cable routing.

                        I had the suspission that the heating of my hotend might have an effect on the signal of the probe.

                        ty for your help

                        1 Reply Last reply Reply Quote 1
                        • dc42undefined
                          dc42 administrators @simplesimson
                          last edited by

                          @simplesimson said in IR probe and Duet Maestro:

                          Hey,

                          i´m still having the same problem. Do I need to use M558 P2 for the "digital probe"? if I do so, the Probe Z status in DWC shows 0 (5) when not triggered and 0(1000) when triggered. By Triggerd i mean a red LED.

                          Sorry for the late response. M558 P1 is correct for the IR sensor that we sell. P2 is only for the sensor that RepRapPro included in the Ormerod 2 printer and I think also the Huxley Duo and one of their Mendel printers.

                          Duet WiFi hardware designer and firmware engineer
                          Please do not ask me for Duet support via PM or email, use the forum
                          http://www.escher3d.com, https://miscsolutions.wordpress.com

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