πΉ 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
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
- Beginner friendly π§
- Looks awesome on your desk or kitchen counter
- Fully customizable drink strength
- Great intro to Arduino + 3D printing + basic electronics
- 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
Parts List. Youβll need:
- 3D printer.. or ask a friend or your school !!
- ESP WROOM Arduino board
- Food-safe mini pumps (water + syrup). Choose 2 12V pumps
- Push buttons. One blue (water only) and one red (syrup plus water)
- Relay module . At least 2 relays (on one card :) ) . Choose a 12V relay
- Power supply. This to bring power to the relay AND to the DC adaptor
- DC converter 12V to 5V. This to bring power to the Arduino
- Tubing (food grade recommended). I like pink, to bring color in our lives ;)
- Wires + breadboard or soldered PCB
- One Potentiometer
- 2 resistors
- PLA filament. I like it black to look .. professional
( Sponsored Amazon links :) )
π§βπ» Upload the Arduino Code
π 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:
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:
- Hold the BOOT button while uploading
- Release when βConnectingβ¦β appears
π 6 β Upload Complete
If you see:
π₯ Thatβs it.
Your board is alive.
π§ Pro Tip for Students
If something doesnβt work:
- Check the USB cable (many are power-only!)
- Install CP210x or CH340 drivers if needed
- Restart Arduino IDE
- Ask ChatGPT π
- 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
Follow the wiring schematic carefully.
Main connections:
- 12V Power supply β converter β ESP
- 12V Power supply β relay
- Red Button β ESP input pins
- Blue Button β ESP input pins
- Potentiometer β ESP input pins
- 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
π Get the STL files
Download the STL files from GitHub. Link.
Print all STL files.
Recommended settings:
- Material: PLA
- Color: Black (looks premium)
- Layer height: 0.2 mm
- Infill: 20%
- Supports: Only where required
PLA is beginner friendly and prints fast.
π§ Final Assembly
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
- Secure both pumps firmly inside the enclosure.
- Use screws or printed brackets (recommended).
- Make sure:
- The inlet faces the liquid source.
- The outlet faces toward the tubing exit.
- 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
- Secure the ESP-WROOM board using spacers.
- Mount the relay module away from moisture areas.
- Fix the DC-DC converter so it cannot move.
- Keep power wires separated from signal wires when possible.
β οΈ Important:
- No loose boards.
- No exposed 12V terminals.
- No stress on solder joints.
β Test tip:
Power ON before closing the enclosure and confirm:
- ESP boots
- Relays click
- No overheating
π§΅ 3οΈβ£ Route Tubing Properly
- Use smooth curves β no tight bends.
- Keep tubing away from electronics.
- If possible, add small clips to guide the tubes.
- Ensure no leaks at connections.
π‘ Professional touch:
Use consistent tubing lengths for a symmetrical look.
π 4οΈβ£ Insert and Secure the Buttons
- Mount the blue button (Water).
- Mount the red button (Syrup).
- Tighten firmly but do not over-tighten plastic threads.
- Double-check wiring polarity.
β Test tip:
Before closing:
- Press each button.
- Confirm correct pump activates.
- Check that wires do not move when pressing.
π§© 5οΈβ£ Close the Enclosure
- Carefully arrange wires inside.
- Avoid pinching cables.
- Close slowly while watching tubing alignment.
- Tighten screws evenly.
Do not force it.
If it doesnβt close easily β something is misplaced.
π§ͺ Testing Time!
π° 1οΈβ£ Fill containers
Fill containers with:
- Water
- Syrup
- Option : Lemonade instead of water
π 2οΈβ£ Power !!
Power on and test:
β Buttons trigger correct liquid
β Concentration control changes sweetness
β No leaks (very important π )
Conclusion
π Drinks You Can Make
- Grenadine water
- Diabolo mint
- Custom energy mixes
- Mocktails
- Gamer hydration fuel
π§© Possible Upgrades (Future Version?)
- OLED display
- Touch controls
- App control via WiFi
- RGB lighting (because obviously)
- 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 π€