Endpreise in CHF – Versand inklusive Schweizer Unternehmen · 076 792 63 50 (WhatsApp/SMS)
Kurse › Raspberry Pi › Stufe 25
Raspberry Pi · Intermediate · Stufe 25 / 40

Raspberry Pi Pico with MicroPython

Program a microcontroller for timing-critical and low-power jobs and connect it to a Pi.

Intermediate freischalten · CHF 19.90 Stufen 14–26, einmalig, kein Abo

10 Lektionen in dieser Stufe

  1. Microcontroller Versus Linux Computer: When to Use a Pico
    Decide which jobs belong on a microcontroller. · Lab: Assign ten tasks to "Pi", "Pico" or "both" and justify the timing or power reason.
  2. Flashing MicroPython Firmware with UF2
    Install firmware and run code from the REPL and from main.py. · Lab: Flash MicroPython, blink the onboard LED from the REPL and save it to run at power-up.
  3. Pico GPIO: Pins, Interrupts and Debouncing
    Use the machine module for digital I/O and interrupt handlers. · Lab: Toggle an LED from a button interrupt with software debouncing.
  4. Built-In ADC and the Temperature Sensor
    Read analog voltages on a microcontroller and scale them. · Lab: Read a potentiometer and the internal temperature sensor and print both.
  5. PWM, Timers and Non-Blocking Loops
    Run several periodic tasks without blocking sleeps. · Lab: Fade an LED, blink another and sample an input at independent rates.
  6. I2C and SPI Peripherals on the Pico
    Reuse your bus knowledge with MicroPython drivers. · Lab: Read a BME280 and show it on an OLED from the same Pico.
  7. Wi-Fi on the Pico W
    Join a network, handle reconnects and make an HTTP request. · Lab: Connect to Wi-Fi with retry logic and fetch the time from a server.
  8. Publishing MQTT from a Microcontroller
    Send sensor data to your broker with a lightweight client. · Lab: Publish readings to the Level 19 broker and receive a command to change the interval.
  9. Sleep Modes and Battery Life Budgeting
    Cut average current and predict runtime from a duty cycle. · Lab: Measure active and sleep current and compute expected life on three AA cells.
  10. Linking a Pico to a Pi over UART and USB Serial
    Design a simple framed protocol between the two boards. · Lab: Send checksummed readings from Pico to Pi and commands back the other way.

Abschlussprojekt

A battery-powered wireless sensor node that wakes, measures, publishes over MQTT to your Pi and sleeps, with a calculated and measured battery life.

Teile für diese Stufe

  • 2 × Raspberry Pi Pico W or Pico 2 W with headers
  • 1 × Micro-USB cable
  • 1 × Breadboard and jumper wire set
  • 1 × BME280 module
  • 1 × SSD1306 OLED display
  • 1 × Potentiometer 10 k ohm
  • 1 × Tactile push button and LED assortment
  • 1 × 3 x AA battery holder with switch
  • 2 × Schottky diode
  • 1 × Raspberry Pi 5 or Pi 4 set from Level 1

In jeder Lektion legst du die passenden Teile direkt in den Warenkorb. Raspberry Pi →

Voraussetzung: Levels 11, 12 and 19: I2C, SPI, UART, analog input and MQTT.

🔒 Sichere Zahlung · 3D Secure 🔐 SSL-verschlüsselt 🚚 Versand in die ganze Schweiz 🇨🇭 Schweizer Unternehmen