Skip to content

Commit a78b6f8

Browse files
committed
Final commit
1 parent 16cfad9 commit a78b6f8

File tree

6 files changed

+22
-4
lines changed

6 files changed

+22
-4
lines changed

content/hardware/07.opta/opta-family/opta/tutorials/22.ml-anomaly-detection-app-note/content.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tags:
1313
- Anomaly detection
1414
- BLE
1515

16-
author: 'Davidson Dantas and Thiago Alves'
16+
author: 'Davidson Dantas, Thiago Alves and Christopher Méndez'
1717
hardware:
1818
- hardware/07.opta/opta-family/opta
1919
---
@@ -22,7 +22,7 @@ hardware:
2222

2323
Motor health is crucial for ensuring the efficiency and reliability of industrial systems. Undetected performance anomalies can lead to costly downtime, unplanned maintenance, and even complete system failure. By closely monitoring deviations in motor operating patterns, it is possible to perform preventive maintenance and address potential issues before they escalate. For instance, an increase in motor vibration outside normal operating parameters may indicate the need for maintenance, helping to prevent breakdowns and ensure continued operation. The rise of connected technologies has made real-time monitoring of motor behavior more accessible and effective, enabling proactive maintenance and improved operational performance in industrial environments.
2424

25-
![ML for Detecting Anomalies System Thumbnail](assets/thumbnail.png)
25+
![ML for Detecting Anomalies System Thumbnail](assets/thumbnail-c.png)
2626

2727
This application note introduces an innovative approach to motor anomaly detection by combining the power of the Arduino Nicla Sense ME, Machine Learning using the Edge Impulse platform, and the Arduino Opta™. The Nicla Sense ME, equipped with accelerometer sensor, captures vibration data directly from the motor. This data is wirelessly transmitted via Bluetooth® Low Energy (BLE) from the Nicla Sense ME to the Opta™, which then forwards it to the Edge Impulse platform. Using Edge Impulse's intuitive interface, a Machine Learning model is created, configured, and trained to detect anomalies by analyzing the collected data.
2828

@@ -69,6 +69,12 @@ The goal of this application note is to demonstrate a motor anomaly detection an
6969

7070
***The model performance can be affected if the application is implemented on a very different environment than the one used for training. It's recommended to feed the dataset with new samples and retrain the model for a new and upgraded deployment.***
7171

72+
### Download the Project Code
73+
74+
[![ ](assets/download.png)](assets/Packaging_and_labeling.zip)
75+
76+
Download the whole project code [here](assets/Nicla_Opta_ML_Vibration_Anomaly_Detection.zip).
77+
7278
## Machine Learning Model for Motor Anomaly Detection
7379

7480
Machine Learning is a programming approach that enables devices to analyze raw sensor data, extract key features, and use them to recognize patterns or make predictions based on prior training. In this application note, machine learning is applied to identify motor anomalies by analyzing vibration data collected through the Nicla Sense ME.
@@ -661,13 +667,25 @@ Finally, in the `inference_run()` function we also update the following cloud va
661667

662668
## Arduino Cloud
663669

670+
By leveraging the Arduino Cloud, we can seamlessly integrate a simple yet powerful dashboard to monitor and visualize the system status in real-time:
671+
672+
![Cloud Dashboard](assets/dashboard.gif)
673+
674+
Within the Arduino Cloud's dashboard, the system variables can be monitored with the following widgets:
675+
676+
- Line charts for historical review of anomaly.
677+
- Vibration and fault state alert widgets for easy understanding of the motor state.
678+
- Bluetooth® connectivity status.
679+
680+
This dashboard can be easily accessed from a PC, mobile phone, or tablet anywhere, providing instantaneous updates wherever we are.
664681

682+
Additionally, we can set up various integrations to complement our project. For example, we can forward the dashboard data to an external service using Webhook, IFTTT automation, and Smart Home integrations.
665683

666684
## Full Motor Anomaly Detection Example
667685

668-
All the necessary files to replicate this application notes can be found [here](assets/Nicla_Opta_ML_Vibration_Anomaly_Detection.zip):
686+
All the necessary files to replicate this application note can be found [here](assets/Nicla_Opta_ML_Vibration_Anomaly_Detection.zip):
669687

670-
This file contains the following codes: Nicla Sense ME firmware, Opta™ training firmware and Opta™ deployment firmware.
688+
This file contains the following codes:
671689

672690
- **Nicla Sense ME firmware:** This code configures the Nicla Sense ME as a BLE peripheral to collect vibration data from the motor and transmit it wirelessly via Bluetooth® Low Energy (BLE).
673691
- **Opta™ training firmware:** This code sets up the Opta™ as a BLE central device to receive vibration data from the Nicla Sense ME and forward it to the connected computer via serial communication.

0 commit comments

Comments
 (0)