Project

# Title Team Members TA Documents Sponsor
43 FPS Game Somatosensory Enhancement Gun Controller
Beining Chen
Haochen Zhang
Peilin He
Yixuan Wang design_document1.pdf
final_paper2.pdf
photo1.jpg
photo2.jpg
proposal1.pdf
video
# FPS Game Somatosensory Enhancement Gun Controller

## Team Members:
- Peilin He (peilinh2)
- Beining Chen (Beining4)
- Haochen Zhang (Hz39)

# Problem

The functions of video game controllers nowadays are very limited to the gaming machine, and are mostly in the form of joy-stick or controller. Playing shooting games on PC with a mouse or joystick can lower a gamer's gaming experience and make gaming a less realistic experience.. Especially when VR games slowly occupy the video game market,a non-traditional controller, or a somatosensory enhancement gun-shaped controller is necessary.

# Solution

The solution is to introduce the use of Somatosensory Enhancement accessories. A Somatosensory Enhancement shooting controller can make shooting video games more realistic and interactive. We plan to build a gun-shaped shooting controller that could simulate target aiming, gun recoil, reload bullets, and potentially flash bomb and smoke bomb.



# Solution Components

## Subsystem 1: Processor
We will use a PIC32 microcontroller to handle memory allocation for the cache. It can also communicate with the Wifi chip to transfer data.
https://www.mouser.com/new/microchip/microchip_pic32/

## Subsystem 2: Wireless connection
First of all, our design regarding a gun-model video game controller is not only limited to video games. It could also accomplish the function of a mouse which could control the cursor. Therefore, a wireless connection such as bluetooth is needed.

### Wireless Connection parts:
ESP32-PICO-D4 Espressif Systems ESP32 PICO module. https://www.gridconnect.com/products/esp32-pico-d4-espressif-systems-esp32-pico-module?variant=9740028510244&utm_term=&utm_campaign=Shopping+-+Desktop&utm_source=adwords&utm_medium=ppc&hsa_acc=7986939350&hsa_cam=18566303751&hsa_grp=147887861968&hsa_ad=627525968785&hsa_src=g&hsa_tgt=pla-2078855464952&hsa_kw=&hsa_mt=&hsa_net=adwords&hsa_ver=3&gclid=Cj0KCQiAw8OeBhCeARIsAGxWtUwmVoJj798qb5FMj6avdIXGO-ydMxWrTO9nwvRTR41JAaAWuykQRAQaAodcEALw_wcB

DROK 12V Audio Receiver Blue~Tooth Module DC 5V-12V Portable Wire~Less Electronics Stereo Music Receive Circuit Chip https://www.amazon.com/Bluetooth-DROK-Receiver-Electronics-Headphone/dp/B07P94Z9XR/ref=sr_1_5?crid=25GB25DVFXH3E&keywords=bluetooth%2Bchip&qid=1674762910&sprefix=bluetooth%2Bchip%2B%2Caps%2C365&sr=8-5&th=1




## Subsystem 3: Motion detection
Motion detector
Use gyroscope somatosensory to control the computer cursor.
HiLetgo GY-521 MPU-6050
https://www.amazon.com/HiLetgo-MPU-6050-Accelerometer-Gyroscope-Converter/dp/B01DK83ZYQ/ref=sr_1_3?keywords=Gyroscope%2BSensor&qid=1674763585&sr=8-3&th=1



## Subsystem 4: Vibration
Vibrator to simulate gun recoil. We can use a motor vibration part to achieve this. We will be using a 308-100 8mm vibration motor to mount on our PCB.
https://www.precisionmicrodrives.com/ab-006


## Subsystem 5: Power
This subsystem will supply power to the rest of the sub-system. It contains a battery and a USB charger. If available batteries can not provide enough power, we will choose to use external power supplies.

# Criterion For Success

Our solution should be easily accessible from any computer with bluetooth.
Our gun controller should function as a cursor that accurately reflects the aiming point on the screen.In FPS video games, physically turning the aiming point left and right will turn the player's angle of view left and right with according degree. During a game, pulling the trigger on the gun controller will give the player physical shaking action to simulate gun recoil. Also, pulling the bolt will complete a bullet reload in the game.


# Anticipated Difficulties
Our anticipated difficulties revolve around connecting bluetooth from our device to a PC which can accurately reflect real time cursor position and functions similar to a mouse. Precisely connecting the gun controller with motion detector and gravity sensor to calculate screen coordinate to reflect cursor position is expected to take a long time implementing and debugging.

