Skip to content

Commit dce3339

Browse files
Update learning path content for clarity and consistency
1 parent e6cd7ef commit dce3339

2 files changed

Lines changed: 67 additions & 53 deletions

File tree

content/learning-paths/embedded-and-microcontrollers/edge/_index.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
---
2-
title: Learn How to Run AI on Edge Devices- Arduino Nano RP2040
3-
4-
draft: true
5-
cascade:
6-
draft: true
2+
title: Learn how to run AI on edge devices using Arduino Nano RP2040
73

84
minutes_to_complete: 90
95

10-
who_is_this_for: This learning path is for beginners in Edge AI and TinyML, including developers, engineers, hobbyists, AI/ML enthusiasts, and researchers working with embedded AI and IoT.
6+
who_is_this_for: This Learning Path is for beginners in Edge AI and TinyML, including developers, engineers, hobbyists, AI/ML enthusiasts, and researchers working with embedded AI and IoT.
117

128
learning_objectives:
13-
- Understand Edge AI and TinyML basics.
14-
- Collect and preprocess audio data using Edge Impulse.
15-
- Train and deploy an audio classification model on Arduino Nano RP2040.
16-
- Interface with LEDs to switch them on and off.
9+
- Understand the basics of Edge AI and TinyML.
10+
- Collect and preprocess audio data using Edge Impulse.
11+
- Train and deploy an audio classification model on the Arduino Nano RP2040.
12+
- Control LEDs by turning them on and off based on model predictions.
1713

