Skip to content

Commit b22b74c

Browse files
SEO optimization
1 parent 2139a5c commit b22b74c

5 files changed

Lines changed: 21 additions & 16 deletions

File tree

content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/1-overview.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: Overview
2+
title: Run LLMs locally on Raspberry Pi 5 for Edge AI
3+
34
weight: 2
45

56
### FIXED, DO NOT MODIFY
@@ -12,7 +13,7 @@ This Learning Path walks you through deploying an efficient large language model
1213

1314
You will create a fully local, privacy-first smart home system that leverages the strengths of Arm Cortex-A architecture. The system can achieve 15+ tokens per second inference speeds using optimized models like TinyLlama and Qwen, while maintaining the energy efficiency that makes Arm processors well suited for always-on applications.
1415

15-
## Why Arm Cortex-A for edge AI?
16+
## Why Arm Cortex-A76 makes Raspberry Pi 5 ideal for Edge AI
1617

1718
The Raspberry Pi 5's Arm Cortex-A76 processor can manage high-performance computing tasks like AI inference. Key architectural features include:
1819

@@ -23,7 +24,7 @@ The Raspberry Pi 5's Arm Cortex-A76 processor can manage high-performance comput
2324

2425
These characteristics make the Raspberry Pi 5 well suited for workloads like smart home assistants, where responsiveness, efficiency, and local processing are important. Running LLMs locally on Arm-based devices brings several practical benefits. Privacy is preserved, since conversations and routines never leave the device. With optimized inference, the system can offer responsiveness under 100 ms, even on resource-constrained hardware. It remains fully functional in offline scenarios, continuing to operate when internet access is unavailable. Developers also gain flexibility to customize models and automations. Additionally, software updates and an active ecosystem continue to improve performance over time.
2526

26-
## Arm ecosystem advantages
27+
## Leverage the Arm ecosystem for Raspberry Pi edge AI
2728

2829
For the stack in this setup, Raspberry Pi 5 benefits from the extensive developer ecosystem:
2930

@@ -45,7 +46,7 @@ The table below shows inference performance for several quantized models running
4546
| gemma2:2b | 4.1 | 23,758 |
4647
| deepseek-r1:7b | 1.6 | 64,797 |
4748

48-
### Insights
49+
### LLM benchmark insights on Raspberry Pi 5
4950

