Project

# Title Team Members TA Documents Sponsor
50 Closed-loop High-accuracy Universal Drink System
Aiden Robinson
Kevin Lu
Xiyue Zhu design_document1.pdf
other1.pdf
Team Members:
- Kevin Lu (Kevinlu5)
- Aiden Robinson (Aidenr2)

# Problem

Preparing mixed beverages requires accurate control of the amount of each ingredient in order to maintain consistent ratios. Small errors in ingredient proportions can noticeably affect the taste of the final drink.

Many automated beverage dispensers determine the amount of liquid dispensed using a predetermined pump activation time. This assumes that each pump maintains a constant flow rate. In practice, flow rate can vary due to liquid viscosity, reservoir level, tubing conditions, and pump performance. As a result, operating a pump for the same amount of time does not necessarily dispense the same amount of liquid every time.

Our project aims to solve this problem by measuring the amount of liquid actually delivered to the cup and using that measurement as feedback to control the dispensing process. The final system will be demonstrated using non-alcoholic liquids, but the same system can be applied to other mixed beverages where accurate ingredient ratios are important.

# Solution

We propose an automated beverage dispenser with at least four independently controlled ingredient reservoirs. Each reservoir will use a 12 V peristaltic pump to deliver liquid into a cup placed on a load-cell weighing platform.

Instead of relying only on pump timing, the system will continuously measure the change in cup weight while dispensing. The controller will use this measurement to determine how much liquid has actually entered the cup and adjust pump operation as the target amount is approached.

The system will also estimate the current liquid flow rate using the measured change in mass over time. When the dispensed amount is far from the target, the pump can operate continuously. As the target is approached, the controller can reduce the dispensing rate or use short pump pulses to reduce overshoot. This allows the system to compensate for changes in flow rate instead of assuming that each pump always behaves the same way.

An ESP32-S3 will act as the main controller and will host a local web application over Wi-Fi. A user will be able to connect using a phone, tablet, or laptop to select a drink, customize ingredient quantities, start or stop dispensing, and monitor the status of the system.

A custom PCB will integrate the microcontroller, load-cell interface, pump drivers, sensor connections, and power circuitry.

# Solution Components

## ESP32 Web Interface and Main Controller

An ESP32-S3-WROOM-1 will control the complete system and host a local web interface over Wi-Fi.

The web interface will allow the user to:
- Select a predefined beverage
- Create a custom mixture
- Adjust ingredient quantities
- Start or stop preparation
- View dispensing progress
- View requested and measured amounts
- View completion and fault messages

Because the ESP32 hosts the interface itself, no dedicated touchscreen or external server is required.

## Load Cell Measurement Subsystem

The cup will sit on a weighing platform connected to a 5 kg strain-gauge load cell.

Proposed components:
- TAL220 5 kg load cell
- NAU7802 24-bit load-cell ADC
- Mechanical cup platform
- Analog filtering components

Before dispensing begins, the system will measure the initial cup weight. During each pour, the ESP32 will continuously measure the increase in mass.

The approximate mass flow rate can be calculated using:

dm/dt ≈ Δm/Δt

This information will be used as feedback for the dispensing controller.

## Peristaltic Pump Dispensing Subsystem

The system will contain at least four independently controlled 12 V peristaltic pumps, with one pump assigned to each ingredient.

Proposed components:
- Four 12 V peristaltic pumps
- AO3400A N-channel MOSFETs
- Flyback protection diodes
- Gate resistors and pulldown resistors
- Food-compatible tubing

Each pump will be controlled by a MOSFET driver circuit on the custom PCB.

While far from the requested amount, the pump will operate continuously. As the measured weight approaches the target, the controller will use shorter pump pulses to improve dispensing accuracy.

## Adaptive Dispensing Control

The controller will continuously compare the requested ingredient amount with the amount measured by the load cell.

Rather than assuming a constant pump flow rate, the controller will estimate the current flow rate during each pour. This allows the system to adapt to changes caused by reservoir level, liquid viscosity, tubing conditions, or pump variation.

The system can also account for residual liquid that continues to enter the cup after the pump is turned off and use this information to improve future shutoff decisions.

If a small dispensing error occurs, the controller may also adjust the remaining ingredient quantities to better preserve the intended final drink ratio.

## Fault Detection

The load cell will also be used to detect several abnormal operating conditions.

The system will:
- Prevent dispensing if no cup is detected
- Stop dispensing if the cup is removed
- Detect a possible empty reservoir, blocked tube, or pump failure if a pump is active but the cup weight is not increasing
- Report detected faults through the web interface

A conductive leak sensor may also be placed underneath the dispensing area so that the pumps can be disabled if unintended liquid leakage is detected.

