IR Sensor always triggered
-
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.
-
your config has a mixture of rrf3 and rrf2 syntax. that does not work
which firmware version are you running?
-
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
-
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
-
It looks like you've got to invert the probe input signal.
@nick9one1 has a "^" in his configuration and you do not.
-
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
-
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?
-
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.
-
-
@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_3Invert 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
-
Thanks @ian !
-
I do appreciate everyone's help/input. Now on to wiring the rest of the board