CU-ECEN-5823 / ECEN-5823-Remote-Health-Monitoring

ecen5823-courseproject-saloni1307 created by GitHub Classroom
0 stars 0 forks source link

Subsystem GATT server design and code (Gesture sensor) #2

Closed saloni1307 closed 2 years ago

saloni1307 commented 3 years ago

Implement Gesture sensor in subsystem GATT server.

DoD:

saloni1307 commented 2 years ago

Tested and implemented gesture sensor with arduino successfully. This sensor is quite sensitive Hence, in order to achieve accurate output values, it is imperative to give the gesture (swipe our hand) precisely over the sensor.

Arduino code source : APDS9960 library provided by sparkfun here - https://github.com/sparkfun/SparkFun_APDS-9960_Sensor_Arduino_Library/tree/V_1.4.2/src

image

image

saloni1307 commented 2 years ago

Implemented a few design changes in the project since we are also including low power feature on the server. These changes are explained in detail in Update 1 submission on canvas.

saloni1307 commented 2 years ago

Studied the data sheet and documentation available for APDS9960 sensor.

In Progress: Currently working on the gesture sensor implementation on gecko board.

Latest code update: https://github.com/CU-ECEN-5823/ecen5823-courseproject-saloni1307/commit/116b7a7a1d512e405a4c0dcc8f9a83fd3a343760

Problems: Gesture sensor output consists of FIFO of 4-bytes of data. It also requires I2C writes on multiple registers for initialization and retrieving sensor data. Hence, I am currently working on modifying I2C read and write functions.

saloni1307 commented 2 years ago

Interfaced gesture sensor successfully on Gecko Board.

image

Gesture sensor will be turned on upon PB1 button press on the server

image

Gesture sensor works based on interrupts. Detected gesture displayed on the LCD.

image

image

Gesture sensor turned off upon detecting downward gesture

image

Two new GATT services for Gesture sensor and Pulse oximeter-heart rate sensor

image

Final commit - https://github.com/CU-ECEN-5823/ecen5823-courseproject-saloni1307/commit/d8a6a9a03fd01f7eac1986b81073f8a9763471b6