Displaying Sensor Data with Bluetooth

Pages
Contributors: [redacted]
Favorited Favorite 2

Pick Your Display Method

For this tutorial, you are able to choose how you would like to display your data from the KX132 Triple Axis Accelerometer.

Option 1: Display Data on an OLED

Following the instructions for Option 1 will teach you how to view accelerometer data on an OLED attached to the client ESP32 board. You will need two ESP32 Thing Plus C boards, a KX132 Triple Axis Accelerometer, a Micro OLED Breakout(Qwiic), a USB A to USB C cable, and a power supply. Again, we recommend using the Lithium Ion Battery with JST-PH Connector for the server ESP32 board’s power supply. However, there are a variety of power sources that will work with this application.

Option 2: Displaying Data With a Python Graph

Running this Python script with the sensor connected via Bluetooth generates live-updating graphs, providing a visual representation of the accelerometer's data. Although this is a basic template, the live updating plot offers an excellent way to simulate a dashboard experience without needing to purchase a license, while also allowing for personal customization.

Option 3: Display Data on your Mobile Device

Following the directions for Option 3 will show you how to display accelerometer data on your mobile device through a BLE app. For this section of the tutorial, you will need an ESP32 Thing Plus C board, a KX132 Triple Axis Accelerometer, and a USB A to USB C cable.