Skip to content

Commit 7a5ca8d

Browse files
committed
App note content update
1 parent 5db5a25 commit 7a5ca8d

File tree

1 file changed

+33
-15
lines changed
  • content/hardware/06.nicla/boards/nicla-voice/tutorials/glass-break-detector

1 file changed

+33
-15
lines changed

content/hardware/06.nicla/boards/nicla-voice/tutorials/glass-break-detector/content.md

+33-15
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ Edge Impulse and Nicla Voice provide a highly flexible and adaptable solution fo
6666

6767
![Nicla Voice & Edge Impulse integration versatility](assets/nicla-implementation-scenario.png)
6868

69-
It can be integrated and trained to operate in:
69+
These applications, such as monitoring buildings, vehicles, and public spaces, are some examples that can develop into a comprehensive system integrated with the Arduino Cloud:
7070

7171
- **Buildings:** Identify glass-breaking incidents in residential, commercial, or industrial properties. Alerts can trigger lockdown protocols, notify security teams, and log incidents in real time.
7272

7373
- **Vehicles:** Detect windshield breakage and provide real-time SOS signals, vehicle location, or license plate details. This feature is particularly beneficial for enhancing vehicle security.
7474

7575
- **Custom Environments:** Deploy in specific setups like public transportation, specialized labs, or sensitive equipment areas where glass-related incidents require immediate attention.
7676

77-
This adaptability provides comprehensive coverage and flexible response mechanisms for various scenarios. Additionally, integrating BLE communication and Arduino Cloud makes the system even more versatile and responsive.
77+
This adaptability provides comprehensive coverage and flexible response mechanisms for various scenarios. Additionally, integrating BLE communication and Arduino Cloud makes the system more versatile and responsive.
7878

7979
***If you are new to the Nicla Voice, it is recommended that you review the [Nicla Voice User Manual](https://docs.arduino.cc/tutorials/nicla-voice/user-manual) to familiarize yourself with its features and setup before continuing with this application note.***
8080

@@ -99,7 +99,13 @@ Using the [**DCASE**](http://dcase.community/challenge2017/task-rare-sound-event
9999

100100
The audio data was preprocessed with **Edge Impulse**. Its user interface allows you to manage audio files, including cropping unnecessary segments and splitting longer recordings into manageable pieces.
101101

102-
This preprocessing step ensures that only relevant data is provided into the training pipeline, maximizing the model's performance.
102+
This preprocessing step ensures that only relevant data is provided into the training pipeline, maximizing the model performance.
103+
104+
The preprocessing step includes following steps:
105+
106+
- **Audio Segmentation:** Splitting long audio recordings into smaller, manageable clips for more effective training.
107+
- **Noise Handling:** Removing background noise or irrelevant segments to ensure the dataset focuses on the target sounds.
108+
- **Normalization:** Ensuring consistent audio levels across all samples to improve model reliability. Using Edge Impulse GUI, you can crop unnecessary segments, annotate audio clips, and simplify this process.
103109

104110
![Dataset Overview in Edge Impulse](assets/edge-dataset-overview.png)
105111

@@ -334,13 +340,17 @@ You can also use the Arduino IDE's Serial Monitor to observe similar results fou
334340

335341
![Live Inference Classification (Arduino IDE)](assets/nicla-edge-impulse-glass-break-detect.gif)
336342

343+
With the machine learning model trained, validated, and deployed onto the Nicla Voice, the system is ready for real-world use case applications. As an example, the following section shows how to validate the setup and test the system in practical scenarios.
344+
337345
## Expanding Glass Breaking Detector
338346

339-
You can expand the Glass Breaking Detector system described in this application note to include real-time alerts and interesting automation by integrating the Nicla Voice, Portenta H7 and the Arduino Cloud.
347+
Nicla Voice is now capable of detecting glass-breaking sounds using a trained machine learning model. You can create an expanded system by integrating the Nicla Voice with the Portenta H7 and Arduino Cloud to add functionality and scalability.
348+
349+
This expanded Glass Breaking Detector system introduces real-time alerts and automation, using the Nicla Voice, Portenta H7, and Arduino Cloud capabilities. This integration provides a solution for monitoring and managing glass-related events.
340350

341351
![Possible expanded glass break detection system](assets/nicla-vehicle-install.png)
342352

343-
This enhancement allows for scalable solutions designed for environments such as buildings or other closed spaces with simple yet helpful monitoring and safety features, for example.
353+
The upgraded example offers practical and scalable safety features designed for applications in buildings or other enclosed spaces. Its adaptability allows for implementation in various scenarios, providing distinct monitoring and security needs.
344354

345355
### Expanded System Overview
346356

@@ -559,16 +569,22 @@ The following code snippet shows how the Portenta H7 processes these specific al
559569

560570
```arduino
561571
if (AlertValue == 1) {
562-
alertStatus = true; // General alert status triggered
563-
if (!SecurityAlert) {
564-
SecurityAlert = true; // Turn on security alert
565-
GlassEvent = "Security Alert ON: Glass break detected";
566-
Serial.println("Security Alert activated.");
567-
} else {
568-
LockdownMotor = true; // Turn on lockdown motor
569-
GlassEvent = "Lockdown activated: Additional glass break detected";
570-
Serial.println("Lockdown motor activated.");
571-
}
572+
alertStatus = true; // General alert status triggered
573+
if (!securityAlert) {
574+
securityAlert = true; // Turn on security alert
575+
GlassEvent = "Security Alert ON: Glass break detected";
576+
577+
// Insert Code with preferred security alert routine
578+
579+
Serial.println("Security Alert activated.");
580+
} else {
581+
lockdownMotor = true; // Turn on lockdown motor
582+
GlassEvent = "Lockdown activated: Additional glass break detected";
583+
584+
// Insert Code with preferred lockdown or defensive routine
585+
586+
Serial.println("Lockdown motor activated.");
587+
}
572588
}
573589
```
574590

@@ -763,6 +779,8 @@ Once the Nicla Voice and Portenta H7 are ready with the scripts and configuratio
763779

764780
![Nicla Voice & Portenta H7 - Live Inference](assets/glass-break-pre-cloud.gif)
765781

782+
The expanded system integrates cloud connectivity via the Portenta H7, allowing real-time updates to the Arduino Cloud and automated responses such as activating a lockdown mechanism for motor activated shutters.
783+
766784
### Arduino Cloud Integration
767785

768786
By integrating the system with the Arduino IoT Cloud, you will have the access to a centralized dashboard that provides real-time monitoring and control of your Glass Breaking Detector system.

0 commit comments

Comments
 (0)