What about a conveyor through a tunnel/gate.
That is just like X-Ray scanner system you see at the airport.
Put 1 Light beam , and count it.
You can add a cheap notebook.
Connect Arduino to Notebook.
Software in notebook :
- Enter the Delivery Order (Destination, Qty, etc etc)
- Send command to arduino (number of basket to be send)
- Wait response from arduino
Software in Arduino
- Wait for command
- Turn on conveyor motor
- Count down every time the beam is blocked by basket (you can use interupt to do this)
- When Counter is 0, :
a. Stop the motor
b. Report to notebook.