5051
- Qwen 0.5B and TinyLlama 1.1B deliver fast token generation and low average latency, making them suitable for real-time interactions such as voice-controlled smart home commands
5152
- DeepSeek-Coder 1.3B and Gemma 2B trade some speed for improved language understanding, which can be useful for complex tasks or context-aware prompts
@@ -69,4 +70,4 @@ Additionally, the platform must meet the following requirements:
6970
- Python 3.8 or newer
7071
- Ability to run [Ollama](https://ollama.com/)
7172

72-
Continue to the next section to start building a smart home system that highlights how Arm-based processors enable efficient, responsive, and private AI applications at the edge.
73+
In the next section, you’ll set up the software dependencies needed to start building your privacy-first smart home system on Raspberry Pi 5.

content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/2-software-dependencies.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
---
2-
title: Set up software dependencies
2+
title: Set up software dependencies on Raspberry Pi 5 for Ollama and LLMs
33
weight: 3
44

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

9+
## Overview
10+
11+
In this section, you’ll prepare your Raspberry Pi 5 by installing Python, required libraries, and Ollama, so you can run large language models (LLMs) locally.
12+
913
{{% notice Note %}}
1014
This guide assumes you have set up your Raspberry Pi with Raspberry Pi OS and network connectivity. For Raspberry Pi 5 setup help, see: [Raspberry Pi Getting Started](https://www.raspberrypi.com/documentation/)
1115
{{% /notice %}}
@@ -26,7 +30,7 @@ Replace `<user>` with your Pi's username (typically `pi`), and `<pi-ip>` with yo
2630
ssh <user>@<pi-ip>
2731
```
2832

29-
## Set up dependencies
33+
## Install Python and system dependencies
3034

3135
Create a directory called `smart-home` in your home directory and navigate into it:
3236

@@ -77,7 +81,7 @@ If installation was successful, the output should be similar to:
7781
ollama version is 0.11.4
7882
```
7983

80-
## Download and test a language model
84+
## Run a test LLM with Ollama on Raspberry Pi 5
8185

8286
Ollama supports various models. This guide uses `deepseek-r1:7b` as an example, but you can also use `tinyllama:1.1b`, `qwen:0.5b`, `gemma2:2b`, or `deepseek-coder:1.3b`.
8387

content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/3-test-gpio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Test GPIO pins
2+
title: Test Raspberry Pi 5 GPIO pins for smart home devices
33
weight: 4
44

55
### FIXED, DO NOT MODIFY
@@ -8,7 +8,7 @@ layout: learningpathall
88

99
The next step is to test the GPIO functionality. In this section, you configure an LED light to simulate a smart home device.
1010

11-
## Verify GPIO functionality
11+
## Verify GPIO setup on Raspberry Pi 5
1212

1313
Gather your electronic components. Connect the anode (long leg) of an LED in series with a 220Ω resistor to GPIO 17 (physical pin 11). Connect the cathode (short leg) to a ground (GND) pin. See the image below for the full setup:
1414

content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/4-smart-home-assistant.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Smart Home Assistant
2+
title: Build and Run a Smart Home Assistant on Raspberry Pi 5 with LLMs
33
weight: 5
44

55
### FIXED, DO NOT MODIFY
66
layout: learningpathall
77
---
8-
## About the assistant
8+
## Understand the Smart Home Assistant
99

1010
In this section, you will run the assistant through the `smart_home_assistant.py` script. It initializes all configured smart devices on specific GPIO pins and starts a local web server for interacting with the assistant. The script processes user commands using a local language model (via Ollama), parses the model’s JSON output, and executes actions such as toggling lights or locking doors. It supports both terminal and web-based control.
1111

@@ -16,7 +16,7 @@ git clone https://github.com/fidel-makatia/EdgeAI_Raspi5.git
1616
cd EdgeAI_Raspi5
1717
```
1818

19-
## Connect further hardware
19+
## Connect additional smart home hardware on Raspberry Pi GPIO pins
2020

2121
In the previous section, you configured a LED on GPIO pin 17. The smart home assistant is by default associating this with a `living_room_light` device. The single LED setup is enough to run through this Learning Path. If you'd like to connect actual devices, or play with more mock sensors, the default configuration looks like the table below. You can repeat the steps on the previous page to verify the hardware setup on the different GPIO pins. See the image below for an example.
2222

content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Build a Privacy-First LLM Smart Home on Raspberry Pi 5
33

44
minutes_to_complete: 45
55

6-
who_is_this_for: This is an introductory topic for developers interested in building smart home systems using on-device LLMs and Arm-based edge platforms like the Raspberry Pi 5.
6+
who_is_this_for: This is an introductory topic for edge AI developers, Raspberry Pi hobbyists, and software engineers who want to build privacy-first smart home assistants. You’ll learn how to run large language models (LLMs) locally on the Raspberry Pi 5 using Ollama, control GPIO-connected devices, and deploy a web-based assistant without relying on cloud services.
77

88
learning_objectives:
99
- Understand how the Arm architecture enables efficient, private, and responsive LLM inference
@@ -14,8 +14,8 @@ learning_objectives:
1414

1515
prerequisites:
1616
- An Arm-based single board computer (for example, Raspberry Pi 5 running Raspberry Pi OS)
17-
- Basic electronic components - breadboard, LEDs, resistors, and jumper wires
18-
- Basic understanding of Python, GPIO pins, and electronics
17+
- Electronic components (breadboard, LEDs, resistors, jumper wires) for GPIO testing
18+
- Familiarity with Python programming, Raspberry Pi GPIO pinout, and basic electronics
1919

2020
author: Fidel Makatia Omusilibwa
2121

0 commit comments

Comments
 (0)