StratoLab

Lesson 1: Introduction and how to get started building the StratoLab

Objectives:

What you will be learning:

What do all these parts do anyways?

Microcontroller

Breadboard

LED

Resistors

BMP-180

GPS Module

SD Card Reader

Basic guide to electronics safety

Getting started with the IDE

This project will be using the Thonny Integrated Development Environment. Thonny acts as the interface between the code you write and the Raspberry Pi Pico microcontroller.

Let’s give it a try!

  1. Download Thonny from the Thonny website and install it
  2. Connect your Raspberry Pi Pico using the USB cable

    :information_source: Connecting a brand new Raspberry Pi Pico
    If this is a brand new Raspberry Pi Pico, you will need to load MicroPython onto the microcontroller to allow Python code to execute. If you see the error Couldn't find the device automatically., this means you will need to load MicroPython onto the Pi Pico microcontroller. Follow the steps below to install MicroPython onto the Pi Pico using Thonny.

    a. With the Pi Pico plugged in, select Run -> Configure Interpreter from within Thonny
    b. For Which kind of interpreter should Thonny use for running you code? choose MicroPython (Raspberry Pi Pico) from the list. Leave all other options as default, but do not click OK yet
    c. Click Install or update MicroPython
    d. Click MicroPython variant and choose the version of MicroPython specific to your Raspberry Pi Pico hardware type. If your Pi Pico supports wireless, choose the option with Pico WH option. Otherwise choose Pico H

    e. Select the latest version of MicroPython
    f. Click Install
    g. Click Close
    h. Click OK

  3. Using Thonny, download and open the main.py file in Lesson 1: /src/main.py. You will choose This Computer and search for the directory of this project.

    Take some time to read the comments in this code so you understand what is happening, this will help you later in the lesson. In Python, comments are marked with an ‘#’.

  4. Run the script.

    run-script

Congratulations! You have successfully completed Lesson 1.

Troubleshooting