Z Axis IR Probe Setup Issue
-
Hi Motalw I am sorry that I did not acknowledge your input in my previous post. I got tied up trying to figure out the wiki. I will change my threshold to 400 to see if that will at least make the probe work as an endstop.
Thanks,
Tim -
I have been observing while moving the hotend around via the duet display interface.
In Console, I am getting messages that M586 is not yet implemented on this platform. Since this is a code in the network section, it does not make sense. I am connecting from the display which is hardwired to the board.
Thanks
Tim -
Hi Motalw I am sorry that I did not acknowledge your input in my previous post. I got tied up trying to figure out the wiki. I will change my threshold to 400 to see if that will at least make the probe work as an endstop.
Thanks,
Timthere is no need to apologise.
-
I am fairly sure that you have a bad connection in the output wire from the IR sensor, or you have connected it to the wrong pin on the Duet. If the connection was ok then you would get a reading of zero when the LED is off.
-
Hi dc42
At what distance? It starts off at 0. and if I bring the sensor right against the glass I will get 0. I am getting the same results with two different cables. I will check the pinouts again. The pin closest to the ribbon cable connector has no connection, correct? If it wasn't connected properly I wouldn't get the 4 led flashes when I power up,
-
At large distances the LED should be off and the reading should be zero or very close to zero. When the sensor is close to the trigger height, the LED should remain off but the reading should increase to about 465. When the LED turns on the reading should increase to about 535. If you hold a target very close to the sensor, the LED will turn off and the reading will drop to zero again.
You should select mode 1 in the M558 command.
I think you have the wrong connections. The pin closest to the ribbon cable connector is the 3.3V pin, which goes to VCC on the sensor. The next one is the MOD pin which you should leave unconnected. The pins are labelled on the underside of the Duet.
-
Hi dc42
Thanks for your response. Sorry for the delay. I removed my dual z axis setup that was using belt drives. I ordered and received a pair of threaded rods which have now been installed. I have adjusted my settings in config.g and now all 3 of my limit switches for homing are working properly,
So, I am ready to sort out the IR Probe configuration. I did print out one of the mounting brackets that you had linked for me and the bracket now has been mounted to the hot end with the sensor.
I had asked about the connectors for the IR Probe and while I have not seen a direct answer, I believe your response above answers my question. If I have a connection to the probe from 3.3v and then skip the MOD pin, that would require a 4 pin connector on the DuetWifi board and a 3 pin on the sensor. I have 3 pins at each end, so I will make a new cable.
Thanks
Tim -
Hi
From the commissioning and setup
If you get the expected readings, then you can apply 12V power and continue with commissioning. If not, check your wiring.I got the expected results
With 12V power applied, send M558 P1 followed by G31 P500 Z1.0 to the Duet again. Note: if your printer does not use the Z probe to home any axes, you also need to add parameters X0 Z0 to the M558 P1 command.
I would like to use the Z probe to home the axis so I did not add X0 Z0 to the M558 P1 command.
To calibrate the sensor for Z homing and bed probing, home X and Y, then position the head over the centre of the bed.
Positioned the head at Y140 and X100
With the nozzle at operating temperature, lower the head so that it is just touching the bed or just gripping a sheet of paper,
Set the nozzle to 200 and lowered Z to grip a sheet of paper
then send G92 Z0 to define that position as Z=0.
Sent G92 Z0 Z value displays 0
Raise the head 5mm and remove the paper.
Done
Then send command G30 S-1 to probe the bed at that point without adjusting the Z height setting. Read off the Z height in the “Head Position” box in Duet Web Control, or from the Z coordinate shown on the Control page of PanelDue, or send M114 to retrieve the head position if using a USB host program on a PC. It should be in the range 0.5 to 2.5mm. Use that value for the Z parameter in your G31 command in config.g. Please note:
Ok, did not work. I got a message that the probe did not detect and Z axis is reporting -5
The S-1 parameter may not be supported in the official RepRapFirmware release. It is supported in my fork and dcnewman’s fork.
Always use a P value of 500. When the probe is triggered, the Z probe reading will be about 535. When it is slightly higher than the trigger height, the reading will be about 465. With a P value of 500, when the Duet sees the reading of about 465, it knows it is getting close to target height and it will slow down the Z motor.I gave the printer a manual +10 and Z now reads 5. Z is not at 5. It is at the point where it holds a piece of paper. The reading for the probe is 547.
If you are using my (dc42) fork of RepRapFirmware, then the G31 command in config.g must come after the M558 P1 command. This is because the firmware supports different G31 values for different sensor types.
Edited Config.g I removed X0 and Z0 from the M558 Line according to the sentence above that starts off as "With 12V applied…"
The G31 command is set at P500 and is the line following the M558.After turning your printer on, do not perform any operation that uses the sensor (e.g. X homing on some printers) for 5 seconds, until after the LED has done its 4 flashes.
Saved Config.g
Once the Board reboot killed the connection to the printer, I powered it off and disconnected the USB cable.Power printer back on. I have four flashes from the LED on the IR Probe.
HomeX ok
HomeY ok
HomeZ ok
My bed surface is a piece of glass on top of the heated bed.
Indicators all turned blue indicating that all axis are home.
Probe value is 547, and the red LED on the IR Probe is on.
Value registered for Z in Machine Status is 0.30It looks like everything is good, even though I had the error that I reported above on the initial probe.
Tomorrow I will run it up and print something. Before I set up the probe on the new cable, I did print a configuration cube. It looked quite good and all 3 axes printed at 20mm. I have nice square corners since I have a fang with a fan on it. The bottom layer is smushed, but that could be because I hadn't done the probe setup.
If this looks ok, please let me know.
Thanks,
Tim -
With the Dual Z axis, what actually gets passed to the stepper motors? Specifically, what I am meaning is with regard to syncronization. I have been having a tough time setting up bed height and it my observations it does not appear that the motors are moving together before the print starts
I have the motors wired into the two Z ports on the Wifi board. When I go to print, the left motor seems to suddenly pull the gantry down to the point where it deflects the heat bed against the springs by pushing the nozzle against it.
Once the print starts, is seems normal and seems to move the same amounts as the right side.
Thanks
Tim -
I have the motors wired into the two Z ports on the Wifi board. When I go to print, the left motor seems to suddenly pull the gantry down to the point where it deflects the heat bed against the springs by pushing the nozzle against it.
Once the print starts, is seems normal and seems to move the same amounts as the right side.
Thanks
TimTwo motors connected to the ZA and ZB motor ports get exactly the same current. So the problem you have is a mechanical one.
-
Thanks for the information. That will help isolate what is going on.
Tim