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
* Update README.md
* Spelling fixes
* Update hardware.md
* Adding IoT for beginners episode
* Adding intro video
* Fixing formatting of read more and self study sections.
* Adding instructions for installing the ReSpeaker
* Adding auth to language understanding
* Adding Wio terminal timer setting
* Update config.h
* Fixing links and images
* Increasing version numbers for SD card fix
* Adding SD card requirement
* speech and translations
* Adding more on translations
* All Wio Terminal now working except playing audio
* Adding more details on virtual environments.
* Fixing tracking links
* Update app.py
* Changing casing for case sensitive OSes
* Fix for #322
* Fix for #323
* Adding dev container
* Updating setup guides for latest releasesr
Copy file name to clipboardexpand all lines: 1-getting-started/lessons/1-introduction-to-iot/pi.md
+32-15
Original file line number
Diff line number
Diff line change
@@ -33,13 +33,6 @@ Set up your Pi for development.
33
33
34
34
1. Follow the instructions in the [Raspberry Pi setup guide](https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up) to set up your Pi, connect it to a keyboard/mouse/monitor, connect it to your WiFi or ethernet network, and update the software.
35
35
36
-
> IMPORTANT
37
-
>
38
-
> Currently the latest Raspberry Pi OS no longer suports accessing the camera via PiCamera or any other Python library. You can read about this change in this [Raspberry Pi blog post](https://www.raspberrypi.com/news/bullseye-camera-system/).
39
-
> You will need to install an older OS by downloading the Buster image from the here:
To program the Pi using the Grove sensors and actuators, you will need to install an editor to allow you to write the device code, and various libraries and tools that interact with the Grove hardware.
44
37
45
38
1. Once your Pi has rebooted, launch the Terminal by clicking the **Terminal** icon on the top menu bar, or choose *Menu -> Accessories -> Terminal*
@@ -50,16 +43,28 @@ To program the Pi using the Grove sensors and actuators, you will need to instal
50
43
sudo apt update && sudo apt full-upgrade --yes
51
44
```
52
45
53
-
1. Run the following command to install all the needed libraries for the Grove hardware:
46
+
1. Run the following commands to install all the needed libraries for the Grove hardware:
One of the powerful features of Python is the ability to install [Pip packages](https://pypi.org) - these are packages of code written by other people and published to the Internet. You can install a Pip package onto your computer with one command, then use that package in your code. This Grove install script will install the Pip packages you will use to work with the Grove hardware from Python.
58
+
This starts by installing Git, along with Pip to install Python packages.
59
+
60
+
One of the powerful features of Python is the ability to install [Pip packages](https://pypi.org) - these are packages of code written by other people and published to the Internet. You can install a Pip package onto your computer with one command, then use that package in your code.
61
+
62
+
The Seeed Grove Python packages need to be installed from source. These commands will clone the repo containing the source code for this package, then install it locally.
60
63
61
64
> 💁 By default when you install a package it is available everywhere on your computer, and this can lead to problems with package versions - such as one application depending on one version of a package that breaks when you install a new version fora different application. To work around this problem, you can use a [Python virtual environment](https://docs.python.org/3/library/venv.html), essentially a copy of Pythonin a dedicated folder, and when you install Pip packages they get installed just to that folder. You won't be using virtual environments when using your Pi. The Grove install script installs the Grove Python packages globally, so to use a virtual environment you would need to set up a virtual environment then manually re-install the Grove packages inside that environment. It's easier to just use global packages, especially as a lot of Pi developers will re-flash a clean SD card for each project.
62
65
66
+
Finally, this enables the I<sup>2</sup>C interface.
67
+
63
68
1. Reboot the Pi either using the menu or running the following commandin the Terminal:
64
69
65
70
```sh
@@ -166,16 +171,28 @@ Configure the installed Pi software and install the Grove libraries.
166
171
167
172
The Pi will be updated and rebooted. The `ssh` session will end when the Pi is rebooted, so leave it for about 30 seconds then reconnect.
168
173
169
-
1. From the reconnected `ssh` session, run the following command to install all the needed libraries for the Grove hardware:
174
+
1. From the reconnected `ssh` session, run the following commands to install all the needed libraries for the Grove hardware:
One of the powerful features of Python is the ability to install [Pip packages](https://pypi.org) - these are packages of code written by other people and published to the Internet. You can install a Pip package onto your computer with one command, then use that package in your code. This Grove install script will install the Pip packages you will use to work with the Grove hardware from Python.
186
+
This starts by installing Git, along with Pip to install Python packages.
187
+
188
+
One of the powerful features of Python is the ability to install [Pip packages](https://pypi.org) - these are packages of code written by other people and published to the Internet. You can install a Pip package onto your computer with one command, then use that package in your code.
189
+
190
+
The Seeed Grove Python packages need to be installed from source. These commands will clone the repo containing the source code for this package, then install it locally.
176
191
177
192
> 💁 By default when you install a package it is available everywhere on your computer, and this can lead to problems with package versions - such as one application depending on one version of a package that breaks when you install a new version for a different application. To work around this problem, you can use a [Python virtual environment](https://docs.python.org/3/library/venv.html), essentially a copy of Python in a dedicated folder, and when you install Pip packages they get installed just to that folder. You won't be using virtual environments when using your Pi. The Grove install script installs the Grove Python packages globally, so to use a virtual environment you would need to set up a virtual environment then manually re-install the Grove packages inside that environment. It's easier to just use global packages, especially as a lot of Pi developers will re-flash a clean SD card for each project.
178
193
194
+
Finally, this enables the I<sup>2</sup>C interface.
195
+
179
196
1. Reboot the Pi by running the following command:
180
197
181
198
```sh
@@ -239,10 +256,10 @@ Create the Hello World app.
239
256
1. From the VS Code Terminal, run the following to run your Python app:
240
257
241
258
```sh
242
-
python3 app.py
259
+
python app.py
243
260
```
244
261
245
-
> 💁 You need to explicitly call `python3` to run this code just in case you have Python 2 installed in addition to Python 3 (the latest version). If you have Python2 installed then calling `python` will use Python 2 instead of Python 3
262
+
> 💁 You may need to explicitly call `python3` to run this code if you have Python 2 installed in addition to Python 3 (the latest version). If you have Python2 installed then calling `python` will use Python 2 instead of Python 3. By default, the latest Raspberry Pi OS versions only have Python 3 installed.
Copy file name to clipboardexpand all lines: 1-getting-started/lessons/1-introduction-to-iot/virtual-device.md
+10
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,16 @@ Configure a Python virtual environment and install the Pip packages for CounterF
70
70
.\.venv\Scripts\Activate.ps1
71
71
```
72
72
73
+
> If you get an error about running scripts being disabled on this system, you will need to enable running scripts by setting an appropriate execution policy. You can do this by launching PowerShell as an administrator, then running the following command:
74
+
75
+
```powershell
76
+
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
77
+
```
78
+
79
+
Enter `Y` when asked to confirm. Then re-launch PowerShell and try again.
80
+
81
+
You can reset this execution policy at a later date if needed. You can read more on this in the [Execution Policies page on Microsoft Docs](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies?WT.mc_id=academic-17441-jabenn).
0 commit comments