DIY Arduino Based Vending Machine

Published  August 11, 2016   5
S Staff
DIY Arduino Based Vending Machine

Vending Machines are there since very long time, and they have changed much with the time. Vending Machine is very cool and useful product to dispense various items like foods, chocolates, prizes etc., just by inserting a coin in it. Ryan Bates has built a much cheaper DIY Vending Machine using Arduino, and he named it ‘Venduino’. The machine is pretty cool, you just need to insert a Coin and press a button of your choice and the Venduino will dispense the corresponding item for you.

This Venduino Arduino Vending Machine is majorly using four hardware which are: Arduino Uno, four continuous rotation servo motors, Nokia 5110 LCD and 12v power supply. Optionally 12v LED strips have been used to illuminate the Vending Machine with LED for indication. Four buttons are there for selecting the items which are there in four chambers. LCD displays the messages and instructions to operate the Machine.


The major work, in creating this Vending Machine, is building the whole plywood structure and properly assemble the components in it. Ryan used the laser-cut plywood pieces to build the whole frame and dividers. Plywood has been cut very intelligently so that various pieces can be interlocked in each other, making different sections of vending machine and spaces & cut outs for components & wires. All the pieces and components have been fixed using screws and nuts. The whole process of making the Vending Machine has been nicely explained by Ryan in the Video (check below).

‘Venduino’ has four chambers for dispensing the items. Each chamber has one Continuous Rotation Servo Motor attached behind it, when someone inserts a coin in Venduino and presses the button, then corresponding Servo rotates and dispense one item. Dispensaries coil has been attached to servo to dispense the Item on rotation of servo, these coils are made by cloth hanger wires. Also for coin detector, two open wires are glued at some distance, near the coin insertion hole, so that whenever someone inserts the coin they get shorted and activates the machine, see the image below:

arduino-vending-machine-Dispensaries-coil arduino-vending-machine-coin-detector

Further a Power regulator is used to regulate the power from 12v to 5v, as Arduino and Servos work on 5v and they are also powered by the same 12v source. Arduino Code for this Vending Machine is provided by Ryan in his Article.


So build your own Vending Machine and use it either to dispense some useful items or make some fun with kids by putting some chocolates or snacks in it.

Submitted by NAIR on Thu, 03/22/2018 - 10:30


Dear sir

I am a student and our team is planning to do a project on custom made chocolate vending machine, I saw your project and we like so much and please do help us to do this project , same as four selection with 4 push buttons and token sensor.

help us to make us the circuit board and the required things to proceed further. waiting for your help

Submitted by Camilo on Wed, 04/18/2018 - 00:48


Hello, I would like to know if it is possible to access the dimensions of the machine to assemble it, I am doing an experiment for learning and I would like to build something very similar. thank you.

Submitted by Ranjan kumar on Wed, 06/13/2018 - 15:57


I am a student and I am planning to do a project on the automatic water dispensing machine, I saw your project and we like so much and please send your Arduino code to me that help in doing my project