Project

# Title Team Members TA Documents Sponsor
29 Compact Electronic Nose for Food Identification and Freshness Monitoring
Haotian Li
Torres Zhang
Zhenyu Zhang
Shengkun Cui design_document1.pdf
proposal1.pdf
# Problem
Food freshness is usually evaluated using expiration dates, visual inspection, or human smell. These methods are subjective and may not detect early spoilage. As food ripens or decomposes, it releases volatile compounds such as alcohols, ammonia, sulfur-containing gases, and other VOCs. A single low-cost gas sensor cannot reliably identify food because it normally responds to several different gases. However, an array of sensors with different sensitivities can generate a unique response pattern for each food and freshness condition. Many existing low-cost electronic nose projects use prebuilt sensor modules and passive air sampling. Their results are often affected by airflow, temperature, humidity, and sensor placement. Our project aims to improve repeatability through a custom PCB and a controlled sampling system.
# Solution
We propose a compact electronic nose that identifies predefined foods and estimates whether they are fresh or spoiled. A small diaphragm pump will draw gas from a food container into a sealed sensing chamber. Four gas sensors mounted on a custom PCB will respond to different components of the food odor. Their signals will be filtered, digitized, and processed by an STM32 microcontroller. The STM32 will compare the sensor responses with a clean-air baseline and generate an odor fingerprint. A lightweight classification algorithm will use this fingerprint to predict the food type and freshness state. After the result is displayed, the system will introduce filtered air to clean the chamber before the next measurement.
# Solution Components Gas-Sensor Subsystem
The system will use four raw gas sensors rather than prebuilt sensor modules. The proposed sensors are: TGS2602 for general VOCs, ammonia, and sulfur-containing odors; TGS2620 for ethanol and other organic vapors; MQ137 for ammonia and organic amines; MQ136 for hydrogen sulfide and sulfur-containing vapors. The sensors will be placed near one edge of the PCB so that they can extend into the sensing chamber. The remaining electronics will remain outside the chamber to reduce the influence of circuit heat. Each sensor will have its own load resistor, voltage-scaling circuit, and low-pass filter. A TLV9004 quad operational amplifier will buffer the four signals before they are measured by the ADC.
# Data-Acquisition and Processing Subsystem
The main controller will be an STM32F411RCT6 mounted directly on the PCB. It will control the sampling sequence, collect sensor measurements, calculate odor features, run the classifier, and present the result. An ADS1115 four-channel ADC will digitize the four gas-sensor signals. A separate SHT31 temperature and humidity sensor will record environmental conditions so that the STM32 can compensate for their effect on the gas sensors. The classifier will first be trained on a computer using experimental data. The final model will then be stored on the STM32 so that classification can be performed without a connected computer.
# Air-Sampling Subsystem
The airflow system will include: A sealed sensing chamber; A food-sample container; A miniature 5 V diaphragm pump; A three-way solenoid valve; Sample tubing; A clean-air filter. The valve will switch between the food sample and filtered ambient air. The pump will draw the selected gas through the sensing chamber. The STM32 will automatically perform the following sequence: Purge the chamber with filtered air. Record the clean-air baseline. Switch the valve to the food sample. collect the sensor responses. classify the food and freshness. display the result. purge the chamber again. Power and Pump-Control Subsystem The system will be powered through USB-C. The 5 V input will directly supply the gas-sensor heaters, pump, and solenoid valve. A 3.3 V regulator will supply the STM32, ADC, environmental sensor, and analog circuits. The pump and valve will be controlled using MOSFET driver circuits. Flyback diodes and bulk capacitors will protect the PCB and reduce electrical noise when the pump or valve switches. The PCB will also include an SWD programming connector, a start button, status LEDs, and USB serial communication for data collection and debugging.
# User Interface Subsystem
The user will place a food sample in the container and press the start button. Status LEDs will indicate whether the device is purging, sampling, processing, or ready. The final result can be shown using a small display or sent to a computer through USB. It will include the predicted food type and freshness condition.
# Criterion for Success
The project will be considered successful if: The team designs, fabricates, and solders a custom PCB containing the raw gas sensors, STM32, ADC, analog circuits, power regulation, and pump-control circuits. The system automatically completes the baseline, sampling, classification, and purge sequence after the user presses the start button. Repeated measurements of the same food produce similar sensor-response patterns. The prototype can distinguish at least two predefined foods, initially apples and bananas. The prototype can distinguish fresh and spoiled samples with at least 80% accuracy. The system produces a result within five minutes and successfully returns the sensors close to their clean-air baseline before the next measurement.

Decentralized Systems for Ground & Arial Vehicles (DSGAV)

Mingda Ma, Alvin Sun, Jialiang Zhang

Featured Project

# Team Members

* Yixiao Sun (yixiaos3)

* Mingda Ma (mingdam2)

* Jialiang Zhang (jz23)

# Problem Statement

Autonomous delivery over drone networks has become one of the new trends which can save a tremendous amount of labor. However, it is very difficult to scale things up due to the inefficiency of multi-rotors collaboration especially when they are carrying payload. In order to actually have it deployed in big cities, we could take advantage of the large ground vehicle network which already exists with rideshare companies like Uber and Lyft. The roof of an automobile has plenty of spaces to hold regular size packages with magnets, and the drone network can then optimize for flight time and efficiency while factoring in ground vehicle plans. While dramatically increasing delivery coverage and efficiency, such strategy raises a challenging problem of drone docking onto moving ground vehicles.

# Solution

We aim at tackling a particular component of this project given the scope and time limitation. We will implement a decentralized multi-agent control system that involves synchronizing a ground vehicle and a drone when in close proximity. Assumptions such as knowledge of vehicle states will be made, as this project is aiming towards a proof of concepts of a core challenge to this project. However, as we progress, we aim at lifting as many of those assumptions as possible. The infrastructure of the lab, drone and ground vehicle will be provided by our kind sponsor Professor Naira Hovakimyan. When the drone approaches the target and starts to have visuals on the ground vehicle, it will automatically send a docking request through an RF module. The RF receiver on the vehicle will then automatically turn on its assistant devices such as specific LED light patterns which aids motion synchronization between ground and areo vehicles. The ground vehicle will also periodically send out locally planned paths to the drone for it to predict the ground vehicle’s trajectory a couple of seconds into the future. This prediction can help the drone to stay within close proximity to the ground vehicle by optimizing with a reference trajectory.

### The hardware components include:

Provided by Research Platforms

* A drone

* A ground vehicle

* A camera

Developed by our team

* An LED based docking indicator

* RF communication modules (xbee)

* Onboard compute and communication microprocessor (STM32F4)

* Standalone power source for RF module and processor

# Required Circuit Design

We will integrate the power source, RF communication module and the LED tracking assistant together with our microcontroller within our PCB. The circuit will also automatically trigger the tracking assistant to facilitate its further operations. This special circuit is designed particularly to demonstrate the ability for the drone to precisely track and dock onto the ground vehicle.

# Criterion for Success -- Stages

1. When the ground vehicle is moving slowly in a straight line, the drone can autonomously take off from an arbitrary location and end up following it within close proximity.

2. Drones remains in close proximity when the ground vehicle is slowly turning (or navigating arbitrarily in slow speed)

3. Drone can dock autonomously onto the ground vehicle that is moving slowly in straight line

4. Drone can dock autonomously onto the ground vehicle that is slowly turning

5. Increase the speed of the ground vehicle and successfully perform tracking and / or docking

6. Drone can pick up packages while flying synchronously to the ground vehicle

We consider project completion on stage 3. The stages after that are considered advanced features depending on actual progress.

Project Videos