/nano-33-sense-serial-example

An example program for the Arduino Nano 33 BLE Sense that outputs CSV data for all sensors through UART.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

nano-33-sense-serial-example

An example program for the Arduino Nano 33 BLE Sense that outputs CSV data for all sensors through UART. For a more complete description, see The Hacky Super Loop Arduino Nano 33 BLE Sense Example You Have Been Waiting For

Features

  • Simple example for outputting raw sensor data from the Arduno Nano 33 BLE Sense through Serial.
  • Ability to plot data using Serial Plotter.
  • Simple macro based configuration for which sensors output data.
  • Easy way to check sensor functionality

Usage

To use this example the Arduino nRF528x Mbed OS board package must be installed. It also requires the following libraries to be installed:

These can all be installed using by using Library Manager and Board Manager. This is an example of a serial plotter plot with all sensor data enabled.

Serial Plotter Example Output

Configuration

A series of macros exist to enable the easy enabling and disabling of sensor data. Setting them to true enables the data output, and setting them to false disables the output. Having them all true creates a pretty meaningless graph, as the scaling will be way off for each sensor, and there will be too much data to view.

#define SERIAL_PLOT_MP34DT05    (true)
#define SERIAL_PLOT_LSM9DS1     (true)
#define SERIAL_PLOT_APDS9960    (true)
#define SERIAL_PLOT_LPS22HB     (true)
#define SERIAL_PLOT_HTS221      (true)