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

Download repository: zip gz

Files at revision 2:c2ed639b8034

Name Size Actions
[up]
main.cpp 2329 Revisions Annotate
mbed.bld 65 Revisions Annotate