Mini IR triggers too far

  • Re: IR sensor triggering too far away?

    I opened up a new thread since the last one I found was pretty old.

    I recently changed my print surface and updated to RRF 3 and all of a sudden the mini IR triggers about 10mm above the bed.
    Before it worked like a charm, I even tried to trick it with a sheet of paper on the bed, but it still trigers way too early. I also played with the trigger values a bit, I thought I could overcome the flase triggering, unfortunately that didn't work either.
    If I get past the first trigger height it delivers consistent results @ about 2.4mm.

    oh I bought it from E3D about a year ago, so it's a genuine mini IR with SMD LEDs.

    I've no idea what happend to it, could anyone give me a hint what's wrong with it.

    thanks in advance!

  • How are you homing Z ?

    If using G1 to home Z that is not good you need to home Z using G30

    As an example

    ; called to home the Z axis
    G91                     ; Switch to relative positioning moves
    G1 H2 Z4 F200           ; Lower the Z axis (the Bed) by 4mm 
    G90                     ; Revert back to absolute positioning moves
    G30                     ; Raise the Z axis (the bed) and stop when probe is triggered and set Z to the trigger height

  • Here is my homez.g
    I do it the same way in my homeall.g

    G91                 ; relative positioning
    G1 Z5 F6000 H2      ; lift Z relative to current position
    G90                 ; absolute positioning
    G1 X152 Y166.4 F6000 ; go to first probe point
    G30                 ; home Z by probing the bed

    looks like I do it the right way, do I?

  • Next question(s)

    what board, what firmware, and please post your full config.g

  • 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"" 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?

  • @neckbreaker said in Mini IR triggers too far:

    M558 P1 C"" 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

  • 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?!

  • @neckbreaker

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

  • @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.

  • @Veti

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

  • @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?

  • @Veti

    4 times

  • @neckbreaker

    maybe @dc42 can give some input here.
    4 Flashes means analog mode, 2 Modes mean digital.

  • @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.

  • @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.

  • @Veti

    thanks, I found it.

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

  • to enable the pullup resistor try

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

  • @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.

  • @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.

Log in to reply