5 cent coin = 1 pulse
10 cent coin = 2 pulses
25 cent coin = 5 pulses
50 cent coin = 10 pulses
1 dollar = 20 pulses
Then it is just to count all pulses.. when you get to 20 pulses you have a dollar.. no matter if the person have used small coins quickly after each other or just one and one. Count the pulses and eventually the pulses will stop and then they will make a purshase.
To get this to work with a coin machine that can only give out 1-50 pulses per coin you can not have a too big difference in value between the smallest coin and the biggest one.
And for every pulse you pic detect you increase the LCD with 0.05 USD. When the pulses stop you have the total value. Of course you still dont know what coins that was inserted but you do know how much in value they have inserted which would be enough to know before releasing the item.
Last time I went to the small store on the corner where I live, they did not count coins.. they counted the value of the coins until I had enough for the icecream and cookies.
Or?
Join the dark side - we have cookies!!
Bookmarks