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

    IR Sensor always triggered

    Scheduled Pinned Locked Moved Solved
    IR Height Sensor
    5
    12
    646
    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.
    • zak062undefined
      zak062
      last edited by

      Currently building a new printer, first time using Duet2 WIFI and an IR sensor. The IR Sensor is always triggered. The LED on the sensor is off unless I put something near it. I believe it's a config issue but I'm unable to figure it out. Already updated to the newest 3.2.2 firmware and tried various m558 configs. I've attached my config.g and photos of the pin outs. Any help would be appriciated.

      config.g

      PXL_20210228_172415355.jpg
      PXL_20210226_202849864.jpg

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

        your config has a mixture of rrf3 and rrf2 syntax. that does not work

        which firmware version are you running?

        1 Reply Last reply Reply Quote 0
        • zak062undefined
          zak062
          last edited by zak062

          Generating a new config file with https://configtool.reprapfirmware.org/ does not change the triggering problem. I am on the latest stable release 3.2.2 firmware

          config.g

          1 Reply Last reply Reply Quote 0
          • nick9one1undefined
            nick9one1
            last edited by nick9one1

            Heres my config.g for the same printer (bmvmgn cube?).

            I'm on 3.2 and use the mini IR.

            ; Configuration file for Duet WiFi (firmware version 3)
            ; executed by the firmware on start-up
            ;
            ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sat Sep 05 2020 23:57:30 GMT+0100 (British Summer Time)
            
            ; General preferences
            M80					       	; Turns on the ATX power supply
            G90                                            	; send absolute coordinates...
            M83                                            	; ...but relative extruder moves
            M550 P"BLV MGN Cube"                           	; set printer name
            M669 K1                                        	; select CoreXY mode
            
            ; Network
            M552 S1                                        	; enable network
            M587 S"your_wifi_name" P"your_password"        	; 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
            
            ; Drives
            M569 P0 S0                                     	; physical drive 0 goes backwards
            M569 P1 S1                                     	; physical drive 1 goes forwards
            M569 P2 S1                                     	; physical drive 2 goes forwards
            M569 P3 S0                                     	; physical drive 3 goes backwards
            M584 X0 Y1 Z2 E3                               	; set drive mapping
            M350 X16 Y16 Z16 E16 I1                        	; configure microstepping with interpolation
            M92 X200.00 Y200.00 Z3200.00 E415.35            ; set steps per mm
            M566 X820.00 Y820.00 Z70.00 E500.00             ; set maximum instantaneous speed changes (mm/min)
            M203 X20000.00 Y20000.00 Z500.00 E2000.00      	; set maximum speeds (mm/min)
            M201 X3000.00 Y3000.00 Z150.00 E5000.00        	; set accelerations (mm/s^2)
            M906 X1100 Y1100 Z1100 E1100 I30               	; set motor currents (mA) and motor idle factor in per cent
            M84 S30                                        	; Set idle timeout
            
            ; Pressure advance
            M572 D0 S0.6
            
            ; Axis Limits
            M208 X-23 Y0 Z0 S1                            	; set axis minima
            M208 X305 Y332 Z950 S0                        	; set axis maxima
            
            ; Endstops
            M564 H0					       	; allow jog without homing
            M574 X1 S1 P"xstop"                            	;
            M574 Y2 S1 P"ystop"                            	;
            M574 Z1 S1 P"zstop"                            	; configure Z-probe endstop for low end on Z
            
            ; Z-Probe
            M558 P1 H5 C"^zprobe.in" H5 F250 T9000 R0.5 T7200	; set Z probe type to switch and the dive height + speeds
            G31 P500 X-2 Y-16.4 Z1.45                      		; set Z probe trigger value, offset and trigger height
            M557 X20:292 Y15:300 P5                      		; define mesh grid
            
            ; Heaters
            M308 S0 P"bedtemp" Y"thermistor" T101302.1408 B3950 C0 R4700 A"Bed Temp" ; 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
            M140 H0                                        							; map heated bed to heater 0
            M143 H0 S100                                   							; set temperature limit for heater 0 to 100C
            ;M307 H0 A340.0 C445.4 D27.6 S1.00 V23.9 B0								; Set PID for heated bed values
            M307 H0 R0.278 C1408.5 D27.03 S1.00
            M308 S1 P"e0temp" Y"thermistor" T96774.19355 B3950 C0 R4700 A"Hotend Temp"   ; 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
            M143 H1 S249                              								; set temperature limit for heater 1
            ;M307 H1 A775.9 C235.2 D11.6 S1.00 V23.8 B0 							; Set PID for hotend values
            M307 H1 R2.722 C232.5:172.3 D11.22 S1.00 V23.8
            ; Fans
            M950 F0 C"fan0" Q100                           	; create fan 0 on pin fan0 and set its frequency
            M106 P0 S0 H-1 X204                             ; set fan 0 value. Thermostatic control is turned off
            M950 F2 C"fan2" Q100                            ; create fan 2 on pin fan2 and set its frequency
            M106 P2 S1 H1 T45                              	; set fan 2 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
            
            ; Screen
            M575 P1 B57600 S1
            
            
            
            1 Reply Last reply Reply Quote 0
            • alankilianundefined
              alankilian
              last edited by alankilian

              It looks like you've got to invert the probe input signal.

              @nick9one1 has a "^" in his configuration and you do not.

              • M558 P1 C"zprobe.in" H5 F120 T6000
              • M558 P1 C"^zprobe.in" H5 F250 T9000 R0.5 T7200

              SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

              1 Reply Last reply Reply Quote 0
              • zak062undefined
                zak062
                last edited by

                I tried inverting and still shows always triggered. I took nick's ;endstops and ;z-probe and pasted them into mine but it did not fix the problem. new config.g attached

                config.g

                1 Reply Last reply Reply Quote 0
                • alankilianundefined
                  alankilian
                  last edited by

                  You did a power-cycle after updating config.g?

                  Can you use M119 a few times with it triggered and not triggered to make sure it's functioning properly?

                  SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                  1 Reply Last reply Reply Quote 0
                  • zak062undefined
                    zak062
                    last edited by

                    Problem was a bad crimp on the out/in pin at the board. I started re-crimping each wire and it worked after re-crimping it.

                    alankilianundefined 1 Reply Last reply Reply Quote 3
                    • alankilianundefined
                      alankilian @zak062
                      last edited by

                      @zak062 said in IR Sensor always triggered:

                      it worked after re-crimping

                      YES!!!

                      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                      droftartsundefined 1 Reply Last reply Reply Quote 0
                      • droftartsundefined
                        droftarts administrators @alankilian
                        last edited by

                        @alankilian @nick9one1 @zak062
                        FYI "^" is for the pull-up resistor, "!" is used to invert input. You shouldn’t need either with IR Probe. The configuration tool does not output either for IR probe. See https://duet3d.dozuki.com/Wiki/Gcode#Section_M558_in_RepRapFirmware_Num_3

                        Invert the input by prefixing the input pin (C parameter) with ! character, when using an NPN output inductive or capacitive sensor or using an NO switch (not recommended, use a NC switch instead).

                        The pullup resistor on the Z probe input is disabled by default. Enable it by prefixing the input pin (C parameter) with the ^ character. Enable pullup resistor with ^ if using Duet 2, running RRF3, using the Z probe input pin, and the probe type is a switch or BLTouch.

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                        1 Reply Last reply Reply Quote 1
                        • alankilianundefined
                          alankilian
                          last edited by

                          Thanks @ian !

                          SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                          1 Reply Last reply Reply Quote 0
                          • zak062undefined
                            zak062
                            last edited by

                            I do appreciate everyone's help/input. Now on to wiring the rest of the board

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