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

    Mini IR triggers too far

    Scheduled Pinned Locked Moved
    IR Height Sensor
    3
    19
    721
    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.
    • neckbreakerundefined
      neckbreaker
      last edited by

      M80				; Turns on the ATX power supply
      G90                                                ; Send absolute coordinates...
      M83                                                ; ...but relative extruder moves
      
      M669 K1                                            ; Select CoreXY mode
      
      ; Network
      M550 P"BLV MGN Cube"                                 ; Set machine name
      M552 S1                                            ; Enable network
      M587 S"=XXXXXX" P"XXXXXX"            ; Configure access point. You can delete this line once connected
      M586 P0 S1                                         ; Enable HTTP
      M586 P1 S0                                         ; Disable FTP
      M586 P2 S0                                         ; Disable Telnet
      M575 P1 B57600 S1				   ; connect Panel DUE
      
      ; Drives
      M584 X0 Y1 Z2:4 E3
      M569 P0 S1                                         ; Drive 0 goes backwards 
      M569 P1 S1                                         ; Drive 1 goes backwards 
      M569 P2 S1                                         ; Drive 2 goes forwards
      M569 P3 S1 					   ; Drive 3 goes forwards	
      M569 P4 S1                                         ; Drive 4 goes backwards
      ; M569 P5 S1 R0 T3:3:6:0                           ; Drive 5 goes backwards
      ; M569 P6 S1 R0 T3:3:6:0                           ; Drive 6 goes backwards
      M350 X16 Y16 Z16 I1                                ; Configure microstepping with interpolation
      M350 E16 I1					   ; configure microstepping for extruder
      M92 X200 Y200 Z400 E408                            ; Set steps per mm for BMG. 
      M566 X750 Y750 Z180 E300                           ; Set maximum instantaneous speed changes (Jerk) (mm/min) 
      M203 X20000 Y20000 Z600 E3600                      ; Set maximum speeds (mm/min) 
      M201 X2400 Y2400 Z300 E3000			   ; Set accelerations (mm/s^2)
      ; M593 F75.0					   ; cancel ringing at frequency F
      M906 X1600 Y1600 Z1400 E600 I30                    ; Set motor currents (mA) and motor idle factor in per cent
      M84 S30                                            ; Set idle timeout
      
      ; set z rod positions
      M671 X-60:370 Y155:155 S5
      
      ; Pressure advance
      ; M572 D0 S0.003					   ; disabled Pressure advance
      
      ; Axis Limits
      M208 X-20 Y0 Z0 S1                                 ; Set axis minima
      M208 X320 Y330 Z350 S0                             ; Set axis maxima
      
      ; Endstops
      M574 X1 S1 P"xstop"
      M574 Y2 S1 P"ystop"
                                            ; Set active high endstops edit: Y endstop is high(max).
      
      ; Filament sensor
      ; M591 D0 P1 C3 S1				   ; Set Filament sensor Simple type (High) for extruder drive 0, connected to endstop input 3 (E0)
      
      ; Z-Probe
      M574 Z1 S2                                         ; Set endstops controlled by probe
      M558 P1 C"zprobe.in" H2 F60 T9000 I0 R0.5	   ; Set Z probe type mini ir sensor
      G31 P535 X-2 Y-16.4 Z2.56                          ; Set Z probe trigger value, offset and trigger height
      M557 X25:275 Y25:275 S50			   ; Define mesh grid
      
      ; Heaters
      M308 S0 P"bedtemp" Y"thermistor" T100000 R4700     ;B3950 C0 R4700 Set thermistor + ADC parameters for heater 0
      M950 H0 C"bedheat" T0
      M140 H0
      M143 H0 S150                                       ; Set temperature limit for heater 0 to 100C
      M308 S1 P"e0temp" Y"thermistor" T500000 B4723 C1.196220e-7                 ; Set thermistor + ADC parameters for heater 1
      M950 H1 C"e0heat" T1
      143 H1 S380                                       ; Set temperature limit for heater 1 to 260C
      ; M307 H1 A372.3 C109.6 D4.6 B0			   ; Set PID for hotend values
      ; M307 H0 A99.1 C453.2 D2.2 B0		           ; Set PID for heated bed values
      
      ; Fans
      M950 F0 C"fan0" Q1500
      M106 P0 S0 H-1                                     ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M950 F1 C"fan1" Q500
      M106 P1 S1 H1 T60                          	   ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
      ; M106 P2 S1 I0 F500 H1 T35                        ; Set fan 2 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 power saving
      M911 S21 R22 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
      
      ; Custom settings are not configured
      M564 H0                                   	   ; Let the Jog buttons work blv: added to allow jog buttons
      MM501						   ; Load config-override.g (PID-values)
      
      

      It's a Duet 2 WiFi and running RepRapFirmware for Duet 2 WiFi/Ethernet 3.2-beta2 (2020-10-05b2)

      Did I mention that it worked like a charm before I changed the bed surface and the firmware?

      Vetiundefined 1 Reply Last reply Reply Quote 0
      • Vetiundefined
        Veti @neckbreaker
        last edited by

        @neckbreaker said in Mini IR triggers too far:

        M558 P1 C"zprobe.in" H2 F60 T9000 I0 R0.5

        I is not a parameter in RRF3 anymore
        try removing that.

        MM501 ; Load config-override.g (PID-values)

        there is a M to much here

        1 Reply Last reply Reply Quote 0
        • neckbreakerundefined
          neckbreaker
          last edited by neckbreaker

          Removed the I parameter from M558 and the extra M in M501, unfortunately it didn't change anything.

          doesn't the probe trigger independently, no matter what is set in the config?

          I mean if it's just has supply voltage. I thought what's in the config is only signal interpretation and conditioning?!

          Vetiundefined 1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti @neckbreaker
            last edited by

            @neckbreaker

            can you change the probe into Digital mode?
            change the type to P8 and power off the printer and turn it back on.

            neckbreakerundefined 2 Replies Last reply Reply Quote 0
            • neckbreakerundefined
              neckbreaker @Veti
              last edited by neckbreaker

              @Veti

              I've got a print running, as soon as it finished I'll give it a try. 20mins I guess.

              If that works I'm kinda worried about missing functionality, since analog mode has some advantages over digital.

              1 Reply Last reply Reply Quote 0
              • neckbreakerundefined
                neckbreaker @Veti
                last edited by

                @Veti

                changed the probe to P8 but it behaves exactly as before.

                Vetiundefined 1 Reply Last reply Reply Quote 0
                • Vetiundefined
                  Veti @neckbreaker
                  last edited by

                  @neckbreaker said in Mini IR triggers too far:

                  changed the probe to P8 but it behaves exactly as before.

                  how many times has the probe flashed during initialization?

                  neckbreakerundefined 1 Reply Last reply Reply Quote 0
                  • neckbreakerundefined
                    neckbreaker @Veti
                    last edited by

                    @Veti

                    4 times

                    Vetiundefined 1 Reply Last reply Reply Quote 0
                    • Vetiundefined
                      Veti @neckbreaker
                      last edited by

                      @neckbreaker

                      maybe @dc42 can give some input here.

                      https://miscsolutions.wordpress.com/mini-height-sensor-board/
                      4 Flashes means analog mode, 2 Modes mean digital.

                      neckbreakerundefined 1 Reply Last reply Reply Quote 0
                      • neckbreakerundefined
                        neckbreaker @Veti
                        last edited by

                        @Veti

                        where did you read about the initialization flashing? I didn't know that yet.

                        also I'm not sure how the sensor should know about how it's initialized since the signal pin is only an output pin iirc.

                        Vetiundefined 1 Reply Last reply Reply Quote 0
                        • Vetiundefined
                          Veti @neckbreaker
                          last edited by Veti

                          @neckbreaker said in Mini IR triggers too far:

                          where did you read about the initialization flashing? I didn't know that yet.

                          on the website i linked.

                          neckbreakerundefined 1 Reply Last reply Reply Quote 0
                          • neckbreakerundefined
                            neckbreaker @Veti
                            last edited by

                            @Veti

                            thanks, I found it.

                            I wonder if it's even possible to initialize the probe in digital mode using the zprobe.in port on the duet.
                            If so I guess one has to eliminate the trigger value, right?

                            1 Reply Last reply Reply Quote 0
                            • Vetiundefined
                              Veti
                              last edited by

                              to enable the pullup resistor try
                              C"^zprobe.in"

                              maybe that switches it to digital mode, this is just a wild guess based on what i understand from the website.

                              neckbreakerundefined 1 Reply Last reply Reply Quote 0
                              • neckbreakerundefined
                                neckbreaker @Veti
                                last edited by

                                @Veti

                                thanks for your effort @Veti I got it fixed again.

                                it seems that the electrolytic capacitor was slightly bent upwards so it didn't properly shield the IR light between LED and receiver. my guess is that somehow the shiny plastic housing reflected the light in an uncontrolled manner.

                                At least bending it down made it work again.

                                Vetiundefined 1 Reply Last reply Reply Quote 0
                                • Vetiundefined
                                  Veti @neckbreaker
                                  last edited by

                                  @neckbreaker
                                  it would still be interesting how you would get the mini ir to change to the digital mode on a duet2.
                                  just out of curiosity.

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