Building a Simple Vending Machine
Hi guys!
Long story short: Would like to build a simple box/locker type vending machine. I have zero experience with arduino or electromechanics & at this moment just trying to understand which components I will need for the project. But I did my homework.
Why do I have this idea? I have a hobby wood workshop and would like to sell my products indoors via vending machines and get paid via cashless terminal.
For me it's not hard to build a cabinet/locker with transparent doors in cells. Doors will open via Electric Magnetic - locks. But the hardware is a tricky part.
Regarding the code most probably will outsource some one.. But at this moment I would like to get the opinion of experienced members if I am on the right track.
So let's say my vending machine will have 16n doors.
I will need following components:
- Arduino UNO (controller)
- Matrix keyboard (so that customer could make a selection)
- LCD display (so that customer, could see - the selection /m.b Thank You msg etc)
- VPOS (cashless terminal - most probably Nayax with 3G as payment method)
- Electric Magnetic Locks - 16pcs (to open a door / most probably i`ll need 12v ones)
- MCP23017 port expansion chip (because there will be not enough I/O pins for all locks)
In order to connect the VPOS Nayax terminal to the controller I think I need a Multi-drop bus to RS-232 (MDB-RS232) usb converter - but i'm not sure.
As I understand MDB would be essential if I would like to connect bill validators or coin changers but in my case a cashless terminal could be connected through RS232, so m.b i just need a male head RS232 shield for the arduino.
Here's documentation with device cables from Nayax VPOS - Nayax VPOS Documentation.
One of the connection options is RS232 female head.
I tried to illustrate the all components (in example i showed MDB converter to connect Payment Terminal)
P.S I chose the one with a usb head since arduino uno already has one, only will need a USB type A to type B adapter.
Also most probably i will need an external power source for Electric Magnetic Locks - since arduino can supply only 5v and more or less bigger locks require 12v.
P.S Couldn't show it in Circuit (don't have enough experience yet, to understand where it should be placed)
Also i'm curious about the power supply I need so far.
24v power supply for Payment Terminal.
24v power supply for (MDB-RS232) usb converter.
12v power supply for Arduino itself since USB port will be busy with (MDB-RS232) usb converter. “but maybe it will be able to power itself through (MDB-RS232) usb converter”.
12v power supply for Electric Magnetic locks.
Any suggestions how I could fit all these into one outlet instead of 4.
Simplified logic of machine:
- LCD display - constantly shows message “Please, select your product number”
- When - Customer Selects a Door/Product number “Display shows - chosen product # and a message, please make a payment”
- Controller sends signal to payment terminal - to charge “some value”
- If payment was successful - we send a signal to unlock the selected lock.
- At this moment LCD display shows a message for few seconds “Please, take your purchase & don't forget to close the door”
Also iˇll need a functionality to open/close via password all lockers one by one since there maybe not enough power to open them at once.
