Answer the question
In order to leave comments, you need to log in
How to make a vending machine?
How to make a Raspberry Vending Machine? Is it even possible to do this on raspberry?
If so, then you don’t need to write about Arduino.
The bottom line is that you need your own vending machine, for example, take a coffee machine. What platform is it on? I figured out the case, there was a code for the machine itself, and for remote control. I hope for a constructive answer without any sarcasm.
-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -
PS: Better on a raspberry. And also, in what language to write software for raspberries.
Answer the question
In order to leave comments, you need to log in
Why do you need a raspberry pi? From a cannon to sparrows, and not for that it is intended, make it on at mega (arduino) or any other suitable microcontroller. And if you really need it so much that it is remotely controlled, then you can separately hang the same raspberry, which will not control the motors, but will receive your commands via the Internet and send them to the arduino.
It doesn't matter what.
At least on a full-fledged Intel i7 with a real motherboard - that is, on a regular computer.
Though on "Malinka"
Though on Arduino.
At least on a custom board, solder a TI MSP microcontroller or even simpler.
There is absolutely no need for any computing power.
Everything depends on what you can use on the one hand (what you know how to work with, what you can buy at a reasonable price, what has the right interfaces, etc. considerations)
And what else is profitable to use on the other (the price of competitors and the price you need profit so that the project does not die due to underfunding).
For example, in large circulations it is much more profitable- have your own specialized board with some kind of primitive controller. The cost of the board will be 100 rubles, which will always be cheaper than any "Malinka", and it will be more reliable to work due to simplicity and narrow specialization.
How to make a Raspberry Vending Machine? Is it even possible to do this on raspberry?
If so, then you don’t need to write about Arduino.
The problem here is that you need a controller that works in real time. Rpi is not.
Rationale - it is desirable to click the valves when making coffee with a resolution of 0.1 s, otherwise, instead of coffee, the client will drink an obscure substance with a taste of coffee, and rpi with its general-purpose OS will not give you such delays. Well, it’s better to catch all sorts of bad situations like lack of water and a pump thrashing idle, on hardware with predictable behavior, to which a modern computer, with its DMA and other things, does not apply.
The language for solving this problem - the more oaky, the better. That is - C.
The machine can also be assembled from improvised means by wrapping the control controller with tape and putting it in a shoe box. But when glitches come up, it will be easier to catch them from the AVR (with its completely banal assembler and the ability to simulate the entire controller by cycles in at least three packages) than to debug a python program running on rPi.
I do not recommend Arduino because of the small size of RAM - a large sketch with text strings simply will not fit, it is not convenient to update the firmware.
From experience, Arduino can work in a machine for years without problems:
https://geektimes.ru/post/255724/
and a slightly different project in another machine:
https://habrahabr.ru/post/143756/
4 years - normal flight, even when taking into account the entry in the EEPROM each time the buttons are pressed. Inside the machine there is an increased temperature (about 35 degrees), dry and dusty air. There were no problems with soldering or stability.
It is necessary to establish work with payment protocols. For example, MDB. But he is very capricious to delays in responses, a delay of 0.1 seconds and he is cut down. It is impossible to get such speed on Adruino. I solved the issue with the interface module, which itself communicates with payments, and has COM at the output.
Payments are important for issuing change, for accounting for banknotes and their face value. It is also worth considering 54 Federal Laws on cash desks, which will be mandatory for vending from July 2018.
Now I would take RaspberryPI and a module for payments. On RPI, you can manage outputs (relays), the Internet, apache + mysql, and everything will be convenient and beautiful (it will be possible to update the software for the machine remotely via ssh).
As for non Realtime OS delays for making coffee - don't listen, it doesn't matter. Delays from 0.1 sec do not play any role for any machine mechanism. Water flows by gravity (about 7 seconds per glass), turn the motor for about 10 seconds to stir, so there is no need to rush.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question