1814
prerequisites:
19-
- Explore this [learning path](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/arduino-pico/) if you are an absolute beginner.
20-
- An [Edge Impulse](https://edgeimpulse.com/) Studio account.
21-
- The [Arduino IDE with the RP2040 board support package](https://learn.arm.com/install-guides/arduino-pico/) installed on your computer
22-
- An Arduino Nano RP2040 Connect [board](https://store.arduino.cc/products/arduino-nano-rp2040-connect-with-headers?_gl=1*9t4cti*_up*MQ..*_ga*NTA1NTQwNzgxLjE3NDYwMjIyODk.*_ga_NEXN8H46L5*MTc0NjAyMjI4Ny4xLjEuMTc0NjAyMjMxOC4wLjAuMjA3MjA2NTUzMA..).
15+
- Completion of this [Learning Path](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/arduino-pico/) if you're an absolute beginner.
16+
- An [Edge Impulse](https://edgeimpulse.com/) Studio account.
17+
- The [Arduino IDE](https://learn.arm.com/install-guides/arduino-pico/) with the RP2040 board support package installed on your computer.
18+
- An [Arduino Nano RP2040 Connect board](https://store.arduino.cc/products/arduino-nano-rp2040-connect-with-headers).
19+
2320

2421
author: Bright Edudzi Gershon Kordorwu
2522
### Tags
@@ -38,15 +35,15 @@ operatingsystems:
3835

3936
further_reading:
4037
- resource:
41-
title: TinyML Brings AI to Smallest Arm Devices
38+
title: TinyML brings AI to smallest Arm devices
4239
link: https://newsroom.arm.com/blog/tinyml
4340
type: blog
4441
- resource:
45-
title: What is edge AI?
42+
title: What is Edge AI?
4643
link: https://docs.edgeimpulse.com/nordic/concepts/edge-ai/what-is-edge-ai
4744
type: blog
4845
- resource:
49-
title: Edge Impulse for Beginners
46+
title: Edge Impulse for beginners
5047
link: https://docs.edgeimpulse.com/docs/readme/for-beginners
5148
type: doc
5249

Lines changed: 53 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,88 @@
11
---
2-
title: Overview
2+
title: Overview
33
weight: 2
44

5-
### FIXED, DO NOT MODIFY
5+
# FIXED, DO NOT MODIFY
66
layout: learningpathall
77
---
88

9-
This section introduces the related topics that make out the basis for this learning path. Review it before proceeding to the step-by-step tutorial.
9+
{{< notice Note >}}
10+
This section introduces the key concepts that form the foundation of this Learning Path. Review it before starting the step-by-step tutorial.
11+
{{< /notice >}}
1012

1113
# Edge AI
12-
Edge AI refers to artificial intelligence models that run directly on edge devices, processing data locally rather than relying on cloud computing. These models are optimized for real-time decision-making on resource-constrained devices, such as microcontrollers, embedded systems, and IoT sensors.
1314

14-
**TinyML (Tiny Machine Learning)** is a subset of Edge AI that focuses specifically on deploying machine learning models on ultra-low-power microcontrollers and resource-constrained devices. These microcontrollers typically have limited computational resources — often less than 1 MB of flash memory and only a few hundred kilobytes of RAM — and are designed to run on minimal power, sometimes for years on a single coin-cell battery. Despite these constraints, TinyML enables such devices to perform on-device inference, allowing them to make intelligent decisions in real time without needing to send data to the cloud. This opens the door for smart functionality in low-cost, battery-powered devices used in applications such as environmental monitoring, wearables, smart homes, industrial sensors, and more.
15+
Edge AI refers to artificial intelligence models that run directly on edge devices, processing data locally rather than relying on cloud computing. These models are optimized for real-time decision-making on resource-constrained devices such as microcontrollers, embedded systems, and IoT sensors.
1516

16-
## Key Characteristics of Edge AI and TinyML
17+
**TinyML (tiny machine learning)** is a subset of Edge AI that focuses on deploying machine learning models on ultra-low-power microcontrollers. These devices typically have less than 1 MB of flash memory and a few hundred kilobytes of RAM, and they are designed to run for extended periods on minimal power, which is often for years on a single coin-cell battery.
1718

18-
Key features of Edge AI and TinyML include;
19+
Despite these constraints, TinyML enables on-device inference, allowing edge devices to make intelligent decisions in real time without sending data to the cloud. This makes smart functionality possible in low-cost, battery-powered devices used in applications such as environmental monitoring, wearables, smart homes, and industrial sensors.
1920

20-
- **Low Power Consumption**: Designed to run on batteries or harvested energy for months or years.
21+
## Key characteristics of Edge AI and TinyML
2122

22-
- **Small Model Size**: Models are optimized (e.g., quantized or pruned) to fit into a few kilobytes or megabytes.
23+
Key features of Edge AI and TinyML include:
2324

24-
- **Limited Compute & Memory** : Typically operates with <1MB RAM and very limited storage.
25+
- **Low power consumption**: designed to run on batteries or harvested energy for months or years
26+
- **Small model size**: models are optimized (for example, quantized or pruned) to fit into a few kilobytes or megabytes
27+
- **Limited compute and memory**: typically operates with under 1 MB of RAM and very limited storage
28+
- **Real-time inference**: enables immediate local decision-making (for example, wake-word detection)
29+
- **Low latency**: no reliance on cloud; inference is performed on-device
30+
- **Applications**: often used in audio classification, gesture detection, and anomaly detection
31+
- **Example devices**: Arduino Nano 33 BLE Sense, STM32 MCUs, Raspberry Pi Pico, Arduino Nano RP2040 Connect, and more
2532

26-
- **Real-Time Inference** : Enables immediate local decision-making (e.g., wake-word detection).
27-
28-
- **Low Latency** : No reliance on cloud – inference is performed on-device.
33+
## Running AI Models on Resource-Constrained Devices
2934

30-
- **Applications** : Often used in audio classification, gesture detection, anomaly detection, etc.
35+
Running AI on edge devices presents challenges. These devices often lack high-performance CPUs or GPUs, making compute power and memory usage key concerns. Additionally, because many edge devices run on batteries, energy efficiency is critical.
3136

32-
- **Example Devices** : Arduino Nano 33 BLE Sense, STM32 MCUs, Raspberry Pi Pico, Arduino Nano RP2040 Connect, and more.
37+
To address these constraints, models are optimized through techniques such as quantization, pruning, and knowledge distillation. These reduce model size and resource requirements while maintaining acceptable accuracy.
3338

34-
## Running AI Models on Resource-Constrained Devices
39+
## Edge AI implementation workflow
3540

36-
Running AI on edge devices presents several challenges. These devices often lack high-performance CPUs or GPUs, making computational power a limiting factor. Limited RAM and storage require careful memory management, and since many edge devices run on batteries, energy efficiency is a critical concern. To overcome these constraints, models are optimized through techniques such as quantization, pruning, and knowledge distillation, which reduce model size while maintaining accuracy.
41+
Implementing Edge AI typically follows this workflow:
3742

38-
## Edge AI Implementation Workflow
43+
- Data collection using sensors such as microphones, motion detectors, or cameras
44+
- Model training on high-performance systems such as cloud servers or local workstations
45+
- Model optimization to reduce size and computation overhead for deployment
46+
- Deployment to microcontrollers or Arm-based processors
47+
- On-device inference, where the model makes real-time decisions based on local data
3948

40-
The process of implementing Edge AI begins with data collection using sensors, such as cameras, microphones, or motion detectors. This data is then used to train machine learning models on high-performance machines, such as cloud servers or workstations. Once trained, the models undergo optimization to reduce size and computational requirements before being deployed on microcontrollers or Arm-based microprocessors. Finally, inference takes place, where the model processes real-time data directly on the device to make decisions.
4149

4250
## Applications of Edge AI
4351

44-
Edge AI is used in a wide range of applications. In smart homes, voice assistants like Amazon Alexa rely on on-device speech recognition to process wake words. Security systems use AI-driven cameras to detect motion and identify anomalies, while energy management systems optimize power usage by analyzing real-time data from HVAC units.
52+
Edge AI is used in a wide range of real-world applications:
53+
54+
- **Smart homes**: voice assistants process wake words locally; security systems detect motion and identify anomalies
55+
- **Wearables**: smartwatches detect heart rate irregularities; fitness trackers analyze motion patterns
56+
- **Industrial systems**: predictive maintenance uses vibration and temperature data; safety sensors shut down equipment automatically
57+
- **Agriculture**: AI-powered sensors optimize irrigation and fertilizer use
58+
- **Autonomous systems**: onboard AI enables real-time navigation and obstacle avoidance
59+
4560

46-
Wearable devices also benefit from Edge AI. Smartwatches monitor health by detecting heart rate irregularities, and fitness trackers use AI-powered motion analysis to improve exercise tracking.
61+
## The BLERP framework
4762

48-
In industrial settings, predictive maintenance applications rely on IoT sensors to monitor vibrations and temperatures, helping prevent machinery failures. Smart agriculture systems use soil condition sensors to optimize irrigation and fertilization, while autonomous vehicles process sensor data for real-time navigation and obstacle detection.
63+
To remember the benefits of Edge AI, the **BLERP** mnemonic highlights five critical aspects:
4964

50-
## The BLERP mnemonic
65+
| Area | Description |
66+
|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
67+
| **B – Bandwidth** | Reduces the need to send large amounts of data to the cloud, which is especially useful for video or sensor streams. |
68+
| **L – Latency** | Enables real-time decision-making by processing data locally, with no round trips to the cloud. Crucial for self-driving cars, health monitors, and offline use. |
69+
| **E – Economics** | Running models on-device reduces long-term costs related to cloud compute, data transfer, and power usage. |
70+
| **R – Reliability** | Devices remain functional even when disconnected from the internet which is important for mission-critical or remote deployments. |
71+
| **P – Privacy** | Data stays on-device, reducing risk and helping meet regulatory requirements like GDPR or HIPAA. |
5172

52-
To help remember the benefits of **Edge AI**, **BLERP** highlights the critical aspects of deploying machine learning models on edge devices. First used by Situnayake in 2023, the abbreviation expands to **Bandwidth, Latency, Economics, Reliability, and Privacy**. These components are key to understanding the advantages of processing data on-device rather than relying on the cloud. The table below provides an overview of each component and its importance in Edge AI applications.
73+
## Why learn Edge AI?
5374

54-
| Area | Description |
55-
|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
56-
| B – Bandwidth | Edge AI reduces the amount of data that needs to be sent to the cloud. This is critical when working with high-volume data like video or sensor streams. Processing locally helps avoid congestion and dependency on internet speed. |
57-
| L – Latency | Edge devices can make real-time decisions faster because they don't rely on cloud round trips. One of the significant benefits of Edge AI is low latency - processing occurs on-device without needing to send data to the cloud. This is crucial for applications requiring real-time decision-making, such as self-driving cars or medical monitoring devices. Additionally, Edge AI allows devices to function in offline environments, making it ideal for remote locations with limited connectivity. |
58-
| E – Economics | Running models locally on low-power edge devices is often cheaper in the long run. It reduces cloud compute costs, data transmission costs, and energy consumption. |
59-
| R – Reliability | Edge AI systems can continue functioning even with limited or no internet connection. This makes them more robust in remote areas, mission-critical applications, or offline settings. |
60-
| P – Privacy | Data can be processed locally without being transmitted to external servers, reducing the risk of data breaches and complying with privacy regulations like GDPR or HIPAA. |
75+
Edge AI is revolutionizing industries by making smart, local decision-making possible at the device level:
6176

62-
## Why Learn Edge AI?
77+
- **Healthcare**: enables remote diagnostics and patient monitoring
78+
- **Agriculture**: improves yield through intelligent irrigation and pest control
79+
- **Manufacturing**: reduces downtime through predictive maintenance and quality inspection
6380

64-
Edge AI is transforming multiple industries. In healthcare, AI-powered medical diagnostics assist in early disease detection, while remote patient monitoring improves access to care. In agriculture, AI-driven sensors optimize soil conditions and pest control, leading to higher yields and resource efficiency. The manufacturing sector benefits from predictive maintenance and quality inspection, reducing downtime and improving productivity.
6581

66-
## Next Steps
82+
By bringing intelligence to the edge, developers can create responsive, efficient, and secure systems that operate independently of constant internet access.
6783

68-
To build effective TinyML and Edge AI projects, one needs more than just data—**both software and hardware** play a critical role in the development process. While data forms the foundation for training machine learning models, the **software** enables data processing, model development, and deployment, and the **hardware** provides the physical platform for running these models at the edge.
84+
## Next steps
6985

70-
In this learning path, you will build a model that recognize specific voice commands, which will be used to **control LEDs on the Arduino Nano RP2040 Connect**. In the following steps, both software and hardware components will be discussed in detail.
86+
To build effective TinyML and Edge AI solutions, you’ll need both high-quality data and the right combination of software and hardware. In this Learning Path, you’ll train a model to recognize specific voice commands and use those commands to control LEDs on the Arduino Nano RP2040 Connect.
7187

88+
In the next steps, you’ll walk through each part of the process in detail.

0 commit comments

Comments
 (0)