Maths problem anyone ?...


Results 1 to 8 of 8

Threaded View

  1. #6
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: Maths problem anyone ?...

    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!!
    Last edited by Jumper; - 12th September 2011 at 14:51.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts