I am trying to understand how the weighbridge system measures the load by detecting the correct position of the vehicle.
Image show Three IR sensors ( TX and RX pair) are being used which tell the exact position of the truck. Outputs of these 3 IR sensors are connected to an microcontroller
This is my truth table
0 0 0 - " The truck is not on the weighbridge "
0 0 1 -" Please go ahead"
0 1 0 " You are in the right place"
0 1 1 " Please go ahead"
1 0 0 " Please go back"
1 0 1 " Not possible conditions "
1 1 1 " Not possible conditions
The system will measure the weight only when the truck is stable and the middle sensor is high and both the sensors are low.
Before writing the actual code, I'm trying to understand how this logic would be implemented.
Anybody can help me to understand logic