Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsThe STM32MP135 is a microprocessor from ST that runs Linux, used in industrial panels and gateways. Seeed's ODYSSEY board puts it on a small board with Ethernet and GPIO headers. On Linux, GPIO is handled by the gpiod tools: gpiodetect lists the GPIO banks, gpioinfo names the lines, gpioset drives one and gpioget reads one. A short Python script with the gpiod library does the same in a loop.
GPIO pins are 3.3 V; never connect 5 V signals directly.
Tick anything you already have and the total updates.
Seeed ODYSSEY STM32MP135D board
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V USB-C supply.
blink_button.pyimport gpiod, time
CHIP, LED, BTN = "gpiochip0", 13, 14 # change to your lines
chip = gpiod.Chip(CHIP)
led = chip.get_line(LED); led.request(consumer="led", type=gpiod.LINE_REQ_DIR_OUT)
btn = chip.get_line(BTN); btn.request(consumer="btn", type=gpiod.LINE_REQ_DIR_IN)
on = 0
while True:
if btn.get_value():
on = 1 - on
led.set_value(on)
time.sleep(0.3)
time.sleep(0.01)
Another driver owns that pin; pick a different free pin from gpioinfo.
Install python3-libgpiod from the image's package manager.
Newer libgpiod 2.x uses a different Python API; follow its request_lines examples.
This chip runs Linux; GPIO is reached through the kernel.
Industrial HMIs, gateways and controllers that need Linux and long-term supply.
Yes, it has a parallel RGB display interface.
8 parts: Seeed Studio Studio ODYSSEY – STM32MP135D Cortex-A7 SBC 4Gb DRAM, 5mm LED by Colour (Pack of 10), Resistor Assortment Kit (30 Values), Tactile Push Button Switch, Official Raspberry Pi 32GB A2 Class Micro SD Card, Official Raspberry Pi 4 USB-C Power Supply – 15.3W, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (blink_button.py).
About ₹6,759 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How Linux handles GPIO; Using gpiodetect, gpioinfo, gpioset and gpioget; Finding a header pin's GPIO bank and line.
GPIO pins are 3.3 V; never connect 5 V signals directly.
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.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.