Project

# Title Team Members TA Documents Sponsor
64 # Secure Food delivery dropbox
Dhruva Dammanna
Rohan Samudrala
Taniah Napier
Chi Zhang design_document1.pdf
final_paper1.pdf
photo1.png
photo2.png
presentation1.pdf
proposal1.pdf
video
# Secure Food delivery Dropbox

Team Members:
- Rohan Samudrala (rohans11)
- Dhruva Dammanna (dhruvad2)
- Taniah Napier (tnapier2)

# Problem
70% of college students order food from a third-party delivery service like uber eats or doordash weekly. Unfortunately, many food deliveries can get stolen as some people order ahead of time when ordering at the door dash and the food will just stay in front of their house for anyone to take. We want to prevent people from stealing food deliveries.

# Solution
Our solution is to create an insulated box that only the delivery person and customer can open, locking the food in otherwise. The box will generate a one time use passcode that the customer can send to the driver through the app. Once the driver drops off the food, a weight sensor will ensure the delivery was actually left and lock the box. The weight sensor also ensures that the driver can not go back and take the food. After, the orderer uses a master passcode to open the box and receive their order.


# Solution Components

## Subsystem 1: 9 digit keypad
This is used for the driver to put in the code to unlock the box. The code for the driver is a one time use, so it will change after the food is placed inside. The user has a master code that always works so they can unlock. The code put into the keypad will be checked if it is correct and then unlock the box.

Parts used: ADAFRUIT 1824(Keypad)


## Subsystem 2: Weight sensor
The weight sensor is used to check if food is in the box. It is also used to generate a new passcode for the keypad for the next driver. The old pass code that the previous driver used will not work after the weight sensor is activated.

Parts used: TAL220B-3KG(Weight sensor)


## Subsystem 3: Locking mechanism
When the box is closed a servo motor will push a deadbolt, locking the box shut.

Parts used: 900-00005 (servo)


## Subsystem 4: Control and Power System
We will use a microcontroller to write code in C++ or C to interact with the sensors and the rest of the project. A random passcode will be generated here for the driver to use. Once generated, the wifi capability of the ESP32 will send it to the user. Also the voltage will be regulated here. It is battery powered.

Parts used: ESP32-WROOM-32 (Microcontroller), AP2112K-3.3(Battery), 1N4148 diode (Voltage Regulation)

## Subsystem 5: Box Insulation
We will use foam panels to insulate the food inside so that it stays at the temperature that it needs to stay at. This will make the food more enjoyable.

Part: Foam Panels


# Criterion For Success
Food containment unit is initially locked. Once specified 4 digit codes are inputted into the keypad of the containment unit, the containment unit will unlock.
A 4 digit code is randomly generated upon weight sensor activation. This randomly generated code is intended for 1 time use.
Once the weight sensor detects that the food has been placed inside the containment unit, the unit will lock.
Once the weight sensor detects that the food has been placed inside the containment unit, the randomly generated passcode will no longer work and another code will be generated for next use.
A specific 4 master code can be entered at any time to the keypad and the food containment unit will open.
Both the random code and the master code will be sent to the user.

Microcontroller-based Occupancy Monitoring (MOM)

Vish Gopal Sekar, John Li, Franklin Moy

Microcontroller-based Occupancy Monitoring (MOM)

Featured Project

# Microcontroller-based Occupancy Monitoring (MOM)

Team Members:

- Franklin Moy (fmoy3)

- Vish Gopal Sekar (vg12)

- John Li (johnwl2)

# Problem

With the campus returning to normalcy from the pandemic, most, if not all, students have returned to campus for the school year. This means that more and more students will be going to the libraries to study, which in turn means that the limited space at the libraries will be filled up with the many students who are now back on campus. Even in the semesters during the pandemic, many students have entered libraries such as Grainger to find study space, only to leave 5 minutes later because all of the seats are taken. This is definitely a loss not only to someone's study time, but maybe also their motivation to study at that point in time.

