กลับไปหน้ารวมไฟล์
smart-soda-machine-2014fb-en.md

About the project

Problem :

We don't have a lot of options for smart soda machines. They usually don't work with smart homes. The ones we can buy are way too expensive and hard to maintain.

Soulution :

That's why i came up with an cheap DIY alternative. It works With Alexa. In this page you will find all the instructions to make it.

Result :

At the end you will have an amazing low cost soda machine that you will be able to connect to any smart home device by triggering routines. In Alexa app you can also set times to triger them. Soo you can set it to make you sodas at every morning! It will make your life way easier! You will be able to control it from anywere, because it's connected to arduino cloud.

Also you will learn new things/skills about IoT and Arduino! This will be a lot of fun!

My YouTube video

If you are an complete beginner

Here's some resources for beginners :

How to solder

What is Arduino

Easy Arduino projects

How to upload to Arduino

Image

The frame

At first, make a frame. I chose wood as the material because it is easy to saw and paint.

Blueprint What i made (No paint yet) Back Door Lock

At the end i also added some plexiglass, soo it looks way cooler. I also added some lights.

Image Image

When you have finished making and painting it. Now you need to drill a hole for the tube.

Pumps

Then you need to think if you are going to go with peristaltic or air pump. Then drill 1 or 2 holes for the tubes.

Air Pump Peristaltic Pump

Tubing

You will need few tubes to pump the liquid. I woud recommend theese soft transparent tubes.

Image

Fittings

If you want to combine the 2 outputs from into one, i would recommend theese fittings.

Image

Opla

Then assemble opla. And put it in the case.

Image Image

Neopixel ring

I also added an neopixel ring. Its an adressable ring that has rgb leds. This project uses 16 led ring.

Image

Wiring

Then you just solder everything together like this :

IF MOTORS ARE 3 - 6v IF MOTORS ARE 12V

Hardware-IoT Infrastructure

The project's core is built on a reliable hardware-IoT stack:

  • Arduino MKR WiFi 1010: The "brain" of the project, managing multi-directional WiFi communication and coordinating the Alexa cloud sync.
  • Relay Module (4-Channel): Providing a high-precision and reliable "Power Link" for each drink pump.
  • 12V Diaphragm Pumps: Providing the high-capacity physical interface for dispensing the beverages.
  • Amazon Alexa Skill: Essential for providing a clear and energy-efficient voice interface.
  • Soda Machine Cabinet: Provides a professional physical interface and protects the internal components.
  • Micro-USB Cable: Used to program the Arduino and provides the primary interface for the system controller.

Arduino IoT Cloud

When that's ready we can start setting up cloud. Go to Arduino Cloud. Then login. Go to the things tab and make a new thing ("CREATE THING").

Image

Start by pressing "Select Device". Then "Set up a new device" and configure it. Then when that's ready below "Network" press "Configure". Lets start adding variables.

Image

Press "Add variable" and make these variables (You have to write them exactly like in the pictures!) :

Image Image Image Image Image Image Image Image Image Image

When that's done go to "Dashboards" and press "Build dashboard". In the Dashboard add five buttons, two switches and a gauge.

For pc For phone

Now lets configure the widgets. Go into edit mode and press on the tree dots. Press "Edit settings". Now you need to press "Link Variable" and link all the widgets like in the pictures.

Image Image Image Image Image Image Image Image

Now the cloud is set up! We can now move to the final part that is code.

Technical Implementation: Voice Triggers and Cloud Relays

The project reveals the hidden layers of the simple sensing-to-pour interaction:

  • Identification layer: The Amazon Alexa Device acts as a high-resolution acoustic interface, interpreting voice commands (e.g., "Alexa, pour me a soda") and relaying them to the cloud.
  • Conversion layer: The system uses the high-speed WiFi protocol (via the WiFiNINA firmware) to receive data packets and coordinate mission-critical tasks.
  • Cloud Interface layer: The Arduino IoT Cloud acts as a high-definition data dashboard for checking soda machine status (e.g., Pump ON/OFF).
  • Processing Logic layer: The Arduino code follows a "cloud-sync" strategy: it interprets voice-defined variables from the cloud and matches them to relay states to provide safe and rhythmic beverage dispensing.
  • Communication Dialogue Loop: Telemetry strings are sent rhythmically to the Serial Monitor during initial calibration to coordinate status.

Code

Now we can start coding. First you have to go to "Things" tab (In the IoT Cloud). Then open the thing you set up. Then press on "Sketch". Then press "Open full editor".

Image

Now you can just grab my code below this page. You need to copy "SodaMachine" and "thingProperies" code in your tabs. The "Secret" will set automaticly.

Image

Now you can set "// settings" at the top of my code. Now you have to set cup sizes. You need to connect pumps to electricity and with a timer time how long does it take to pour "half" and "full". M1 is motor 1 and M2 is motor 2. Its timed in milliseconds! You can also set the name for the drinks in 19 and 25 line. You can also set the light color in 29 line. It will change the entire theme of the interface.

