Edge Impulse: Data forwarder
The Edge Impulse data forwarder sample demonstrates the usage of Edge Impulse’s data forwarder to provide sensor data to Edge Impulse studio when Using Edge Impulse with the nRF Connect SDK. The sample forwards simulated accelerometer data generated by the Simulated sensor driver.
Requirements
The sample supports the following development kits:
Hardware platforms |
PCA |
Board name |
Build target |
---|---|---|---|
PCA10090 |
|
||
PCA10095 |
|
||
PCA10040 |
|
||
PCA10056 |
|
Overview
The sample periodically performs the following operations:
Reads data from sensor. The sample reads simulated acceleration measurements for X, Y, and Z axes.
Forwards the data through UART using the protocol specified by Edge Impulse’s data forwarder.
Note
The sample uses UART only to forward the sensor data. For this reason, sample logs are provided through RTT, unlike in other samples.
See Edge Impulse website for more information about the Edge Impulse platform.
Configuration
See Configuring your application for information about how to permanently or temporarily change the configuration.
Setup
Before running the sample, you must complete the following steps:
Prepare your own project using Edge Impulse studio external web tool. See Using Edge Impulse with the nRF Connect SDK for more information about starting using the tool.
Follow the Edge Impulse CLI installation guide to install Edge Impulse command line tools. These tools are needed because the
edge-impulse-data-forwarder
is used to forward the data received from the device through UART to Edge Impulse studio.
Building and running
This sample can be found under samples/edge_impulse/data_forwarder
in the nRF Connect SDK folder structure.
See Building and programming an application for information about how to build and program the application.
Testing
After programming the sample to your development kit, test it by performing the following steps:
Run the
edge-impulse-data-forwarder
Edge Impulse command line tool. The tool connects the device to your Edge Impulse project. See Edge Impulse’s data forwarder documentation for a guide.Trigger sampling data from the device using Edge Impulse studio:
Go to the Data acquisition tab.
In the Record new data panel, set the desired values and click Start sampling.
Observe the received sample data on the raw data graph under the panel. For the default sample configuration, you should observe sine waves.
Dependencies
This sample uses the following nRF Connect SDK drivers:
In addition, it uses the following Zephyr drivers: