Raspberry Pi Pico using MicroPython - Tutorial #2: Button Inputs (Digital Inputs and Interrupts)

Опубликовано: 24 Март 2026
на канале: Robocraze
11,298
223

The Raspberry Pi Pico is a new flexible microcontroller board from Raspberry Pi. It is a tiny, fast, and versatile board built using RP2040, a brand new microcontroller chip designed by Raspberry Pi.

In this video, we go over digital inputs using micropython on the Pico by taking input from a micro push button using the value() method in a while loop and also by using interrupts. The IDE used is Thonny.

Purchase your Pico now: https://robocraze.com/raspberry-pi-pi...

Pico micropython tutorial series playlist:    • Raspberry Pi Pico using MicroPython  
Tutorial #1 on LEDs and digital outputs:    • Raspberry Pi Pico using MicroPython - Tuto...  
Tutorial #3 on ADC and PWM (with flex sensor example):    • Raspberry Pi Pico using MicroPython - Tuto...  
Tutorial #4 on OLED display:    • Raspberry Pi Pico using MicroPython - Tuto...  
Tutorial #5.1 on making an Etch-a-Sketch with the pico (Part-1):    • Raspberry Pi Pico using MicroPython - Tuto...  
Tutorial #5.2 on making an Etch-a-Sketch with the pico (Part-2):    • Raspberry Pi Pico using MicroPython - Tuto...  

Raspberry Pi Pico Getting started page: https://www.raspberrypi.org/documenta...
Download Thonny IDE: https://thonny.org/

Chapters:
00:00 - Introduction
00:42 - Circuit Explanation
01:39 - Circuit Setup
02:44 - Button value read function
03:50 - Script to control LED with button
06:30 - Script for rising and falling edges
09:04 - Interrupts attached to button
11:33 - Outro