One board, two different kinds of intelligence
Architecture study · Separate sensing, fusion, event logic and the receiver.
Device profile · Arduino Nicla Sense ME ↗1. Measure before interpreting
The BHI260AP contains acceleration and angular-rate sensing. The BMM150 contributes magnetic-field observations; the BME688 and BMP390 supply environmental measurements. Their outputs have different sample rates and meanings. A gas reading should not be treated as if it were a new motion sample. Component roles
2. Fuse on the sensor hub
Bosch BSX fusion combines motion and magnetic inputs into orientation estimates. The hub firmware exposes virtual sensor IDs, including a rotation vector. This is where a set of measurements becomes a higher-level estimate. Its correctness still depends on calibration and the installation. Fusion and virtual sensors
3. Read in the Arduino application
The nRF52832 runs the sketch. Arduino_BHY2 wraps Bosch’s sensor interface and parses updates into classes such as SensorQuaternion and SensorActivity. Keep BHY2.update() serviced; use elapsed-time checks for slow application work rather than long blocking waits. Firmware/library versions and available sensor IDs belong in the experiment record. Library internals
4. Define what should happen
Proposed controller: map a calibrated pitch estimate to neutral, tilted-left, tilted-right or unknown. Use separate entry and exit thresholds, require a short dwell, and output unknown when samples become stale. These are application rules we would implement, not claims about a bundled Nicla gesture model.
5. Make the receiver optional
Validate an LED or USB log first. BLE adds a second state machine: connection loss, late messages and receiver restarts. A receiver should expire stale state rather than leave a command active. The board documentation also supports ESLOV host connections. Connection options
Where a gas model would fit
A useful custom gas classifier needs a defined target, labeled samples, a validated sensing/heater configuration and a compatible deployment route. The BME688’s presence does not supply those automatically. Keep custom gas classification in Ideas Lab until the exact Nicla firmware and export path are demonstrated. No model has been trained or installed here.