Arduino Nicla Sense ME
The Nicla Sense ME is a tiny, low-power tool that sets a new standard for intelligent sensing solutions. With the simplicity of integration and scalability of the Arduino ecosystem, the board combines four state-of-the-art sensors from Bosch Sensortec:
- BHI260AP motion sensor system with integrated AI.
- BMM150 magnetometer.
- BMP390 pressure sensor.
- BME688 4-in-1 gas sensor with AI and integrated high-linearity, as well as high-accuracy pressure, humidity and temperature sensors.
Designed to easily analyze motion and the surrounding environment – hence the “M” and “E” in the name – it measures rotation, acceleration, pressure, humidity, temperature, air quality and CO2 levels by introducing completely new Bosch Sensortec sensors on the market.
Its tiny size and robust design make it suitable for projects that need to combine sensor fusion and AI capabilities on the edge, thanks to a strong computational power and low-consumption combination that can even lead to standalone applications when battery operated.
Arduino Nicla Sense ME
To set this device up in Edge Impulse, you will need to install the following software:
- 3.On Linux:
- GNU Screen: install for example via
sudo apt install screen.
With all the software in place it's time to connect the development board to Edge Impulse.
Use a micro-USB cable to connect the development board to your computer.
The development board does not come with the right firmware yet. To update the firmware:
- 2.Open the
nicla_sense_ingestion.inosketch in a text editor or the Arduino IDE.
- 3.For data ingestion into your Edge Impulse project, at the top of the file, select 1 or multiple sensors by un-commenting the defines and select a desired sample frequency (in Hz). For example, for the Environmental sensors:/*** @brief Sample & upload data to Edge Impulse Studio.* @details Select 1 or multiple sensors by un-commenting the defines and select* a desired sample frequency. When this sketch runs, you can see raw sample* values outputted over the serial line. Now connect to the studio using the* `edge-impulse-data-forwarder` and start capturing data*/// #define SAMPLE_ACCELEROMETER// #define SAMPLE_GYROSCOPE// #define SAMPLE_ORIENTATION#define SAMPLE_ENVIRONMENTAL// #define SAMPLE_ROTATION_VECTOR/*** Configure the sample frequency. This is the frequency used to send the data* to the studio regardless of the frequency used to sample the data from the* sensor. This differs per sensors, and can be modified in the API of the sensor*/#define FREQUENCY_HZ 10
- 4.Then, from your sketch's directory, run the Arduino CLI to compile:arduino-cli compile --fqbn arduino:mbed_nicla:nicla_sense --output-dir . --verbose
- 5.Then flash to your Nicla Sense using the Arduino CLI:arduino-cli upload --fqbn arduino:mbed_nicla:nicla_sense --input-dir . --verbose
- 6.Wait until flashing is complete, and press the RESET button once to launch the new firmware.
From a command prompt or terminal, run:
This will start a wizard which will ask you to log in, and choose an Edge Impulse project. You will also name your sensor's axes (depending on which sensor you selected in your compiled
nicla_sense_ingestion.inosketch). If you want to switch projects/sensors run the command with
--clean. Please refer to the table below for the names used for each axis corresponding to the type of sensor:
Note: These exact axis names are required for the Edge Impulse Arduino library deployment example applications for the Nicla Sense.
Configuring the data forwarder for the Nicla Sense.
The Nicla Sense Data forwarder in the Devices tab.
With the impulse designed, trained and verified you can deploy this model back to your Arduino Nicla Sense ME. This makes the model run without an internet connection, minimizes latency, and runs with minimum power consumption. Edge Impulse can package the complete impulse - including the signal processing code, neural network weights, and classification code - up into a single library that you can run on your development board.