🍹 Best Automatic Syrup Dispenser | DIY Arduino Project | Beginner Friendly

by TylerDDDD in Circuits > Arduino

157 Views, 1 Favorites, 0 Comments

🍹 Best Automatic Syrup Dispenser | DIY Arduino Project | Beginner Friendly

13. Februar 2026
IMG_5276.png

Hey makers! πŸ‘‹

If you love Arduino projects, sweet drinks, and building cool stuff that makes your friends go β€œBRO WHAT IS THAT?!” β€” you’re gonna love this.

This is Syrup Machine 2.0 β€” a bigger, cleaner, and way cooler upgrade from my previous version. It automatically dispenses:

βœ… Plain water

βœ… Water + syrup mix

βœ… Syrup lemonade mix

βœ… Perfect grenadine or diabolo drinks

βœ… Adjustable syrup concentration with a button

And the best part?

πŸ‘‰ If you can upload code to Arduino, you can build this. Seriously.

🎯 Why You’ll Love This Project

  1. Beginner friendly 🧠
  2. Looks awesome on your desk or kitchen counter
  3. Fully customizable drink strength
  4. Great intro to Arduino + 3D printing + basic electronics
  5. Perfect for parties, gaming nights, or just flexing your maker skills

🧠 How It Works

The ESP-WROOM controls pumps that push liquids from containers to the output nozzle.

The system mixes water and syrup dynamically based on your selected concentration.

The button lets you change the sweetness level β€” simple and satisfying.

Supplies

syrupMachine.png

Parts List. You’ll need:

  1. 3D printer.. or ask a friend or your school !!
  2. ESP WROOM Arduino board
  3. Food-safe mini pumps (water + syrup). Choose 2 12V pumps
  4. Push buttons. One blue (water only) and one red (syrup plus water)
  5. Relay module . At least 2 relays (on one card :) ) . Choose a 12V relay
  6. Power supply. This to bring power to the relay AND to the DC adaptor
  7. DC converter 12V to 5V. This to bring power to the Arduino
  8. Tubing (food grade recommended). I like pink, to bring color in our lives ;)
  9. Wires + breadboard or soldered PCB
  10. One Potentiometer
  11. 2 resistors
  12. PLA filament. I like it black to look .. professional

( Sponsored Amazon links :) )

πŸ§‘β€πŸ’» Upload the Arduino Code

IMG_5213.png
IMG_5214.png

πŸš€ 1 – Get the Arduino Code

First, grab the Arduino code.

πŸ‘‰ Download the code from GitHub:

Download the repository and choose the .ino file ; Link.

(The other files are for 3D printing the case.)

πŸ’» 2 – Install Arduino IDE (if not already installed)

If you don’t have it yet:

πŸ‘‰ Download Arduino IDE (free) here:

https://www.arduino.cc/en/software

Install it like any normal application (Next β†’ Next β†’ Install πŸ˜„).

βš™οΈ 3 – Add ESP-WROOM Board Support

The ESP-WROOM is not available by default in Arduino IDE.

You need to install the ESP32 package.

1️⃣ Open Arduino IDE

2️⃣ Go to File β†’ Preferences

3️⃣ In β€œAdditional Boards Manager URLs” paste:

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

4️⃣ Click OK

5️⃣ Go to Tools β†’ Board β†’ Boards Manager

6️⃣ Search for ESP32

7️⃣ Install β€œESP32 by Espressif Systems”

⏳ Wait for installation (takes 1–2 minutes).

πŸ”Œ 4 – Select Your Board

πŸ‘‰ Go to Tools β†’ Board

πŸ‘‰ Choose ESP32 Dev Module (or your exact ESP-WROOM model)

πŸ‘‰ Plug your board via USB

πŸ‘‰ Go to Tools β†’ Port and select the correct COM port

πŸ“‚ 5 – Open the Project

πŸ‘‰ Open the downloaded .ino file in Arduino IDE

πŸ‘‰ Click Verify (βœ“) to check for errors

πŸ‘‰ Click Upload (β†’)

If upload fails:

  1. Hold the BOOT button while uploading
  2. Release when β€œConnecting…” appears

πŸŽ‰ 6 – Upload Complete

If you see:

Done uploading.

πŸ”₯ That’s it.

Your board is alive.


🧠 Pro Tip for Students

If something doesn’t work:

  1. Check the USB cable (many are power-only!)
  2. Install CP210x or CH340 drivers if needed
  3. Restart Arduino IDE
  4. Ask ChatGPT 😎
  5. If you want, I can also generate a clean, professional PDF version ready to include in your GitHub README or student guide.

Done. Easy win.

