* 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
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.
> IMPORTANT
>
> 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/).
> 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.
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
sudo apt update && sudo apt full-upgrade --yes
```
1. Run the following command to install all the needed libraries for the Grove hardware:
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.
This starts by installing Git, along with Pip to install Python packages.
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.
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.
> 💁 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.
Finally, this enables the I<sup>2</sup>C interface.
1. Reboot the Pi either using the menu or running the following command in the Terminal:
```sh
@ -166,16 +171,28 @@ Configure the installed Pi software and install the Grove libraries.
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.
1. From the reconnected `ssh` session, run the following command to install all the needed libraries for the Grove hardware:
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.
This starts by installing Git, along with Pip to install Python packages.
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.
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.
> 💁 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.
Finally, this enables the I<sup>2</sup>C interface.
1. Reboot the Pi by running the following command:
```sh
@ -239,10 +256,10 @@ Create the Hello World app.
1. From the VS Code Terminal, run the following to run your Python app:
```sh
python3 app.py
python app.py
```
> 💁 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
> 💁 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.
@ -70,6 +70,16 @@ Configure a Python virtual environment and install the Pip packages for CounterF
.\.venv\Scripts\Activate.ps1
```
> 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:
```powershell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
```
Enter `Y` when asked to confirm. Then re-launch PowerShell and try again.
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).