i have a problem
i need to find the state of the brake pedal of the car
if the driver pressed it or not
(can i use a push button in this case
when the driver push or press the brakes the button will be pressed also
sends an interrupt to the micro controller
indicating that the brakes is pressed
)
the second problem is the safety belt
i need to describe the state of the belt if the driver is wearing it or not
so that
can i use a switch to perform that task
(when the driver wears the seat belt the button will be closed and
sends an interrupt to the microcontroller
indicating that the seat belt is closed and the driver wears it)
can this technique solve that problem?