It's possible to use a pressure sensor from a car to act like a button in raspberry pi?
Asked
Active
Viewed 203 times
0
-
It's rather hard to tell given the lack of any technical detail in your linked product! – Mark Setchell Aug 04 '19 at 11:30
-
Yes, it is possible. – Kampi Aug 04 '19 at 19:31
1 Answers
0
Sure,
Just consider your pressure sensor as a regular push-button in the following example. Don't forget the resistor.
https://raspberrypihq.com/use-a-push-button-with-raspberry-pi-gpio/

JMB
- 61
- 7
-
-
The resistor in this example is to limit current in the input. You could use a pull-down resistor as well to preserve the same logic as the example code. – JMB Aug 06 '19 at 15:24