hello everyone! I want your help!
im using a pic16f88 microcontroller with 5v and I want to "read" a vibration sensor like a switch. for example if the sensor moves then I take as input to mcu '1' if ts steady then I take' 0'.
my problem is that when I shake the sensor the voltage is between 1v to 4v so the input is not always '1'.
is there any way to fix that? so when there is shake or vibration the input of mcu it will be '1'until the vibration stops
thank you very much!
im using a pic16f88 microcontroller with 5v and I want to "read" a vibration sensor like a switch. for example if the sensor moves then I take as input to mcu '1' if ts steady then I take' 0'.
my problem is that when I shake the sensor the voltage is between 1v to 4v so the input is not always '1'.
is there any way to fix that? so when there is shake or vibration the input of mcu it will be '1'until the vibration stops
thank you very much!