Look out for a cheep electronic money box and salvage the coin mechanism.
The one I have seen uses a spring loaded arm and several small infrared sensors, each coin is a different size and will cover a number of these sensors, the numer or order these sensors are covered is the value of the coin.