If you know the rate of flow (known pressure into a tube with known orifice size), it is easy to fill exactly 500ml by just timing how long the water should flow through such a tube. A simple...