You are on page 1of 4

instructables

Vending Machine With Coins and Online Payments Support Using Arduino

by GirishM9

This is a vending machine model that is designed to for the badly recorded videos as I never got to make a
accept various coins, online forms of payment like UPI proper demonstration.
and wallets(ex. Google Pay,PayTM, PhonePe, Amazon
Pay etc). Nowadays, People want to avoid the hassle of This machine only has 3 slots for storing products as it
carrying change and this is where online payment was a proof of concept, however there are motor shields
support is useful. for arduino that can support dozens of motors. The
cashless mode is really helpful feature to have in this
It was actually my nal year engineering project that was pandemic to reduce risk of transmission.
completed but was not presented due to the Covid-19
pandemic disrupting everything. I am extremely sorry

Vending Machine With Coins and Online Payments Support Using Arduino: Page 1
Step 1: Connecting and Interfacing Components Individually

Vending Machine With Coins and Online Payments Support Using Arduino: Page 2
1. Coin acceptor: screen.

First, we connected a 12V supply to the coin acceptor 3. DC motors:


and programmed the number of coins it would support
(the CS616 is able to support 6 coins but we We connected the motors on a motor shield and
programmed 3 which are 2Rs,5Rs,10Rs), the number of mounted it on Arduino. Then we program the motor
pulses that each coin would generate and then we inputs like motor rotation direction, ON time for the
inserted 15 samples of the coin to have high coin motor to rotate the spiral mechanism just enough to
acceptor accuracy. dispatch one unit of product and not more.

Then we interfaced the coin acceptor with Arduino and 4: LCD display:
programmed it to recognize a coin based on the
number of pulses that we received by the Arduino input we mount the LCD on the i2c module and interface it
pins. with Arduino.

2. GSM module: 5. LEDs and SPST:

We connect the GSM module with Arduino and program We simply interfaced SPST switch and 3 LEDs connected
it to receive and parse payment sms noti cations. The in parallel.
amount received gets extracted and displayed on the

Step 2: Final: Testing Operation of the Machine.

Vending Machine With Coins and Online Payments Support Using Arduino: Page 3
The machine now complete.

1. First we test the idle condition of the machine. 3. Then we test the Online mode of the machine by
paying the machine with UPI multiple times with
di erent values and checking the product is correctly
delivered, LCD displays the proper amount, and LEDs
highlight the correct product.
//www.youtube.com/embed/J4IP87Viduw

2. Then we test the coin payment mode of the vending //www.youtube.com/embed/gS0tWIHWfmI


machine by paying the machine with di erent coins and
verifying that the correct product is delivered, LCD
displays proper amount, and LEDs highlight the correct
product.

//www.youtube.com/embed/457a3S5M2jQ

Did this vending will work with Rs.1 until the total money become Rs.5 ?

Yes. It can be programmed to work that way. Just need to program the 1re coin in acceptor.
Modifying the code to have incremental amount and also a keypad to use the machine as
needed.
Thank you for sharing this project. I have been thinking about making a donation station with
some kind of animatronics and this has given me some ideas on how I can accomplish that.
HOLY MOLY THIS IS SO AMAZING. YOU ARE SO SMART

Well done! Thanks for including the videos of it working :D

thank you. It means a lot coming from someone like you.

Vending Machine With Coins and Online Payments Support Using Arduino: Page 4

You might also like