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.

Economic Overnight Outlet

Chester Hall, Sabrina Moheydeen, Jarad Prill

Featured Project

**Team**

- Chester Hall (chall28), Sabrina Moheydeen (sabrina7), Jarad Prill (jaradjp2)

**Title**

- Economic Overnight Outlet

**Problem**

- Real-time pricing in ISOs, such as the Midwest, California, New England, and New York, provides differentials in electricity prices throughout the day that can be taken advantage of. The peak price of electricity compared to the minimum prices can feature variations of up to 70%. With price agnostic charging, this results in unnecessary costs for those who charge devices (see attached spreadsheet). This same principle can thus be scaled for large commercialized applications requiring high-capacity batteries, resulting in a higher savings potential to be taken advantage of.

- Calcs: https://docs.google.com/spreadsheets/d/1JBzt2xm0Ue4a_teosdak623h0zSP5nHRKi7Wi8rMcPo/edit?usp=sharing

**Solution Overview**

- We will create a device that can fetch real-time prices from regional ISOs and enable charging when prices are lowest. Our primary application will be centered towards warehouse electric vehicles using high-capacity, fast-charging lithium ion batteries. Such vehicles include forklifts, cleaning machines, and golf carts.

**Solution Components**

- [ISO LMP API] - Through use of a WiFi-enabled microcontroller we can fetch real-time prices and build our control system around these values.

- [Passive High Performance Protection] - In order to provide downstream safety to the loads, we will ensure the device features surge protection and is rated for the high current of fast charging. The switching of the connection will be done with a contactor whose coil is energized according to the microcontroller.

- [Device Display] - LCD display to show information about the current energy price and the current day’s savings.

- [Manual User Override] - The device will feature a manual toggle switch to either enable or disable the cost-optimized charging feature allowing users to charge loads at any time, not necessarily the cheapest.

- [User Interface] - Software application to allow for user input regarding the time of day the device must be charged by. The application will also display information about total savings per week, month, or year and savings over the device’s lifetime.

- [Control Power Converter] - In order to run the low voltage control systems from the outlet, either 120VAC or 3-phase 480VAC, we will need to step this down to a low DC voltage of around 3.3VDC.

- [Memory System] - Microcontroller capable of performing control function within user specified parameters.

- [Device Connection] - Connectivity to the battery of the device being charged so that current state of charge (SoC) information can be used. Potential experimental filter algorithms will be used in order to estimate the SoC automatically, without requiring the user to input the specific data of the device being used.

**Criterion for Success**

- Able to charge devices at lowest cost times of the day and display current pricing and savings information. The upfront cost of a large-scale reproducible product must be less than the lifetime savings incurred by purchasing the product. Users without an engineering background can easily analyze their savings to visually recognize the device’s benefit.