Pico: run multiple tasks with asyncio
Blink an LED, read a sensor, and serve a web page at the same time on a Pico with MicroPython asyncio. Cooperative multitasking without an RTOS.
Tag
13 tutorials
Blink an LED, read a sensor, and serve a web page at the same time on a Pico with MicroPython asyncio. Cooperative multitasking without an RTOS.
Wire a 28BYJ-48 stepper to a Raspberry Pi Pico with the ULN2003 board and drive it with MicroPython. Precise position control for about $3 in parts.
Give a Pico W a fixed IP address with MicroPython so bookmarks, port forwards, and automations keep working after the router reboots.
Use the Pico's 8 PWM slices from MicroPython to drive servos, dim LEDs, generate tones, and synthesize analog output with a low-pass filter.
Serve a real async web API from a Pico W using uasyncio, with background sensor tasks and non-blocking request handlers. The right way after the synchronous server gets too small.
Turn a Pico W into a BLE peripheral that a phone can connect to over Bluetooth Low Energy, with a GATT service, read, write, and notify characteristics.
Connect a Pico W to Wi-Fi and publish sensor readings to an MQTT broker from MicroPython. The pico equivalent of the ESP32 MQTT tutorial.
Read a DHT22 or BME280 and serve a live dashboard from a Pico W. The smallest, cheapest way to put a sensor reading on your phone's browser.
The shortest possible Pico + MicroPython tutorial. Blink the LED. Get to a working project before you know all the theory.
Control a hobby servo from a Pico using PWM and MicroPython. Includes the library code I use in every Pico servo project.
Wire a DHT22 temperature and humidity sensor to a Pico and read it from MicroPython. The smallest useful Pico sensor project.
Connect the Pico W to Wi-Fi and serve an HTML page from the chip. The smallest useful web server on a $6 microcontroller.
Flash MicroPython to a Raspberry Pi Pico, connect over the REPL, and run your first script. The 10-minute Pico setup.