SETTINGS

Now the code is finnished. You will need to install arduino agent and now you can connect the opla and upload to it.

Image

Soda Automation and Interaction Step-by-Step

The smart soda dispensing process is designed to be very efficient:

  1. Initialize Workspace: Correctly set your pumps and relays inside your soda frame and connect them properly to the Arduino pins.
  2. Setup Cloud Sync: In the Arduino IoT Cloud, create the dashboards and define the voice-controlled properties (e.g., "Dispense") to coordinate the sensing.
  3. Internal Dialogue Loop: The station constantly performs high-performance temporal checks and updates the pump status in real-time based on your cloud commands and voice triggers.
  4. Visual and Data Feedback Integration: Watch your phone dashboard automatically become a rhythmic status signal, pulsing and following your beverage settings from a distance.

Alexa

Now we are going to set up Alexa. This will work with the phone version and the echo products. Video :

Now you are ready to enjoy Smart Soda Machine! Explore all the features on cloud and Alexa!

Image

How to use

Here's an guide on how to use the cloud :

Instructions

Cloud games

This project was only possible because of Arduino cloud games!

Image

This project also received 4th place on hackster.io RISC-V Design Challenge.

Image

Future Expansion

  • OLED Identity Dashboard Integration: Add a small OLED display on the side to show "Current IP" or "WiFi Signal Strength."
  • Multi-sensor Climate Sync Synchronization: Connect a specialized "Ultrasonic Fluid Sensor" to perform higher-precision "Level Tracking" wirelessly via the cloud.
  • Cloud Interface Registration Support Synchronization: Add a specialized web-dashboard on a smartphone over WiFi/BT to precisely track and log the total beverage history.
  • Advanced Velocity Profile Customization Support: Add specialized logic to the code to allow triggers to be changed automatically based on user patterns!

[!IMPORTANT] To avoid overflowing the glass, always use appropriate volumetric timers in the code; always ensure you have an appropriate Fail-Safe flag in the loop if the WiFi drops!

Smart Soda Machine is a perfect project for any science enthusiast looking for a more interactive and engaging robotics tool!

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Arduino IDE"
  - "1x Arduino Web Editor"
  - "1x Arduino IoT Cloud"
  - "1x Amazon Alexa Skill (Official Arduino)"
author: "soda_machine_team"
category: "Motors & Robotics, Home & Automation"
components:
  - "1x Hook Up Wire Kit, 22 AWG"
  - "2x Peristaltic Liquid Pump"
  - "1x Soldering iron (generic)"
  - "2x Air Pump"
  - "1x Multitool, Screwdriver"
  - "3x Soft Tubing"
  - "1x Fitting Connector"
  - "1x DC Power Connector, Jack"
  - "1x Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires"
  - "1x NeoPixel Ring: WS2812 5050 RGB LED"
  - "1x Arduino Oplà IoT Kit"
description: "A professional and advanced voice-controlled beverage dispenser that uses an Arduino MKR WiFi 1010, Amazon Alexa, and the Arduino IoT Cloud to create an automated beverage experience with real-time feedback."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles:
  - "https://create.arduino.cc/editor/gustavsandersons/38667d3b-ad04-4b51-b25a-eec11e59b062/preview"
encryptedPayload: "U2FsdGVkX1/zQGTbVedkrg50GZi+bBpLE5Zg6PvN9Hr1vZzoj7p+y8wHrj9a0yP+uV0TGukTZ5BL7g3sBihmqRzgReEqi9XwiaDomMw3Kd8yyEFY5JckaUkgcyirb6zoRsqqbGjmA0H+FNQ4W4lvzHnzeKw5Vm9EbwWNNRzzCLeskMH62WbPNf6NforVWqHP"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/smart-soda-machine-2014fb_cover.jpg"
lang: "en"
likes: 4
passwordHash: "7556c847fc9d6ebefc194c27fa921457ad28d8b5d3976deba07fb4ca68c5fb95"
price: 1499
seoDescription: "An advanced and playsomely interactive Smart-Soda-Machine-Cloud-Sync for beginners interested in Arduino mkr-wifi-1010 and alexa-to-drink projects."
tags:
  - "smart-soda-machine"
  - "alexa-voice-control"
  - "iot-beverage-dispenser"
  - "mkr-wifi-1010"
  - "arduino-iot-cloud"
  - "advanced"
title: "Smart Soda Machine"
tools: []
videoLinks:
  - "https://www.youtube.com/embed/wFm2wV3nNAo"
  - "https://cdn-shop.adafruit.com/product-videos/1024x768/4700-05.mp4"
  - "https://cdn-shop.adafruit.com/product-videos/1024x768/3910-04.mp4"
  - "https://www.youtube.com/embed/nmu77eJ0ezQ"
views: 3766