## Custom PCB and Power System

A custom PCB will contain the major sensing, control, and power circuitry for the project.

The PCB will include:
- ESP32-S3-WROOM-1
- NAU7802 load-cell ADC
- At least four MOSFET pump-driver channels
- Load-cell and sensor connectors
- Optional INA180 pump-current sensing circuits
- 12 V input protection
- 5 V and 3.3 V voltage regulation
- Programming/debug connections
- Status LEDs and test points

The system will use an external 12 V DC supply. The 12 V rail will directly power the peristaltic pumps, while regulators on the PCB will generate the lower voltages required by the ESP32 and sensing circuitry.

# Criterion For Success

- The system will automatically prepare a beverage using at least four independently controlled liquid ingredients.
- For requested ingredient quantities between 20 g and 150 g, the system will dispense each ingredient within ±5% of the target mass or ±2 g, whichever is larger, for at least 9 out of 10 trials.
- Ingredient quantities will be controlled using real-time load-cell feedback rather than only predetermined pump activation times.
- The controller will estimate the current liquid flow rate during dispensing and use this measurement when determining pump shutoff or pulsing behavior.
- The system will continue to satisfy the dispensing accuracy requirement when the flow rate of a pump changes by at least 20% from its original calibrated condition.
- The ESP32-hosted web interface will allow a user to select or customize a beverage, start dispensing, and monitor the system from a phone, tablet, or computer.
- The system will prevent dispensing when no cup is detected.
- If a pump is activated but the measured cup weight does not increase sufficiently, the system will stop dispensing and report a fault within 5 seconds.
- After preparation is complete, the system will compare the measured final weight with the expected value and report whether the drink is within the required tolerance.

Antweight Combat Robot

Ryan Middendorf, Teodor Tchalakov

Antweight Combat Robot

Featured Project

Antweight Combat Robot

Team Members:

Ryan Middendorf (ryanjm8),

Teodor Tchalakov (ttcha2)

Problem

The constraints for Professor Gruev’s competition are as follows:

Must weigh less than 2 lbs

Must be 3D printed in PET(G), ABS, or PLA(+)

Must have controlled movement

Must be controlled over bluetooth or wifi by a PC

Must have a fighting tool to use against other bots

The main challenges involved in this are making a custom control solution and designing a combat robot that will not only survive the 2 minute matches but actually win them by immobilizing the other robot.

Solution

To meet these constraints, we plan to create a custom PCB that contains 3 brushless electronic speed controllers (ESCs) to control the drive and weapon motors and uses a microcontroller to communicate with a PC over bluetooth and control the robot. For the actual robot design we plan to build a vertical spinner which usually performs best in this weight class. The "tool" will be spun by a brushless motor, and so will both sides drive wheels.

Subsystem 1 - Custom PCB and Power

Our first subsystem will be the custom PCB. It has to contain 3 brushless ESCs and interface with a bluetooth enabled microcontroller such as an ESP32 or STM32 that will receive instructions from a PC and turn them into usable PWM signals for the ESCs. It will also have to be powered by a LiPo battery through an XC30 connector and include an integrated screw switch so the robot can be turned on and off simply and safely.

Subsystem 2 - Drive train

Our second subsystem will be the drive train. Our robot will be driven by 2 brushless motors, 1 on each side. Each motor will drive 2 wheels that are connected by a belt so the robot will have a simplified 4 wheel drive in a tank drive configuration.

Subsystem 3 - Weapon/Tool Assembly

Our third subsystem will be the weapon/tool assembly. Our tool will be a robust vertical spinner, most likely a drum/eggbeater style. This type of tool has a lot of success in combat robotics due to its ability to dissipate the force of hitting an opponent into the floor very efficiently. This will be driven by a substantially larger brushless motor than the drive system so it can deliver much more powerful hits.

Subsystem 4 - Chassis

Our fourth subsystem will be the chassis. The chassis has to be very robust and able to withstand all the damage that will be dealt to it throughout a match. It also has to be able to contain all the electronics and prevent them from being damaged. The chassis will be 3D printed out of one of the approved materials listed above but most likely PLA+.

Subsystem 5 - Controlling from PC

Our fifth and final subsystem will be how our robot is controlled by a PC. This will be a program run locally on a PC that takes keyboard inputs and transforms them into instructions that are sent to the microcontroller inside the robot to control it.

Criterion for Success

We would consider our project a success if we are able to communicate with the robot from our computer and successfully drive it around the arena during a match. The commands sent from the pc need to be processed by the microcontroller and the motors need to be powered properly and behave correctly during a match. The robot will also have to be able to shut itself off if the bluetooth gets disconnected for some reason.