Project

# Title Team Members TA Documents Sponsor
58 Adherescent (Team 2) Auto Time Setting Scent Reminder
Megan Shapland
Wenchang Qi
Jiaming Xu proposal1.pdf
Adherascent
# Adherescent (Team 2) Auto Time Setting Scent Reminder

Team Members:
- Megan Shapland (meganls2)
- Wenchang Qi (qi14)

# Problem

Daily Medication is imperative to health, but is often easy to forget as we grow older and the reliability of our memories, sight, and sound decrease. Traditional medication reminders are lost in the frenzy of notifications and sounds that we experience on a daily basis. (As presented by Gaurav Nigam and Brian Mehdian at Adherescent ) There also is an ease of use problem. Many adaptive devices are not adopted due to the intimidation of learning to work with a new technology, particularly with time setting and confusing user interfaces.

# Solution

We propose a smart pill dispenser that utilizes scent as the primary notification mechanism. The system is built around a custom-designed PCB integrating an ESP32 microcontroller module. This allows for Wi-Fi connectivity, enabling time synchronization and remote scheduling potential. When a scheduled dose is due, the system triggers a scent release mechanism. The scent persists until the user opens the correct pill compartment. We will achieve the scent generation by electronically interfacing with and controlling a commercial aroma diffuser. The system will also employ magnetic sensors to detect the precise open/closed state of each medication compartment to close the feedback loop.

# Solution Components

## Subsystem 1: Custom Control Electronics (PCB Design)

This subsystem is the central processing unit of the device. Instead of using a pre-made development board, we will design and fabricate a custom PCB to ensure a compact form factor and specific power requirements.

* Microcontroller: An ESP32 Module will be used as the core processor to handle logic and Wi-Fi connectivity.
* Power Management: The PCB will include a Voltage Regulator circuit to step down the external power supply (5V USB) to the voltage required by the logic circuits (3.3V).
* Programming Interface: A UART interface will be exposed on the PCB to allow firmware flashing and debugging via an external serial adapter.

## Subsystem 2: Olfactory Notification Interface

This subsystem is responsible for generating the scent alert. We will adopt a system integration approach to leverage existing reliable atomization technology.

* Primary Approach (Commercial Integration): We will reverse-engineer a commercially available Ultrasonic Aroma Diffuser. The control signals of the diffuser will be intercepted and managed by our main PCB.
* Isolation Circuit: To safely interface the low-voltage ESP32 logic with the potentially higher-voltage circuit of the commercial diffuser, we will design an Optocoupler Isolation Circuit on our PCB. This acts as an electronic switch, simulating physical button presses to trigger the scent without electrical risk to the microcontroller.
* Backup Approach (Thermal Diffusion): In the event that the commercial unit cannot be successfully integrated due to space constraints, we will implement a fallback mechanism using Thermal Diffusion. This involves a PTC Heating Element driven by a MOSFET on our PCB to gently heat a scent-infused pad, promoting rapid evaporation.

## Subsystem 3: Compartment State Detection

This subsystem verifies user compliance by monitoring the physical state of the pill box lids.

* Sensors: We will utilize Hall Effect Sensors placed on the PCB or routed to individual compartments. These non-contact sensors offer superior durability compared to mechanical switches.
* Triggers: Small permanent magnets will be embedded into the lid of each pill compartment.
* Logic: The system will read the sensor state to determine if the correct compartment has been opened. If confirmed, the microcontroller will immediately send a signal to stop the scent generation.


# Criterion For Success

1. Scheduling Reliability: The device must trigger the scent notification within 5 seconds of the scheduled medication time.
2. Scent Control: The system must successfully turn on the external diffuser via the custom isolation circuit and turn it off automatically when the pill box is opened.
3. Sensor Accuracy: The Hall Effect sensors must detect the Open and Closed states of the compartment with 100% accuracy across consecutive test trials.
4. PCB Functionality: The custom-designed PCB must successfully power the ESP32 module and handle the logic levels without overheating or resetting due to power fluctuations.

Iron Man Mouse

Jeff Chang, Yayati Pahuja, Zhiyuan Yang

Featured Project

# Problem:

Being an ECE student means that there is a high chance we are gonna sit in front of a computer for the majority of the day, especially during COVID times. This situation may lead to neck and lower back issues due to a long time of sedentary lifestyle. Therefore, it would be beneficial for us to get up and stretch for a while every now and then. However, exercising for a bit may distract us from working or studying and it might take some time to refocus. To control mice using our arm movements or hand gestures would be a way to enable us to get up and work at the same time. It is similar to the movie Iron Man when Tony Stark is working but without the hologram.

# Solution Overview:

The device would have a wrist band portion that acts as the tracker of the mouse pointer (implemented by accelerometer and perhaps optical sensors). A set of 3 finger cots with gyroscope or accelerometer are attached to the wrist band. These sensors as a whole would send data to a black box device (connected to the computer by USB) via bluetooth. The box would contain circuits to compute these translational/rotational data to imitate a mouse or trackpad movements with possible custom operation. Alternatively, we could have the wristband connected to a PC by bluetooth. In this case, a device driver on the OS is needed for the project to work.

# Solution Components:

Sensors (finger cots and wrist band):

1. 3-axis accelerometer attached to the wrist band portion of the device to collect translational movement (for mouse cursor tracking)

2. gyroscope attached to 3 finger cots portion to collect angular motion when user bend their fingers in different angles (for different clicking/zoom-in/etc operations)

3. (optional) optical sensors to help with accuracy if the accelerometer is not accurate enough. We could have infrared emitters set up around the screen and optical sensors on the wristband to help pinpoint cursor location.

4. (optional) flex sensors could also be used for finger cots to perform clicks in case the gyroscope proves to be inaccurate.

Power:

Lithium-ion battery with USB charging

Transmitter component:

1. A microcontroller to pre-process the data received from the 4 sensors. It can sort of integrate and synchronize the data before transmitting it.

2. A bluetooth chip that transmits the data to either the blackbox or the PC directly.

Receiver component:

1. Plan A: A box plugged into USB-A on PC. It has a bluetooth chip to receive data from the wristband, and a microcontroller to process the data into USB human interface device signals.

2. Plan B: the wristband is directly connected to the PC and we develop a device driver on the PC to process the data.

# Criterion for Success:

1. Basic Functionalities supported (left click, right click, scroll, cursor movement)

2. Advanced Functionalities supported(zoom in/out, custom operations eg. volume control)

3. Performance (accuracy & response time)

4. Physical qualities (easy to wear, durable, and battery life)