I plan to use an infrared sensor transmitter/receiver to calculate the number of vehicles.
This is my idea:
- Use 8 pairs of transmitter/receiver infrared sensors
- The distance between each pair is one meter
- If at least 3 pairs of consecutive sensors detect the signal at the same time, it is judged that the vehicle passes (normal car width is about 3 meters)
- If 4 pairs of consecutive or more pairs of sensors detect a signal, two or more vehicles may pass in parallel.
It is easy to calculate the vehicles one by one.
But I have no idea to count how many vehicles pass in parallel? Any suggestions?