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

Open pull requests

No pull requests found.