Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
zprobe [2018/04/11 01:52]
95.120.159.118 [Use]
zprobe [2018/07/06 19:12] (current)
51.6.19.48 [Summary]
Line 47: Line 47:
 <callout type="​warning"​ icon="​true"​ title="​ Homing">​ <callout type="​warning"​ icon="​true"​ title="​ Homing">​
 A probe is **not** an endstop and therefore cannot be used to Home the Z axis. You need a Z endstop to use G28 to home the Z axis. Below are some instructions on how you can set the bed Z height using a probe (G30). A probe is **not** an endstop and therefore cannot be used to Home the Z axis. You need a Z endstop to use G28 to home the Z axis. Below are some instructions on how you can set the bed Z height using a probe (G30).
-**NOTE** that gamma_max in the endstop configuration **IS** used to set the maximum default travel for a probe command (G30) **ONLY IF** zprobe.z_max is not defined+**NOTE** that gamma_max in the endstop configuration **IS** used to set the maximum default travel for a probe command (G30) **ONLY IF** zprobe.max_z is not defined
 </​callout>​ </​callout>​
  
Line 64: Line 64:
 zprobe.probe_height ​         5                  # how much above bed to start probe NB only needed for G32 on delta zprobe.probe_height ​         5                  # how much above bed to start probe NB only needed for G32 on delta
 zprobe.return_feedrate ​      ​0 ​                 # feedrate after a probe, default 0 is double of slow_feedrate (mm/s) zprobe.return_feedrate ​      ​0 ​                 # feedrate after a probe, default 0 is double of slow_feedrate (mm/s)
-zprobe.z_max                 200                # maximum default travel for the probe command, will use gamma_max if not defined+zprobe.max_z                 200                # maximum default travel for the probe command, will use gamma_max if not defined
 </​code>​ </​code>​
  
Line 75: Line 75:
 <​kbd>​G30</​kbd>​ will probe from the current position until it hits the bed and the probe triggers, it will report the distance traveled then return to where it started. <​kbd>​G30</​kbd>​ will probe from the current position until it hits the bed and the probe triggers, it will report the distance traveled then return to where it started.
  
-<​kbd>​G30 Znnn</​kbd>​ will probe until it hits the bed then sets Z to nnn, this can be used to set the nozzle height if nnn is the probes Z offset from the nozzle in the Z direction. ​+<​kbd>​G30 Znnn</​kbd>​ will probe until it hits the bed then sets Z to nnn (by doing G92 Znnn), this can be used to set the nozzle height if nnn is the probes Z offset from the nozzle in the Z direction. ​
  
 <​kbd>​G30 Fxxx</​kbd>​ will run the probe at xxx mm/min overriding the slow_feedrate. <​kbd>​G30 Fxxx</​kbd>​ will run the probe at xxx mm/min overriding the slow_feedrate.
Line 431: Line 431:
 This is different to other Firmware and is deliberate. ​ This is different to other Firmware and is deliberate. ​
 This allows people to use temporary Z probes and not have a permanent z probe or know the exact Z offset of the probe in relation to the nozzle. **In addition the z component of the .probe_offsets should always be zero.** This allows people to use temporary Z probes and not have a permanent z probe or know the exact Z offset of the probe in relation to the nozzle. **In addition the z component of the .probe_offsets should always be zero.**
 +</​callout>​
 +
 +<callout type="​success"​ icon="​true"​ title="​ Note">​
 +The three probe points **MUST** be the three corners of a triangle, they **MUST NOT** be on a straight line or the math and coordinate system will get corrupt and you will need to reset.
 </​callout>​ </​callout>​
  
Line 769: Line 773:
 </​div>​ </​div>​
 </​html>​ </​html>​
 +
 +Or in a copy/​paste-friendly format : 
 +
 +<​code>​
 +# Switch module for Bltouch control
 +switch.servo.enable ​                       true          # Activate this new module
 +switch.servo.input_on_command ​             M280          # Command to set PWM value
 +switch.servo.input_off_command ​            ​M281 ​         # Command to turn off switch
 +switch.servo.output_pin ​                   1.23          # This must be a PWM pin, see smoothieware.org/​pinout ​  
 +switch.servo.output_type ​                  ​hwpwm ​        # Hardware PWM, as software PWM is not adequate for servo/​bltouch
 +switch.servo.pwm_period_ms ​                ​20 ​           # 20ms period, or 50Hz
 +</​code>​
  
 Note that this wiring is also valid for a servo and a switch probe, as this is what the bltouch emulates. Note that this wiring is also valid for a servo and a switch probe, as this is what the bltouch emulates.
 When connecting the bltouch the yellow wire on the 3pin connector needs to be connected to a HWPWM pin on the smoothieboard,​ valid pins are 1.23, 2.4, 3.25 or 3.26 as seen on the wirediagram on antlabs webge: https://​www.antclabs.com/​wiring32 When connecting the bltouch the yellow wire on the 3pin connector needs to be connected to a HWPWM pin on the smoothieboard,​ valid pins are 1.23, 2.4, 3.25 or 3.26 as seen on the wirediagram on antlabs webge: https://​www.antclabs.com/​wiring32
- 
  
  
Line 811: Line 826:
  
 <​html>​ <​html>​
-<iframe width="​100%" height="​720" src="​https://​www.youtube.com/​embed/​wJI7OGchE08"​ frameborder="​0"​ allowfullscreen></​iframe>​+<​center>​ 
 +<iframe width="​640" height="​480" src="​https://​www.youtube.com/​embed/​wJI7OGchE08"​ frameborder="​0"​ allowfullscreen></​iframe
 +</center>
 </​html>​ </​html>​
 +
 +Bltouch official Smoothieboard video : 
 +
 +<​html>​
 +<​center>​
 +<iframe width="​640"​ height="​480"​ src="​https://​www.youtube.com/​embed/​zn_qLmcB_b0"​ frameborder="​0"​ allow="​autoplay;​ encrypted-media"​ allowfullscreen></​iframe>​
 +</​center>​
 +</​html>​
 +
 +<callout type="​warning"​ icon="​true"​ title="​If you have a 5XC">​
 +Note that on a Smoothieboard 5XC, the pin 1.23 is used by the third big mosfet, so you can not use it for a bltouch, you need to use another pin. That other pin must also be PWM-capable,​ see [[pinout]] to find another pin that will work.
 +</​callout>​
  
 == Inductive proximity probes == Inductive proximity probes
Line 819: Line 848:
  
 <​html>​ <​html>​
-<iframe width="​100%" height="​720" src="​https://​www.youtube.com/​embed/​F7BjZElStfQ"​ frameborder="​0"​ allowfullscreen></​iframe+<​center>​ 
-</html>+<iframe width="​640" height="​480" src="​https://​www.youtube.com/​embed/​F7BjZElStfQ"​ frameborder="​0"​ allowfullscreen></​iframe>​
  
-<​html>​ +<iframe width="​640" height="​480" src="​https://​www.youtube.com/​embed/​EcGFLwj0pnA"​ frameborder="​0"​ allowfullscreen></​iframe
-<iframe width="​100%" height="​720" src="​https://​www.youtube.com/​embed/​EcGFLwj0pnA"​ frameborder="​0"​ allowfullscreen></​iframe>​+</center>
 </​html>​ </​html>​