Piezoelectric vibration sensor - 101020031

Hi to all of the forum,

I purchased a grove sensor in question.

I installed the grove package on the raspberry (Raspbian) but among the various examples in python I found a single example that told me to specify the DIGITAL port while in the sensor brochure it was indicated as analog.



Question: Should this sensor be connected to a digital or analog port?

Furthermore, the digital example only displays a fixed text when there is a variation and nothing else.



Is there a library for these sensors?



Thank you for reading, even more so if you answer me

Hi there~



It is digital sensor, you have to connect to digital port. If you connect to analog port, then it will only display something as below. 17~18 stands LOW and 1023 stands for HIGH. There is no special library for this digital sensor. For more, you can refer to below link.

<LINK_TEXT text=ā€œhttp://wiki.seeedstudio.com/Grove-Piezo ā€¦ on_Sensor/ā€>http://wiki.seeedstudio.com/Grove-Piezo_Vibration_Sensor/</LINK_TEXT> thanks.

</s>1023 1023 1023 1023 18 17 18 17<e>

Hello,



The sensor measures the stress (which is converted to electrical signals). As Bill Yu points out in his reply, you can measure the digital or the analog signal depending on your intended use. If you simply need the state changes then perhaps digital signals would be best for you. I use it to measure the load and therefore prefer a more continuous signal (with non-linear calibration). One characteristic of the analog signal is that the sensitivity of the sensor makes the output curve very spiky indeed.



There are published datasheets for various piezo-electric elements but Iā€™m not directly familiar with the Grove product.



Kind regards.