I'm in the middle of a project and could really need some help from here.
I've put up an IP-cam for a customer overlooking the queue to a truck wash. The camera detects "loitering" in the queue area and triggers an alarm on the NVR which in turn activates a set of lights to let the guys know there's a truck waiting in line.
I've discovered that this setup is not good enough because the alarm turns off after about two minutes even though the truck is still waiting in line. The conclusion from the manufacturer's tech support is that there is no camera-based solution matching my needs.
Therefore i'm thinking about having an Arduino detect whenever there's a truck waiting in line and trigger the Digital Input on the camera which in turn activates the lights.
The lights are already installed and working (running on a 12V power supply activated by a relay from the NVR).
See screenshot from the camera to get a feeling of the surroundings
My questions are as follows:
Can you think of any other way i can achieve what I'm describing?
I have some Arduino Pro Mini's lying around I'm planning on using.
Are these suitable?
What kind of sensor should I use to detect trucks in the queue?
Will a distance sensor placed on the wall with the camera do the job?
I really hope I don't have to mount anything "behind" the truck
How would I go about coding the Arduino to only trigger whenever a truck has been in the queue for say 10 secs and NOT whenever a truck just drives by?
How should I wire the Arduino to the DI on the camera?
The terminal on the camera can be setup as either "normally high" or "normally low" in the software
I'm really hoping for some input on this one. Anything is appreciated!