You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/1-overview.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The Raspberry Pi 5's Arm Cortex-A76 processor can manage high-performance comput
24
24
25
25
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.
26
26
27
-
## Leverage the Arm ecosystem for Raspberry Pi edge AI
27
+
## Leverage the Arm ecosystem for Raspberry Pi Edge AI
28
28
29
29
For the stack in this setup, Raspberry Pi 5 benefits from the extensive developer ecosystem:
30
30
@@ -46,7 +46,7 @@ The table below shows inference performance for several quantized models running
46
46
| gemma2:2b | 4.1 | 23,758 |
47
47
| deepseek-r1:7b | 1.6 | 64,797 |
48
48
49
-
###LLM benchmark insights on Raspberry Pi 5
49
+
## LLM benchmark insights on Raspberry Pi 5
50
50
51
51
- 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
52
52
- 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
@@ -56,7 +56,7 @@ The table below shows inference performance for several quantized models running
56
56
57
57
This Learning Path focuses on the Raspberry Pi 5, but you can adapt the concepts and code to other Arm-powered devices.
58
58
59
-
###Recommended platforms
59
+
## Recommended platforms
60
60
61
61
| Platform | CPU | RAM | GPIO support | Model size suitability |
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/2-software-dependencies.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ layout: learningpathall
11
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
12
13
13
{{% notice Note %}}
14
-
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/)
14
+
This Learning Path assumes you have set up your Raspberry Pi with Raspberry Pi OS and network connectivity. For Raspberry Pi 5 setup support, see [Raspberry Pi Getting Started](https://www.raspberrypi.com/documentation/).
Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/3-test-gpio.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,17 @@ weight: 4
6
6
layout: learningpathall
7
7
---
8
8
9
+
## Overview
10
+
9
11
The next step is to test the GPIO functionality. In this section, you configure an LED light to simulate a smart home device.
10
12
11
13
## Verify GPIO setup on Raspberry Pi 5
12
14
13
-
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:
15
+
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.
16
+
17
+
See the image below for the full setup:
14
18
15
-

19
+

Copy file name to clipboardExpand all lines: content/learning-paths/embedded-and-microcontrollers/raspberry-pi-smart-home/4-smart-home-assistant.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,9 @@ In the previous section, you configured a LED on GPIO pin 17. The smart home ass
35
35
The code uses gpiozero with lgpio backend for Raspberry Pi 5 compatibility. You can use compatible output devices such as LEDs, relays, or small loads connected to these GPIO pins to represent actual smart home devices. All pin assignments are optimized for the Raspberry Pi 5's GPIO layout.
36
36
{{% /notice %}}
37
37
38
-
, a red LED, push button, and a sensor module. This setup illustrates a simulated smart home with controllable devices.")
38
+
, a red LED, push button, and a sensor module.")
39
39
40
+
This setup illustrates a simulated smart home with controllable devices.
If everything is set up correctly, you should see the following output on running the default command:
69
70
70
-

71
+

71
72
72
73
## Interact with your assistant
73
74
74
75
Try asking the assistant to `turn on living room light`. If you've connected additional devices, come up with prompts to test the setup.
75
76
76
-
###Web interface
77
+
## Web interface
77
78
78
79
Open your browser and navigate to `http://0.0.0.0:8000`, or as printed in the terminal output.
79
80
80
-

81
+

81
82
82
83
83
-
###Command line interface
84
+
## Command line interface
84
85
85
86
Type commands directly in the terminal.
86
87
@@ -92,7 +93,7 @@ I want to watch my favorite show
92
93
its getting late, secure the house
93
94
```
94
95
95
-

96
+

96
97
97
98
{{% notice Troubleshooting %}}
98
99
If you're running into issues with the assistant, here are some things to check:
0 commit comments