This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
reprapfirmware-dc42/Data/old-mendel-z-probe.scad
Adrian Bowyer f3e81cbe4c Z probing now working. The probe signal connects to AD7 which (confusingly)
is A0 on the Arduino.  The signal seems quite noisy.  I have put a 10uF
capacitor across its supply.  Maybe add an 0.1uF across its signal?
Two values need to be set in Platform.h:

If v is the value from the A->D on A0, then:

z = v*Z_PROBE_GRADIENT + Z_PROBE_CONSTANT (mm)

Z_PROBE_GRADIENT is dependent on the IR proximity device (though they may
be consistent enough all to have the same value) and Z_PROBE_CONSTANT depends
on how high it is mounted relative to the nozzle.

To generate these values, uncomment the bits of code in and around Platform::Spin()
zero the Z axis by eye, run the program, and raise Z by 0.1mm increments.  Put
the raw A->D values in the spreadsheet in the Data directory, and it will
give you the values of Z_PROBE_GRADIENT and Z_PROBE_CONSTANT.
2013-09-15 18:10:33 +01:00

22 lines
464 B
OpenSCAD

difference()
{
translate([0,11-8.8,0])
difference()
{
cube([26,22,7],center=true);
translate([13.5,4,0])
cube([20,20,8],center=true);
translate([-13.5,4,0])
cube([20,20,8],center=true);
}
translate([0,10,0])
cylinder(r=1.7, h=40, center=true, $fn=30);
cylinder(r=1.7, h=40, center=true, $fn=30);
translate([7.5,0,0])
rotate([90,0,0])
cylinder(r=1.3, h=40, center=true, $fn=30);
translate([-7.5,0,0])
rotate([90,0,0])
cylinder(r=1.3, h=40, center=true, $fn=30);
}