Final Presentation slides:
https://docs.google.com/presentation/d/1qrRwniksCi8U4OrzGqL8e-9CaAXRSu2n/edit?usp=sharing&ouid=115941454030265620199&rtpof=true&sd=true

Habit-Forming Toothbrush Stand

John Kim, Quinn Palanca, Rahul Vasanth

Habit-Forming Toothbrush Stand

Featured Project

I spoke with a TA that approved this idea during office hours today, and they said I should submit it as a project proposal.

# Habit-Forming Toothbrush Stand

Team Members:

- Rahul Vasanth (rvasant2)

- Quinn Andrew Palanca (qpalanc2)

- John Jung-Yoon Kim (johnjk5)

# Problem

There are few habits as impactful as good dental hygiene. Brushing teeth in the morning and night can significantly improve health outcomes. Many struggle with forming and maintaining this habit. Parents might have a difficult time getting children to brush in the morning and before sleep while homeless shelter staff, rehab facility staff, and really, anyone looking to develop and track this habit may want a non-intrusive, privacy-preserving method to develop and maintain the practice of brushing their teeth in the morning. Keeping track of this information and but not storing it permanently through a mobile application is something that does not exist on the market. A small nudge is needed to keep kids, teenagers, and adults of all ages aware and mindful about their brushing habits. Additionally, many tend to zone out while brushing their teeth because they are half asleep and have no idea how long they are brushing.

# Solution

Our solution is catered toward electric toothbrushes. Unlike specific toothbrush brands that come with mobile applications, our solution applies to all electric toothbrushes, preserves privacy, and reduces screen time. We will implement a habit-forming toothbrush stand with a microcontroller, sensors, and a simple LED display that houses the electric toothbrush. A band of sensors will be wrapped around the base of the toothbrush. Lifting the toothbrush from the stand, turning it on, and starting to brush displays a timer that counts seconds up to ten minutes. This solves the problem of brushing too quickly or losing track of time and brushing for too long. Additionally, the display will provide a scorecard for brushing, with 14 values coming from (morning, night) x (6daysago, 5daysago, . . . , today) for a "record" of one week and 14 possible instances of brushing. This will augment the user's awareness of any new trends, and potentially help parents, their children, and other use cases outlined above. We specifically store just one week of data as the goal is habit formation and not permanent storage of potentially sensitive health information in the cloud.

# Solution Components

## Subsystem 1 - Sensor Band

The sensor band will contain a Bluetooth/Wireless Accelerometer and Gyroscope, or Accelerometer, IR sensor (to determine height lifted above sink), Bluetooth/Wireless connection to the microcontroller. This will allow us to determine if the electric toothbrush has been turned on. We will experiment with the overall angle, but knowing whether the toothbrush is parallel to the ground, or is lifted at a certain height above the sink will provide additional validation. These outputs need to be communicated wirelessly to the habit-forming toothbrush stand.

Possibilities: https://www.amazon.com/Accelerometer-Acceleration-Gyroscope-Electronic-Magnetometer/dp/B07GBRTB5K/ref=sr_1_12?keywords=wireless+accelerometer&qid=1643675559&sr=8-12 and individual sensors which we are exploring on Digikey and PCB Piezotronics as well.

## Subsystem 2 - Toothbrush Base/Stand and Display

The toothbrush stand will have a pressure sensor to determine when the toothbrush is lifted from the stand (alternatively, we may also add on an IR sensor), a microcontroller with Bluetooth capability, and a control unit to process sensor outputs as well as an LED display which will be set based on the current state. Additionally, the stand will need an internal clock to distinguish between morning and evening and mark states accordingly. The majority of sensors are powered by 3.3V - 5V. If we use a battery, we may include an additional button to power on the display (or just have it turn on when the pressure sensor / IR sensor output confirms the toothbrush has been lifted, or have the device plug into an outlet.

# Criterion For Success

1. When the user lifts the toothbrush from the stan and it begins to vibrate (signaling the toothbrush is on), the brushing timer begins and is displayed.

2. After at least two minutes have passed and the toothbrush is set back on the stand, the display correctly marks the current day and period (morning or evening).

3. Track record over current and previous days and the overall weekly record is accurately maintained. At the start of a new day, the record is shifted appropriately.

Project Videos