Use a piezoelectric sensor as a force detecting endstop switch. Analog input is smoothed using a moving average filter. Connect the piezo sensor parallel with a 1-10 MOhm resistor and 10-47nF capacitor to the analog input.

Dependencies:   mbed

Revision graph

The revision graph only works with JavaScript-enabled browsers.