Counting Money with a Coin Acceptor

PrintFriendly and PDF

6) Use it!

Now that your XBee is ready to earn its keep, take a look at our output tutorials for how you can transmit the coin signals to another XBee, to a computer or to the iDigi device cloud. Because the pulse goes high and then low again, the change detection signal you configured with ATIC will transmit two samples for each coin, a 1 and a 0. In general, your output code will only need to pay attention to the leading edge of the pulse, that “high” or 1 sample which means a valid coin has been detected and profits are going up, up, up!

Comments are closed.