Automatic bartender (post 3) : software librairies

In computer science, a library is a collection of non-volatile resources (which is a type of computer memory) used by computer programs, often to develop software. These may include configuration data, documentation, help data, message templates, pre-written code and subroutines, classes, values or type specifications.
Library code is organized in such a way that it can be used by multiple programs that have no connection to each other, while code that is part of a program is organized to be used only within that one program.
This way to organize a library is really interesting to reuse it whenever you want in a program or in another one.
Moreover, it helps the “junior” programmer to begin or to develop his own code with a reliable piece of code.
So I will describe you which library were used, where it comes from and why it is useful in our project:
Let’s begin with the libraries coming from Arduino and the Serial one, this library is used to communicate between the Arduino and other components. We are using it to communicate with the raspberry pi. Serial: https://www.arduino.cc/en/Tutorial/SoftwareSerialExample
Then, the LCD is chosen because, like its name said, a LCD screen is used to display the different choices and the preparation state of the cocktail. LCD: http://playground.arduino.cc/Code/GLCDks0108
The SD library is useful in our project because it stores a file in an SD card and we need a TXT file to store all the volume data. SD: https://www.arduino.cc/en/Reference/SD
A 2 wires sensor is used in the project so the SPI library is interesting. Actually, this library will probably be used because we need a goblet position sensor and a goblet filling one. In function of the components finally used, we will appeal the SPI. SPI: https://www.arduino.cc/en/Reference/SPI

To go on with libraries used in the raspberry pi let’s talk about Python which is not really a library but more the language used to navigate in files and allows to use some controls. This is essential to acquire data from the TXT file.
Then to be able to communicate by Wi-Fi between android and python, the socket library is used.
One of the last one is the Xamarin Studio library, already installed in the android interface. This allows to include different packages in the app.
And finally, we need a library to communicate from a smartphone to the raspberry pi via Python.
These libraries are downloaded from the same website : https://www.visualstudio.com/fr/thank-you-downloading-visual-studio/?sku=Community&rel=15 . Actually, they are already installed in the program, so it comes from the program download link.

Automatic bartender post 2 : project presentation & material

Hello,

Our project is about automation of cocktails mixing. We would like to create a machine able to make some cocktails from a display.

First, a cocktail receipt stored in a database is suggested to the customer (2 or 3 receipts).

The project is composed of 5 bottles of (fake) cocktails or alcohols and every bottle is derived by a hose to the glass position (nozzle).

A glass is placed under the nozzle of bottles. A proximity sensor allows to the machine to detect the presence of the glass and to make the cocktail.

The device used to drive the liquid from the bottles to the glass is a peristaltic pump. After a long discussion between each members of the group and some tests, this is the best solution we keep thanks to its ease to instal and its low price. In fact, the process just need a dip-tube in the bottles passing through the pump and ending in the glass. The project need a tiny volume for each glass and a tiny flow is possible with this kind of pump so that’s why it’s the best solution. Moreover, in comparison to another pump or an electronic batcher, this costs something like 15€ which is really cheap.
If we have enough time, we could program the possibility of ordering a list of cocktail by the user to accelerate the process. So, 1 easy selection of different cocktails and the machine takes care of everything. Cheers!

We have also determine a last solution, cheapest but that allows to make a maquet aspect.

We would like to recycle an alcohol bar dispenser. This object allow to distribute an exact volume of alcohol to make a cocktail. The system is composed by a little bucket of 5ml and a cross shaped piece which is positioned at the termination of the bucket. When the cross is pushed the bottle neck is filled in and the volume is evacuated of its liquid. the inverse is done when the cross is relaxed.

We would like use and motorise the system. We can use a motor which the motor axe is connected to a radial lever. We control the rotation of the motor to push on the cross.

Then, the system is the same of the other solution. Each bottle is connected to a hose which to redirect the fluid to the nozzle.

 

Capture d_écran 2017-03-18 à 22.51.26

See you soon !

Team 8 – Secured & Automated Front door #2 – Scope of Work & Materials

Hello,

For this second post, Thomas describes you in the video the materials required for our project. The text defines more precisely the objectives we fixed.

Scope of work

The plan is to check a front door locking system (locked or not) using several proximity sensors. If the locking system is open, the user can lock it remotely using a smartphone app (programmed for Android) from anywhere.

A second feature will permit to know the number of people inside the house using a counter (available on the application) and infrared sensors.

A third feature has to block the door if a security mode is activated thanks to the application.

Eventually, a last system will allow to close the door (also remotely) if this is in the open position. However, this last aim is not the most important function we target.

Materials

Here is the list of materials and a price assessment for each component.

Material Amount Price
Front door 1 RECLAIMED
Locking system 1 ~10€
Smartphone 1 RECLAIMED
Siren 1 RECLAIMED
Numeric keypad 1 RECLAIMED
Infrared sensor 2 ~20€
Contact sensor 2 RECLAIMED
Magnetic sensor 1 RECLAIMED
Electric motor 1 RECLAIMED
Electric jack 1 ~100€
Arduino UNO 1 RECLAIMED
Raspberry Pi 3 + 16gb SD card 1 48€

Plexiglass, wood, screws and wires will be required. Those are reclaimed by the different members of the group.

See you in a few weeks for a next follow-up.

Team 4 : Drugs dispenser – List of materials

This is our second post describing the different parts that we will be using in our project.
The components have been divided in four categories:

Control part

  • Arduino Mega
  • Raspberry Pi

Actuator part

  • Screen
  • Stepper motors

Sensor part

  • Mouse
  • Keyboard
  • Photoresistor

Structure part

  • Wood
  • Plexiglas
  • Circular cheese box

For more explanations you can wtach the following video :