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

New IR z probe issues

Scheduled Pinned Locked Moved
IR Height Sensor
7
72
3.5k
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.
  • undefined
    agent0810
    last edited by 16 Jul 2020, 16:05

    New to 3d printing and have a Duet 2 wifi board on my ender 5 pro. trying to add on my IR probe. it keeps showing red 1000 on the web interface. Been trying to follow this with no luck:

    https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Mini_differential_IR_sensor_by_dc42

    This is the sensor i bought with cable:

    https://www.filastruder.com/products/mini-differential-ir-height-sensor

    here is my config:

    ; Configuration file for Duet WiFi (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sun Jul 05 2020 20:32:26 GMT-0500 (Central Daylight Time)

    ; General preferences
    G90 ; send absolute coordinates...
    M83 ; ...but relative extruder moves
    M550 P"Schaal3DPrinter" ; set printer name

    ; Network
    M552 S1 ; enable network
    M586 P0 S1 ; enable HTTP
    M586 P1 S1 ; enable FTP
    M586 P2 S1 ; enable Telnet

    ; Drives
    M569 P0 S0 ; physical drive 0 goes forwards
    M569 P1 S0 ; physical drive 1 goes forwards
    M569 P2 S0 ; physical drive 2 goes forwards
    M569 P3 S0 ; physical drive 3 goes forwards
    M584 X0 Y1 Z2 E3 ; set drive mapping
    M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z800.00 E102.30 ; 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 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

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; set axis minima
    M208 X225 Y225 Z300 S0 ; set axis maxima

    ; Endstops
    M574 X2 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop
    M574 Y2 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop
    M574 Z1 S1 P"zstop" ; configure active-high endstop for high end on Z via pin zstop

    ; Z-Probe
    M558 P1 C"zprobe.in" H5 F120 T6000 ; 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:215 Y15:195 S20 ; define mesh grid

    ; Heaters
    M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
    M950 H0 C"bedheat" T0 ; create bed heater output on bedheat 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"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
    M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
    M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit

    ; Fans
    M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
    M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
    M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 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

    ; Custom settings are not defined

    ; Miscellaneous
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
    M501

    undefined 1 Reply Last reply 16 Jul 2020, 17:55 Reply Quote 0
    • undefined
      Phaedrux Moderator @agent0810
      last edited by 16 Jul 2020, 17:55

      @agent0810 said in New IR z probe issues:

      it keeps showing red 1000 on the web interface.

      @agent0810 said in New IR z probe issues:

      ; Z-Probe
      M558 P1 C"zprobe.in" H5 F120 T6000 ;

      You can try inverting the signal by adding a ! to the pin name like this

      M558 P1 C"!zprobe.in" H5 F120 T6000

      But that seems odd for the IR sensor as I don't think that's normally required.

      Use this test method after to carefully check it works.

      https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • undefined
        agent0810
        last edited by agent0810 16 Jul 2020, 18:07

        I did the dynamic test after adding the ! and it failed. The bed was moving up twards the probe and put a paper under the probe to stop it and it didnt stop. i dont see what do to do if that test fails. thank you again!

        The sensor on the web page now shows 5. so that is an improvement i think.

        1 Reply Last reply Reply Quote 0
        • undefined
          Phaedrux Moderator
          last edited by 16 Jul 2020, 20:00

          Can you double check the wiring? It's showing as triggered when it should not be. The Zprobe pin would be suspect.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • undefined
            jay_s_uk
            last edited by 17 Jul 2020, 06:25

            These should have the pullup resistor enabled.
            So it would be

            M558 P1 C"^zprobe.in" H5 F120 T6000
            

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            1 Reply Last reply Reply Quote 0
            • undefined
              agent0810
              last edited by 17 Jul 2020, 16:27

              Thanks guys, got the wiring fixed. centered it on the bed and got it where it needed to be, ran the G92 Z0 to tell it that is Z0, then ran lowered the bed and ran G30 S-1 and it keeps stopping before it should. states stopped height 1.274mm or another time 1.255mm or another time 1.320mm. not sure what i am doing wrong on settting the Z0.

              undefined 1 Reply Last reply 17 Jul 2020, 18:49 Reply Quote 0
              • undefined
                Phaedrux Moderator @agent0810
                last edited by 17 Jul 2020, 18:49

                @agent0810 said in New IR z probe issues:

                tates stopped height 1.274mm or another time 1.255mm or another time 1.320mm.

                Is your bed at temp during this? Have you PID tuned the bed? Using bang bang can cause the bed shape to change when the heater is energized and could explain the variation.

                Z-Bot CoreXY Build | Thingiverse Profile

                undefined 1 Reply Last reply 17 Jul 2020, 19:15 Reply Quote 0
                • undefined
                  agent0810 @Phaedrux
                  last edited by agent0810 17 Jul 2020, 19:15

                  @Phaedrux my bed was not at temp, so it was at room temp. i did a PID tune after i installed the new board as well.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    Phaedrux Moderator
                    last edited by 17 Jul 2020, 19:35

                    What is the beb surface? can you test with a sheet of plain white paper?

                    Z-Bot CoreXY Build | Thingiverse Profile

                    undefined 2 Replies Last reply 17 Jul 2020, 20:02 Reply Quote 0
                    • undefined
                      agent0810 @Phaedrux
                      last edited by 17 Jul 2020, 20:02

                      @Phaedrux its a glass bes with a black material on it. i can throw a piece of white paper on it to see if it makes a difference.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        agent0810 @Phaedrux
                        last edited by 20 Jul 2020, 14:18

                        @Phaedrux sorry for the delay, same result with the plain white piece of paper, stopped at

                        Stopped at height 1.745 mm

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Phaedrux Moderator
                          last edited by 20 Jul 2020, 19:39

                          Consistently? Does that make sense given the thickness of the glass? assuming the black is on the back side?

                          Z-Bot CoreXY Build | Thingiverse Profile

                          undefined 1 Reply Last reply 20 Jul 2020, 19:46 Reply Quote 0
                          • undefined
                            agent0810 @Phaedrux
                            last edited by 20 Jul 2020, 19:46

                            @Phaedrux im new to this but i dont think so. i thought when we got it level in the middle and sent that code it told the probe where 0 is? shouldnt that be where it stops then?

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              Phaedrux Moderator
                              last edited by 20 Jul 2020, 19:59

                              Post your homing files and bed.g.

                              When you do the G30 S-1 procedure to measure the trigger height, is it consistent now?

                              Z-Bot CoreXY Build | Thingiverse Profile

                              undefined 1 Reply Last reply 20 Jul 2020, 20:03 Reply Quote 0
                              • undefined
                                agent0810 @Phaedrux
                                last edited by 20 Jul 2020, 20:03

                                @Phaedrux

                                bed.g
                                ; called to perform automatic bed compensation via G32
                                ;
                                ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sun Jul 05 2020 20:32:26 GMT-0500 (Central Daylight Time)
                                M561 ; clear any bed transform
                                G29 ; probe the bed and enable compensation

                                ; homeall.g
                                ; called to home all axes
                                ;
                                ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sun Jul 05 2020 20:32:27 GMT-0500 (Central Daylight Time)
                                G91 ; relative positioning
                                G1 H2 Z5 F6000 ; lift Z relative to current position
                                G1 H1 X+250 Y+250 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
                                G1 H2 X-5 Y-5 F6000 ; go back a few mm
                                G1 H1 X+230 Y+230 F360 ; move slowly to X and Y axis endstops once more (second pass)
                                ;G1 H1 Z305 F360 ; move Z up stopping at the endstop
                                G1 H1 Z-320 F360 ; move Z stopping at the endstop
                                G90 ; absolute positioning

                                ; Uncomment the following lines to lift Z after probing
                                ;G91 ; relative positioning
                                ;G1 Z5 F100 ; lift Z relative to current position
                                ;G90 ; absolute positioning

                                ; homex.g
                                ; called to home the X axis
                                ;
                                ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sun Jul 05 2020 20:32:27 GMT-0500 (Central Daylight Time)
                                G91 ; relative positioning
                                G1 H2 Z5 F6000 ; lift Z relative to current position
                                G1 H1 X+250 F1800 ; move quickly to X axis endstop and stop there (first pass)
                                G1 H2 X-5 F6000 ; go back a few mm
                                G1 H1 X+230 F360 ; move slowly to X axis endstop once more (second pass)
                                G1 H2 Z-5 F6000 ; lower Z again
                                G90 ; absolute positioning

                                ; homey.g
                                ; called to home the Y axis
                                ;
                                ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sun Jul 05 2020 20:32:27 GMT-0500 (Central Daylight Time)
                                G91 ; relative positioning
                                G1 H2 Z5 F6000 ; lift Z relative to current position
                                G1 H1 Y+230 F1800 ; move quickly to Y axis endstop and stop there (first pass)
                                G1 H2 Y-5 F6000 ; go back a few mm
                                G1 H1 Y+230 F360 ; move slowly to Y axis endstop once more (second pass)
                                G1 H2 Z-5 F6000 ; lower Z again
                                G90 ; absolute positioning

                                ; homez.g
                                ; called to home the Z axis
                                ;
                                ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sun Jul 05 2020 20:32:27 GMT-0500 (Central Daylight Time)
                                G91 ; relative positioning
                                G1 H2 Z5 F6000 ; lift Z relative to current position
                                ;G1 H1 Z305 F1800 ; move Z up until the endstop is triggered
                                G1 H1 Z-320 F360 ; move Z stopping at the endstop
                                G90 ; absolute positioning

                                ; Uncomment the following lines to lift Z after probing
                                ;G91 ; relative positioning
                                ;G1 Z5 F100 ; lift Z relative to current position
                                ;G90 ; absolute positioning

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  Phaedrux Moderator
                                  last edited by 20 Jul 2020, 20:20

                                  Your homing file is configured to use the Z endstop instead of the probe.

                                  So in homeall/homez you'd want to replace this part:

                                  @agent0810 said in New IR z probe issues:

                                  ;G1 H1 Z305 F360 ; move Z up stopping at the endstop
                                  G1 H1 Z-320 F360 ; move Z stopping at the endstop
                                  G90 ; absolute positioning

                                  with something like this

                                  G90 ; absolute positioning
                                  G1 X150 Y150 F6000 ; move probe to center of bed
                                  G30 ; probe the bed

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  undefined 1 Reply Last reply 21 Jul 2020, 17:08 Reply Quote 0
                                  • undefined
                                    agent0810 @Phaedrux
                                    last edited by 21 Jul 2020, 17:08

                                    @Phaedrux Changed as requested, and same result. do i need to move the mount holding my probe up a bit?

                                    undefined 1 Reply Last reply 21 Jul 2020, 19:54 Reply Quote 0
                                    • undefined
                                      Phaedrux Moderator @agent0810
                                      last edited by 21 Jul 2020, 19:54

                                      @agent0810 said in New IR z probe issues:

                                      do i need to move the mount holding my probe up a bit?

                                      Maybe? I haven't seen how you have it mounted and even then I'm not an expert on the IR probe. Maybe post a photo?

                                      Also check the lens of the sensor to see if it's dirty or bent or something. It can be cleaned with a cotton bud and IPA.

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      undefined 1 Reply Last reply 21 Jul 2020, 21:48 Reply Quote 0
                                      • undefined
                                        agent0810 @Phaedrux
                                        last edited by 21 Jul 2020, 21:48

                                        @Phaedrux
                                        would a BL touch be a better route?

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          Phaedrux Moderator
                                          last edited by 21 Jul 2020, 21:54

                                          Well the IR sensor should be a good choice, I'm just not sure what's really going on. Can you provide some more details on the setup as it is now so we can figure out if it's a configuration issues, or an issue with the probe itself. We'll try and cover our bases first.

                                          Post your config.g as it is right now. Confirm you're running fw 3.1.1 by sending M115. Also send M98 P"config.g" and post the results.

                                          Post a photo of your probe as mounted and a close up of it. Also maybe the wiring at the board.

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          undefined 1 Reply Last reply 21 Jul 2020, 22:53 Reply Quote 0
                                          1 out of 72
                                          • First post
                                            1/72
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA