For more information see our Particle Photon 2 or Particle Boron documentation.
The ingestion firmware is based on the Particle Photon2 and Boron devices. The Photon2 uses the Analog Devices ADXL362 while the Boron uses the Analog Devices ADXL345
The library used and included in this project for the Photon 2 can be found here This repository also explains how to connect the ADXL362 to the Photon2. For the Boron the library is included in the project properties file dependency list.
Make sure you've installed the particle tools. You can either use particle cli or the VSCode extension Workbench IDE (recommended).
For uploading data to studio, the edge-impulse-data-forwarder
tool is used. This is included in the Edge Impulse CLI tools which can be downloaded here
-
In Workbench, select Particle: Import Project and select the
project.properties
file in the directory that you just downloaded and extracted. -
Use Particle: Configure Project for Device and select [email protected] (or a later version) and choose a target. (e.g. Photon 2/P2 or Boron).
-
Compile with Particle: Compile application (local)
-
Flash with Particle: Flash application (local)
Before starting ingestion make sure you have an Edge Impulse account. Go to edgeimpulse.com to sign up. And make sure you've created a project within Edge Impulse to create your ML model.
Connect your device to the Edge Impulse studio by running following command in a terminal:
$ edge-impulse-data-forwarder
After connecting, the tool will ask to login to your account and select the project. Lastly the tool will ask you name the axes you're about to sample. For a 3 axes accelerometer we would usually name them: accX, accY, accZ
.
Now head over to Edge Impulse studio and start collecting data. More info on how to collect data can be found on the docs pages.