**The Cocktail Maker Construction**
In this video, I'll guide you through the process of building a cocktail machine, showcasing its construction and functionality.
I started by creating a base for the machine using wood, ensuring that it had sufficient space to accommodate all the components. To achieve a sturdy and stable structure, I added spacers to the load cell and secured them with M4 screws.
Next, I transferred the mounting holes from the top piece of the scale onto the centerline of the bottom piece, creating a secure attachment point for the load cell. This allowed me to add additional support and stability to the machine.
After that, I added electronics components, including a rotary encoder and display. I used superglue to attach them in place, ensuring they were securely fastened.
To create the silicone tube system, I marked three holes next to the pump cutouts on the top piece of wood. These holes would house the silicone tubes, which needed to be a tight fit to prevent any leaks.
Initially, I planned to use one and our roof to attach the silicon tubes, but due to its failure, I resorted to using superglue to create a temporary attachment. This was later reinforced with an additional layer of wood glue for stability.
Before proceeding with the gluing process, I made sure to sort out long enough wires to all the electronic components. This allowed me to safely fine the wires and attach them to their corresponding Arduino pins, as described in the schematic.
Once the electrical wiring was complete, I installed the silicone tubes inside the machine and secured them in place. The three-year silicone tubes were then cut at an appropriate length and tied together above the glass using a zip tie.
With the mechanical construction completed, I added well CRO tape to the side of the housing, ensuring it was secure and stable.
**Functional Principle**
As a first test sketch, I created a simple piece of code that could select each pump and turn it on or off when rotated. This allowed me to measure how much liquid each pump moved per second.
The results showed that the three pumps were pretty close in terms of speed, but this would be slower with soup-like liquids. With this new information, I created the final sketch for the Arduino.
The functional principle of the machine is as follows:
1. When the stop button is activated, the scale zeroes.
2. Pump 1 starts moving liquid as soon as it fills the glass.
3. As soon as the liquid reaches the desired level, the scale notices and starts a timer.
4. Once the timer is over, pump 1 deactivates.
5. The system waits for two seconds, then zeroes the scale and activates pump 2.
6. As soon as liquid 2 fills the glass, the scale notices and starts another timer.
7. Once the timer is over, pump 2 deactivates.
This process continues until all three pumps have spilled over the beverage, allowing me to enjoy a freshly made cocktail.
**Conclusion**
You can create your own cocktail machine using this project as inspiration. My version uses two thick tubes, which causes vibrations and could use some improvements. With more pumps, you can achieve a wider drink variety. I hope you enjoyed watching this video and maybe even learned something new along the way.