πŸ”Œ Wiring & Electronics Assembly

wiring.png

Follow the wiring schematic carefully.

Main connections:

  1. 12V Power supply β†’ converter β†’ ESP
  2. 12V Power supply β†’ relay
  3. Red Button β†’ ESP input pins
  4. Blue Button β†’ ESP input pins
  5. Potentiometer β†’ ESP input pins
  6. Relay β†’ Pumps


⚠️ Important Rule:

πŸ‘‰ Build and test one block at a time.

Do NOT connect everything at once. You will save hours of debugging.

πŸ’‘ Pro tip:

Test pumps individually before final assembly. Label your wires. Future-you will thank you.

πŸ–¨οΈ 3D Print the Parts

IMG_5232.png

πŸš€ Get the STL files

Download the STL files from GitHub. Link.

Print all STL files.

Recommended settings:

  1. Material: PLA
  2. Color: Black (looks premium)
  3. Layer height: 0.2 mm
  4. Infill: 20%
  5. Supports: Only where required

PLA is beginner friendly and prints fast.

πŸ”§ Final Assembly

IMG_5227.png
IMG_5215.png
IMG_5208.png
IMG_5225.png
IMG_5235.png
IMG_5226.png
IMG_5233.png
IMG_5241.png
IMG_5237.png
IMG_5236.png

Time to bring your creation to life ; transform your project from a prototype into a clean, professional machine.

Take your time.

Rushing this step is how great projects turn messy.

🚰 1️⃣ Install the Pumps Inside the Housing

  1. Secure both pumps firmly inside the enclosure.
  2. Use screws or printed brackets (recommended).
  3. Make sure:
  4. The inlet faces the liquid source.
  5. The outlet faces toward the tubing exit.
  6. Avoid sharp bends in tubing near the pump.

βœ… Test tip:

Before closing the case, briefly power each pump to confirm correct direction and flow.

πŸ”Œ 2️⃣ Mount the Electronics

  1. Secure the ESP-WROOM board using spacers.
  2. Mount the relay module away from moisture areas.
  3. Fix the DC-DC converter so it cannot move.
  4. Keep power wires separated from signal wires when possible.

⚠️ Important:

  1. No loose boards.
  2. No exposed 12V terminals.
  3. No stress on solder joints.

βœ… Test tip:

Power ON before closing the enclosure and confirm:

  1. ESP boots
  2. Relays click
  3. No overheating

🧡 3️⃣ Route Tubing Properly

  1. Use smooth curves β€” no tight bends.
  2. Keep tubing away from electronics.
  3. If possible, add small clips to guide the tubes.
  4. Ensure no leaks at connections.

πŸ’‘ Professional touch:

Use consistent tubing lengths for a symmetrical look.

πŸ”˜ 4️⃣ Insert and Secure the Buttons

  1. Mount the blue button (Water).
  2. Mount the red button (Syrup).
  3. Tighten firmly but do not over-tighten plastic threads.
  4. Double-check wiring polarity.

βœ… Test tip:

Before closing:

  1. Press each button.
  2. Confirm correct pump activates.
  3. Check that wires do not move when pressing.

🧩 5️⃣ Close the Enclosure

  1. Carefully arrange wires inside.
  2. Avoid pinching cables.
  3. Close slowly while watching tubing alignment.
  4. Tighten screws evenly.

Do not force it.

If it doesn’t close easily β†’ something is misplaced.

πŸ§ͺ Testing Time!

IMG_5288.png

🚰 1️⃣ Fill containers

Fill containers with:

  1. Water
  2. Syrup
  3. Option : Lemonade instead of water

πŸ”Œ 2️⃣ Power !!

Power on and test:

βœ” Buttons trigger correct liquid

βœ” Concentration control changes sweetness

βœ” No leaks (very important πŸ˜…)

Conclusion

IMG_5243.png

πŸ“ Drinks You Can Make

  1. Grenadine water
  2. Diabolo mint
  3. Custom energy mixes
  4. Mocktails
  5. Gamer hydration fuel

🧩 Possible Upgrades (Future Version?)

  1. OLED display
  2. Touch controls
  3. App control via WiFi
  4. RGB lighting (because obviously)
  5. Multi-syrup selection

❀️ Final Thoughts

If you're getting into Arduino and maker projects, this is a PERFECT build.

It’s fun, useful, and looks insanely cool when finished.

Plus… you get unlimited custom drinks.

That alone is worth it 😎

⭐ If You Build One…

Please .. Drop pictures.

Customize it.

Show off your flavor combos.

And most importantly…

Stay hydrated and stay geeky πŸ€“