Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsThe Cytron Maker Pi Pico Mini is a carrier board for the Raspberry Pi Pico with an indicator LED on each GPIO, plus on-board buttons, a buzzer and Grove ports. For beginners that removes the wiring step: write a few lines of MicroPython in Thonny and watch the LEDs. This project makes a running light, reads a button and plays a beep, then moves on to a Grove sensor.
Tick anything you already have and the total updates.
Cytron Maker Pi Pico Mini (without Pico)
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB from the PC.
main.pyfrom machine import Pin, PWM
import time
LEDS = [Pin(n, Pin.OUT) for n in range(0, 16)] # GP0-GP15 each have an indicator LED
BTN = Pin(20, Pin.IN, Pin.PULL_UP) # set to your board's button pin
BUZ = PWM(Pin(22)) # set to your board's buzzer pin
direction, i = 1, 0
def beep(freq=1500, ms=60):
BUZ.freq(freq); BUZ.duty_u16(20000); time.sleep_ms(ms); BUZ.duty_u16(0)
while True:
for led in LEDS:
led.off()
LEDS[i].on()
if BTN.value() == 0:
direction = -direction
beep()
while BTN.value() == 0:
time.sleep_ms(10)
i = (i + direction) % len(LEDS)
time.sleep_ms(80)
Pick the right port and the MicroPython (Raspberry Pi Pico) interpreter; try another USB cable.
Your board's button is on a different pin; check the label and change BTN.
Buzzer pin differs or its mute switch is on; check the board.
No, if your Pico already has headers.
Yes, install the Raspberry Pi Pico Arduino core and use the same pins.
Plug a Grove sensor into one of the ports and read it in MicroPython.
2 parts: Cytron Maker Pi Pico Mini (Without Pico Board) and Raspberry Pi Pico with Headers and Micro USB Cable. On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 1 hour. The build on this page has 6 steps.
No. This page has the complete, tested code (main.py).
About ₹1,571 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Flashing MicroPython onto a Pico; Pins, loops and timing in MicroPython; Reading buttons and making sound with PWM.
Your first MicroPython project: temperature and humidity on an OLED.
A web page with ON and OFF buttons that switches a relay over Wi-Fi.
A warm ring light that fades up at dusk and down at dawn.
Turn a Pi and a touchscreen into a home command centre with a clock and to-do list.
Learning project. Check every circuit and the datasheet of each part before you power it up.