Skip to content

Zephyr repository for Pickleball Sensor data to be transmitted over Bluetooth LE

License

Notifications You must be signed in to change notification settings

briangood35/pickleball-sensor

Repository files navigation

Pickleball Sensor

This repository contains a Zephyr application that reads accelerometer data from an LSM6DSL 6-axis sensor and advertises the data over Bluetooth LE, as well as a Python script for recieving the data. The code has been developed for and tested on Seeed Studio XIAO nRF52840 Sense.

Getting Started

Before getting started, make sure you have a proper Zephyr development environment. Follow the official Zephyr Getting Started Guide.

Building and running for the sensor

To build the application, run the following command:

west build -b $BOARD app

where $BOARD is the target board. For the XIAO nRF52840 Sense, $BOARD is xiao_ble_sense.

Once you have built the application, run the following command to flash it:

west flash

For the Seeed Studio XIAO nRF52840 Sense, west flash will only work when connected via a Seeeduino XIAO Expansion Board.

Without the expansion board, you can manually upload the UF2 file by double pressing the reset button on the board, which will make the device discoverable as a drive on the computer. Copy and paste the zephyr.uf2 file found in build/zephyr to the drive and delete CURRENT.uf2.

Running the reciever

Run the following:

python pickle_client.py

This script connects to the device and print all accelerometer data to the terminal.

About

Zephyr repository for Pickleball Sensor data to be transmitted over Bluetooth LE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published