Lab B.3 - Bluetooth
- Due 3 Dec 2024 by 23:59
- Points 2
- Available after 5 Dec 2022 at 0:00
Instructions
LabB-3_CM2024HI1033_HT24-1.pdf Download LabB-3_CM2024HI1033_HT24-1.pdf
This is an duo assignment. Solutions must be handed in the day before the presentation.
For the bluetooth assignment you can choice between three different sensors
Polar Verity Sense
Communicate directly with at the Polar Verity Sense using the Polar_Measurement_Data_Specification.pdf Download Polar_Measurement_Data_Specification.pdf
Or Use this SDK for your polar communication: https://github.com/polarofficial/polar-ble-sdkLinks to an external site.
You can try the Polar sensor in Chrome browser https://github.com/MariahSabioni/SmartGym Links to an external site.
https://github.com/yeetivity/ble-polar Links to an external site.
Movesense
For Android - This project demonstrates how to scan for Movesense devices, connect to a device, and then subscribe for data from a sensor (i.e. enable notifications): https://gits-15.sys.kth.se/anderslm/Ble-Gatt-Movesense-2.0. In this example, only accelerometer data is read, at 13 Hz (/Meas/Acc/13). You have to figure out how to subscribe to, parse, and interpret, the data relevant in assignment 3, part B.
How to use an Android Service and a BroadcastReceiver to get BLE data, possibly in the background, https://gits-15.sys.kth.se/anderslm/Ble-Gatt-with-Service. This example is not specific to Movesense.
For iOS - There is a Showcase app on AppStore - https://apps.apple.com/us/app/movesense-showcase/id1439876677Links to an external site. And This project demonstrates how to scan for Movesense devices, connect to a device, and then subscribe for data from a sensor (i.e. enable notifications): https://gits-15.sys.kth.se/jwi/movesenseOSX_Firmware2.0.git
Seeed studio
For seeed studio nRF52 bed-enable Board the following link include how to make Bluetooth enabled https://wiki.seeedstudio.com/XIAO-BLE-Sense-Bluetooth-Usage/ Links to an external site.and this link show how two retrieve IMU values https://wiki.seeedstudio.com/XIAO-BLE-Sense-IMU-Usage/ Links to an external site.
Code hand-in
https://maceo.sth.kth.se/Student/Assignment/2199