Capacitive Z-height sensing March 11, 2014 09:09AM |
Registered: 9 years ago Posts: 299 |
Z Counter 0.0 13500 0.1 13620 0.2 13750 0.3 13930 0.4 14200 0.5 14500 0.6 14750 0.7 14960 0.8 15190 0.9 15250 1.0 15400 1.5 15800 2.0 16100 3.0 16500 5.0 16900 10 17100
Re: Capacitive Z-height sensing March 11, 2014 09:44AM |
Registered: 9 years ago Posts: 14,640 |
Re: Capacitive Z-height sensing March 11, 2014 10:15AM |
Registered: 9 years ago Posts: 299 |
Re: Capacitive Z-height sensing March 11, 2014 11:31AM |
Registered: 9 years ago Posts: 14,640 |
Re: Capacitive Z-height sensing March 11, 2014 11:31AM |
Registered: 9 years ago Posts: 256 |
Re: Capacitive Z-height sensing March 11, 2014 11:35AM |
Registered: 9 years ago Posts: 14,640 |
Quote
kwikius
Excellent! Glad this looks promising.Someone also suggested using two plates side by side on the hot end. You 1/4 the capacitance but dont need a connection to the heater plate.
Re: Capacitive Z-height sensing March 11, 2014 12:39PM |
Registered: 9 years ago Posts: 299 |
Re: Capacitive Z-height sensing March 11, 2014 01:37PM |
Registered: 9 years ago Posts: 256 |
Re: Capacitive Z-height sensing March 11, 2014 02:06PM |
Registered: 9 years ago Posts: 299 |
Re: Capacitive Z-height sensing March 11, 2014 02:15PM |
Registered: 9 years ago Posts: 101 |
Re: Capacitive Z-height sensing March 11, 2014 02:40PM |
Registered: 9 years ago Posts: 299 |
Z Zprobe 0.0 1010 0.1 990 0.2 908 0.3 844 0.4 760 0.5 701 0.6 667 0.7 626 0.8 597 0.9 558 1.0 542 1.5 420 2.0 340 3.0 260 4.0 228 5.0 178 10 100
Re: Capacitive Z-height sensing March 11, 2014 06:01PM |
Registered: 9 years ago Posts: 299 |
Re: Capacitive Z-height sensing March 11, 2014 08:33PM |
Registered: 9 years ago Posts: 2,472 |
Re: Capacitive Z-height sensing March 11, 2014 08:36PM |
Registered: 9 years ago Posts: 14,640 |
Re: Capacitive Z-height sensing March 12, 2014 03:36AM |
Registered: 9 years ago Posts: 101 |
Re: Capacitive Z-height sensing March 12, 2014 04:51AM |
Registered: 9 years ago Posts: 314 |
Re: Capacitive Z-height sensing March 12, 2014 05:43AM |
Registered: 9 years ago Posts: 14,640 |
Re: Capacitive Z-height sensing March 12, 2014 05:49AM |
Registered: 9 years ago Posts: 299 |
Quote
dmould
One thing I could think might affect the readings is the presence of people or other objects around the printer - did anything nearby move when you saw the reading jump? The other thing is whether the readings are the same for a given height at all places over the bed - if not it might require a different parameter to be set for each probe position.
Re: Capacitive Z-height sensing March 12, 2014 06:00AM |
Registered: 9 years ago Posts: 299 |
Quote
dc42
I've given this some more thought, and I'm going to hack one of my sensor boards to try capacitive sensing. It should be possible by omitting some of the components for the ultrasonic sensor and changing some others. I'll use Atmel's capacitive transfer technique. The main issues look to be mechanical, i.e. how to mount the foot. One possibility is to make the printed insulator that I mount behind the board deeper, and put aluminium tape on the bottom of it.
Re: Capacitive Z-height sensing March 12, 2014 08:34AM |
Registered: 9 years ago Posts: 2,472 |
Quote
dc42
I've given this some more thought, and I'm going to hack one of my sensor boards to try capacitive sensing. It should be possible by omitting some of the components for the ultrasonic sensor and changing some others. I'll use Atmel's capacitive transfer technique. The main issues look to be mechanical, i.e. how to mount the foot. One possibility is to make the printed insulator that I mount behind the board deeper, and put aluminium tape on the bottom of it.
Re: Capacitive Z-height sensing March 12, 2014 08:36AM |
Registered: 9 years ago Posts: 578 |
Re: Capacitive Z-height sensing March 12, 2014 09:00AM |
Registered: 9 years ago Posts: 2,472 |
Quote
colsenfoto
Regarding serial communication from the PIC to the duet-board. Be aware that serial communication is prone to communication errors. I have always ended up using some sort of error detection in my serial designs - at least check-sum.
Re: Capacitive Z-height sensing March 12, 2014 09:15AM |
Registered: 9 years ago Posts: 209 |
Quote
dmould
[ The only other issue is that it will conflict with the modification of putting the aluminium plate under the bed heater instead of on top.
Dave
(#106)
Re: Capacitive Z-height sensing March 12, 2014 09:40AM |
Registered: 9 years ago Posts: 299 |
Quote
bobtidey
Quote
dmould
[ The only other issue is that it will conflict with the modification of putting the aluminium plate under the bed heater instead of on top.
Dave
(#106)
Having done the mod where the spreader is below I was interested in that point as well. I wonder whether the PCB tracks would do the same job anyway as they should be effectively a ground plane for AC.
Re: Capacitive Z-height sensing March 13, 2014 07:35AM |
Registered: 9 years ago Posts: 299 |
Re: Capacitive Z-height sensing March 13, 2014 09:59AM |
Registered: 9 years ago Posts: 2,472 |
Quote
Radian
OK, I could do with some clever suggestions here -
In the PIC firmware the capacitive sensor module yields a 16-bit value corresponding to the height above the bed. This range has an offset, so for example it might be 17000 closest to the bed and 13000 when a few cm away. So while I could just divide by 64 (to convert the 16-bit input to the 10-bit output range needed to feed PWM derived analogue to the Duet) this would reduce detection sensitivity resulting in readings that remain in a narrow range, e.g. 265~203
Obviously I need to subtract an offset and scale the max-min range of the input to the full-scale output range - but these two parameters depend on installation variables that may vary over time i.e. position of sensor plate relative to nozzle. There is no "one-size fits all" set of parameters that can be hardwired in.
So far I've addressed this by tracking min and max raw readings since power-on. Then once the head has been moved down to the bed and up to 10mm or so, the scale and offset are sorted and the readings come out nicely (as per my last table of values). But there's a couple of problems with this - first, the head has to be manually positioned to the surface of the bed on every power-up and secondly, "little accidents" like touching the sensor plate can totally throw the calibration during a printing session.
My current workaround is having a "calibrate enable" switch - but the ideal solution would require no intervention at all. Any ideas?
Re: Capacitive Z-height sensing March 13, 2014 10:30AM |
Registered: 9 years ago Posts: 299 |
Quote
dmould
...you could enable "calibration mode" by detecting when the capacitive sensor is touched with a finger 3 times quickly (say within 1.5 seconds).
Re: Capacitive Z-height sensing March 14, 2014 04:13AM |
Registered: 9 years ago Posts: 256 |
Re: Capacitive Z-height sensing March 14, 2014 05:22AM |
Registered: 9 years ago Posts: 299 |
Quote
kwikius
The only bit I'm not getting is why the values change dependent on the machine are unknowns....
Re: Capacitive Z-height sensing March 15, 2014 07:21AM |
Registered: 9 years ago Posts: 14,640 |