# Solution

We plan on utilizing a fleet of microcontrollers that will scan for nearby Wi-Fi and Bluetooth network signals in different areas of a building. Since students nowadays will be using phones and/or laptops that emit Wi-Fi and Bluetooth signals, scanning for Wi-Fi and Bluetooth signals is a good way to estimate the fullness of a building. Our microcontrollers, which will be deployed in numerous dedicated areas of a building (called sectors), will be able to detect these connections. The microcontrollers will then conduct some light processing to compile the fullness data for its sector. We will then feed this data into an IoT core in the cloud which will process and interpret the data and send it to a web app that will display this information in a user-friendly format.

# Solution Components

## Microcontrollers with Radio Antenna Suite

Each microcontroller will scan for Wi-Fi and Bluetooth packets in its vicinity, then it will compile this data for a set timeframe and send its findings to the IoT Core in the Cloud subsystem. Each microcontroller will be programmed with custom software that will interface with its different radio antennas, compile the data of detected signals, and send this data to the IoT Core in the Cloud subsystem.

The microcontroller that would suit the job would be the ESP32. It can be programmed to run a suite of real-time operating systems, which are perfect for IoT applications such as this one. This enables straightforward software development and easy connectivity with our IoT Core in the Cloud. The ESP32 also comes equipped with a 2.4 GHz Wi-Fi transceiver, which will be used to connect to the IoT Core, and a Bluetooth Low Energy transceiver, which will be part of the radio antenna suite.

Most UIUC Wi-Fi access points are dual-band, meaning that they communicate using both the 2.4 GHz and 5 GHz frequencies. Because of this, we will need to connect a separate dual-band antenna to the ESP32. The simplest solution is to get a USB dual-band Wi-Fi transceiver, such as the TP-Link Nano AC600, and plug it into a USB Type-A breakout board that we will connect to each ESP32's GPIO pins. Our custom software will interface with the USB Wi-Fi transceiver to scan for Wi-Fi activity, while it will use the ESP32's own Bluetooth Low Energy transceiver to scan for Bluetooth activity.

## Battery Backup

It is possible that the power supply to a microcontroller could fail, either due to a faulty power supply or by human interference, such as pulling the plug. To mitigate the effects that this would have on the system, we plan on including a battery backup subsystem to each microcontroller. The battery backup subsystem will be able to not only power the microcontroller when it is unplugged, but it will also be able to charge the battery when it is plugged in.

Most ESP32 development boards, like the Adafruit HUZZAH32, have this subsystem built in. Should we decide to build this subsystem ourselves, we would use the following parts. Most, if not all, ESP32 microcontrollers use 3.3 volts as its operating voltage, so utilizing a 3.7 volt battery (in either an 18650 or LiPo form factor) with a voltage regulator would supply the necessary voltage for the microcontroller to operate. A battery charging circuit consisting of a charge management controller would also be needed to maintain battery safety and health.

## IoT Core in the Cloud

The IoT Core in the Cloud will handle the main processing of the data sent by the microcontrollers. Each microcontroller is connected to the IoT Core, which will likely be hosted on AWS, through the ESP32's included 2.4GHz Wi-Fi transceiver. We will also host on AWS the web app that interfaces with the IoT Core to display the fullness of the different sectors. This web app will initially be very simple and display only the estimated fullness. The web app will likely be built using a Python web framework such as Flask or Django.

# Criterion For Success

- Identify Wi-Fi and Bluetooth packets from a device and distinguish them from packets sent by different devices.

- Be able to estimate the occupancy of a sector within a reasonable margin of error (15%), as well as being able to compute its fullness relative to that sector's size.

- Display sector capacity information on the web app that is accurate within 5 minutes of a user accessing the page.

- Battery backup system keeps the microcontroller powered for at least 3 hours when the wall outlet is unplugged.

Project Videos