This is companion article for my YouTube video about how to make DIY Vending Machine using arduino and Coin Acceptor. This Vending machine works like real. It can sense a right coin. Only accept the coin defined and add the balance. Here’s the video DIY Vending Machine with arduino Wiring Diagram The Code
This Coin Acceptor works by compare the coin that already inserted in this sensor (blue color at sensor) with the coin that inserted at the front hole. If the coin is the same, the coin will accepted, but if coin is different, the coin will be rejected.