# Strain Gauge/Load Cell based Endstops

**URL:** <https://klipper.discourse.group/t/strain-gauge-load-cell-based-endstops/2134>\
**Category:** Developers\
**Created:** [February 23, 2022, 5:15am UTC](https://klipper.discourse.group/t/strain-gauge-load-cell-based-endstops/2134 "2022-02-23T05:15:09Z")\
**Posts on this page:** 1\
**Showing post:** 215

<div class="post-metadata">

**Author:** ![garethky](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/garethky/32/956_2.png) [@garethky](https://klipper.discourse.group/u/garethky)\
**Post date:** [July 24, 2023, 3:30am UTC](https://klipper.discourse.group/t/strain-gauge-load-cell-based-endstops/2134/215 "2023-07-24T03:30:32Z")

</div>

Took a couple days to reflect on where I’m at and what to do next.

Clearly I need to ship a guided calibration tool and some documentation. A bunch of safety checks need to be added to stop people from accidentally crashing their machines. I’m going to focus on this first.

On the accuracy side, I think we need to look at the two core algorithms and find a way to measure the impact of any further code changes. Specifically:

- Locating the elbow point
- Estimating the contact time based on the elbow point

I think a good next step here would be setting up a simulation of a probe so we can control the exact timing, velocity, noise, elasticity etc. I cant run real probes in the 10’s of thousands that it would take to validate tweaks to this code. I think there is probably another order of magnitude improvement to be had with the right mathematical model. This might be something we can work on as a community.

Then there are other things beyond the current approach. Prusa captures both the down and up strokes of the probe and actually bases their z height on the up stroke. We could look into doing the same. Having 2 probe samples for the time cost of 1 is certainly attractive.

I’m also looking for ways to improve sensor read performance possibly using [adaptive timing](https://klipper.discourse.group/t/hx711-support-load-cell-sensor/2057/23). This hasn’t been done exactly this way before in the klipper codebase but the general idea is not uncommon in other applications. It would be a win for low SPS devices like the HX71x chips.

---

_[View the full topic](https://klipper.discourse.group/t/strain-gauge-load-cell-based-endstops/2134)._
