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.
    • agent0810undefined
      agent0810
      last edited by

      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.

      Phaedruxundefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator @agent0810
        last edited by

        @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

        agent0810undefined 1 Reply Last reply Reply Quote 0
        • agent0810undefined
          agent0810 @Phaedrux
          last edited by agent0810

          @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
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

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

            Z-Bot CoreXY Build | Thingiverse Profile

            agent0810undefined 2 Replies Last reply Reply Quote 0
            • agent0810undefined
              agent0810 @Phaedrux
              last edited by

              @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
              • agent0810undefined
                agent0810 @Phaedrux
                last edited by

                @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
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  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

                  agent0810undefined 1 Reply Last reply Reply Quote 0
                  • agent0810undefined
                    agent0810 @Phaedrux
                    last edited by

                    @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
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      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

                      agent0810undefined 1 Reply Last reply Reply Quote 0
                      • agent0810undefined
                        agent0810 @Phaedrux
                        last edited by

                        @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
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          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

                          agent0810undefined 1 Reply Last reply Reply Quote 0
                          • agent0810undefined
                            agent0810 @Phaedrux
                            last edited by

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

                            Phaedruxundefined 1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator @agent0810
                              last edited by

                              @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

                              agent0810undefined 1 Reply Last reply Reply Quote 0
                              • agent0810undefined
                                agent0810 @Phaedrux
                                last edited by

                                @Phaedrux
                                would a BL touch be a better route?

                                1 Reply Last reply Reply Quote 0
                                • Phaedruxundefined
                                  Phaedrux Moderator
                                  last edited by

                                  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

                                  agent0810undefined 1 Reply Last reply Reply Quote 0
                                  • agent0810undefined
                                    agent0810 @Phaedrux
                                    last edited by

                                    ![0_1595371525574_B5BF8F32-97A5-4454-A1BB-D0C398173C08.heic](Uploading 100%) @Phaedrux

                                    M115
                                    FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.1.1 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2020-05-19b2

                                    M98 P"config.g"
                                    HTTP is enabled on port 80
                                    FTP is enabled on port 21
                                    TELNET is enabled on port 23
                                    Warning: Heater 0 appears to be over-powered. If left on at full power, its temperature is predicted to reach 365C
                                    Warning: Heater 0 appears to be over-powered. If left on at full power, its temperature is predicted to reach 209C

                                    ; 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![0_1595371433780_B5BF8F32-97A5-4454-A1BB-D0C398173C08.heic]

                                    B5BF8F32-97A5-4454-A1BB-D0C398173C08.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • Phaedruxundefined
                                      Phaedrux Moderator
                                      last edited by

                                      That mount seems to put it at a bit of an angle?

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      agent0810undefined 1 Reply Last reply Reply Quote 0
                                      • agent0810undefined
                                        agent0810 @Phaedrux
                                        last edited by

                                        @Phaedrux

                                        yea the mount isnt the best but the best i can find right now. ive stood there and pushed it level and made sure it is. i make sure it is for tests, but same results. right now when i home/or print it runs the nozzle on the glass bed so nothing comes out.

                                        1 Reply Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator
                                          last edited by

                                          Your trigger height in G31 is still the default 2.5. Your measured amount was closer to 1.7ish, so you need to update that. The trigger height would be more consistent if the mount was improved.

                                          It is triggering now though right?

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

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          agent0810undefined 1 Reply Last reply Reply Quote 0
                                          • agent0810undefined
                                            agent0810 @Phaedrux
                                            last edited by

                                            @Phaedrux

                                            so when i do home all it goes up to the nozzle then back down a bit, then i do the G30 S-1 and it goes up to almost where i need it to be, so close. but still needs to go up a bit more. i have gone through the page alot and changed the offset and trigger heights with no luck. i tried at 1.7, 5, and now im at 0, all put it at the same place.
                                            here is my config currently

                                            ; 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 X50 Y0 Z0.005 ; 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

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