Ok thanks, so I will do the diagram @jim-p sent, adding a 1Megohm load across the piezo; but maybe with 1N4148 diode rather than the 1N5819 Schottky diode mentioned ?
As for the magnetometers, can I do the same (but excluding the top part as I only ned negative clipping)?
Alright thanks, but would the internal leakage mentioned by @Wawa be a problem as I need to measure ecg from low current with low mV variation?
Magneto :
I already have a voltage divider converting 0-25V to 0-5V (DF robot link) and as mentioned, i want to clip the negative voltage to maximise the 8bit precision of the R4 DAC on the positive range : is there a way to do that with my DF robot voltage divider + a diode ?
As already pointed out, the piezo sensor could generate positive pulses as well as negative pulses. you can only detect negative pulses by floating the sensor pin mid-voltage.
Leo..