r/raspberrypipico • • 16h ago

12 WS2812B NeoPixel Effects & HTTP Control on Raspberry Pi Pico / Pico 2 W (MicroPython)

Post image
9 Upvotes

With Christmas around the corner, I updated my MicroPython library (p8o_pico.py) with 12 built-in effects for WS2812B NeoPixel and simple local HTTP/browser control for Raspberry Pi Pico & Pico 2 W -> https://peppe8o.com/ws2812b-neopixel-raspberry-pi-pico-micropython/

Are you working on any Christmas or holiday LED builds this year? Drop a link or video of your NeoPixel setups in the comments - I'd love to see them!


r/raspberrypipico • • 1d ago

Pi Pico powered gaming handheld for ants

Thumbnail gallery
33 Upvotes

I have some plans to make a retro-go esp32 device sometime soon, but in my searching I found Arduboy and figured I could build my own with stuff I already had. Most every game came from Lorandil. Seriously huge shout out to their work.

All parts from my extras bin:
- qt py rp2040
- .96” OLED Screen
- 5 way navigation stick
- 2x buttons
- 1/3 of a piece of perfboard
- hot glue

Performance is great, but it needs a battery to make it useable. Going to see if I can dig a couple hundred mah battery out of something around the house soon.


r/raspberrypipico • • 1d ago

Understanding how to use it for the purpose of modernizing a Logitech Stationary Trackman (T-CC2-9F)

Thumbnail
gallery
7 Upvotes

I am a Gen Z guy with a major interest in old tech and how to use them for modern purposes. I am not that savvy of converting a DBS-9 to USB-A without not knowing how to break into it. I may need to ask someone who does hobbyist Pico projects to figure out how to make a 40 year old design authentic and run on modern hardware. Anyone with knowledge in this mouse will be a life saver before I work with the RP2040 stuff with my Pico WH


r/raspberrypipico • • 1d ago

help-request Send File from Pico to Computer through Serial USB using Minicom

3 Upvotes

I've used ctrl-A-S to send files, but im not sure how to receive them through minicom. has anyone tried it? I couldn't figure out how. Also, is it worth learning to program the serial ports on linux manually in order to interact with the pico manually? Or is that overkill?


r/raspberrypipico • • 1d ago

I turned an LG Magic Remote into a USB air mouse for Windows using a Pico 2W

Post image
2 Upvotes

I wanted to use an LG Magic Remote to control my HTPC including proper air-mouse movement so I put together a Bluetooth-to-USB bridge using a Raspberry Pi Pico 2 W.

The main reason for this is that almost all of the available Air Mouses out there are of bad quality and don't have any sort of premium look. Inspiration came from the Dualsense to PC solution using a Pico 2W that i previously used.

The connection is:

LG MR25GA → Bluetooth LE → Pico 2 W → USB → PC

The Pico presents itself as a standard USB keyboard, mouse and media controller. Normal operation doesn’t require a Windows translation app running in the background.

What’s working:

  • Directional buttons, OK, Back and mouse-wheel scrolling.
  • Gyro air mouse, toggled with the AI button.
  • Left-click and dragging: hold Wheel/OK for 200 ms, then move.
  • Remappable buttons, including F13–F24 for custom shortcuts.
  • Persistent pairing and automatic reconnection.
  • Configurable inactivity disconnect, with a 90-second default.
  • LED on when Bluetooth is connected, off when disconnected.

There’s also an optional desktop companion for pairing, viewing live inputs, changing button mappings, adjusting pointer speed, calibration and firmware installation.

The image shows my customized setup. Actions such as TV volume, opening the on-screen keyboard and double-tap shutdown use separate PC automation; those actions aren’t bundled with the firmware.

Source, prebuilt firmware, setup instructions and tests are here:

https://github.com/Advance-1993/lg-magic-pico2w

Hardware testing has been on one Pico 2 W and an MR25GA. Other LG remote models remain unverified. Microphone support isn’t implemented, and I haven’t measured battery consumption directly. The remote’s firmware is left untouched.

Sharing in case it’s useful to anyone, i see some occasional posts here about which Air Mouse to use. All i can say is that the experience is very good and snappy. Way better than my previous RII I25 Air Mouse remote. AI was used to built the solution, and can probably assist you if you need to further built on this to make another LG Magic Remote compatible.


r/raspberrypipico • • 1d ago

Como puedo ejecutar IA en un raspberry pi pico 2w

0 Upvotes

Tengo una raspberry pi pico 2w y quiero ver como ejecutar IA mediante una API


r/raspberrypipico • • 2d ago

rust Celeste Classic Collection

Thumbnail
youtube.com
1 Upvotes

Introducing Celeste Classic Collection

Three indie game platformers.

Three indie game platforms. (Pi Pico, Pi Pico 2, ESP32)

pixelpunker.itch.io


r/raspberrypipico • • 2d ago

rust I wrote a secure boot bootloader (MCUboot compatible) in Rust for the Pico 2 and ESP32

Thumbnail
github.com
5 Upvotes

Time to share microtun boot, a new secure boot bootloader for ESP32 and Raspberry Pi Pico devices. Secure OTA updates, automatic rollbacks, fault injection hardening, memory safety. Built on the embedded rust ecosystem via the embedded-hal / embedded-storage crates.

Doesn't the boot ROM do this already? Yes mostly but microtun boot is designed as a vendor agnostic abstraction so that I can share firmware packaging and signing workflows across multiple IoT devices. Plus the MCUboot tooling is excellent and well battle tested.

Yes there is a zephyr fork with Pico 2 MCUboot support that I might have been able to use. Sure, but I wanted to remain in the rust ecosystem for this.


r/raspberrypipico • • 2d ago

hardware New FramePico2 Expansion Card prototype for Framework Laptops or any other device with USB-C based on your suggestions

Post image
9 Upvotes

r/raspberrypipico • • 2d ago

Raspberry Pi Pico + LoRa build Confusion.

1 Upvotes

Okay, this is going to be a little long but I'm VERY new to this.

I'm in the middle of buying supplies for my first Raspberry Pi Pico build - I want to make a simple meshtastic... communicator? I guess it would be. Mostly out of curiosity, but with the intention of being able to message my neighbors up the road when the power goes out.

Anywho - I'm basing the build off of this "Meshtastic For Makers" video series: https://www.youtube.com/watch?v=A5d7deZqHBI&list=PLPK2l9Knytg6jzOfcqk5y0iBH48ZATVVD&index=3

In the video, he says to use the Waveshare SX1262 LoRaWAN Node Module Expansion Board for Raspberry Pi (linked here) However, when you read the description, it says: "this board is NOT recommended for use in Meshtastic builds."

HoweVER (again): when I look at the Raspberry Pi Pico page on Meshtastic, it says I SHOULD use that specific board: https://meshtastic.org/docs/hardware/devices/raspberrypi/pico/

What did you use to build yours? Does the Waveshare SX1262 really not work for Meshtastic?

Also worth noting: I'm building this for use on Apple everything (connecting it to a macbook to download software, using it with my iPhone) if that makes any difference.

Again, I'm super new to this so I'm trying to actually build it correctly but don't have much background knowledge.


r/raspberrypipico • • 3d ago

uPython Pico2 USB Crashing

4 Upvotes

Hey all!

I am using the UsbDevice module inside of micropythons michine lib. Anytime I try and activate the usb or read from it, the entire pico shuts off. What could i be doing wrong? Here is my code and thanks in advance

from machine import Pin, USBDevice
from time import sleep

usb = USBDevice()
LED = Pin("LED", Pin.OUT)

def set_config(memview):
    return True

def transfers(transferStage, memView):
    LED.value(1)
    return True

deviceDescriptor = b'\x12\x01\x00\x02\xFF\x00\x00\x20\x30\x14\x50\x01\x01\x00\x00\x00\x00\x02'
configDescriptor = b'\x08\x02\x02\x03\x00\x00\x01\x10'
usb.config(deviceDescriptor, configDescriptor, None, open_itf_cb="set_config", control_xfer_cb="transfers")
usb.active(0)

while True:
    sleep(0.02)

r/raspberrypipico • • 4d ago

hardware watchdog_get_time_remaining_us() lies on the RP2040 (it's documented), and other things from an RP2040 posing as a Switch 2 Pro Controller

Post image
8 Upvotes

r/raspberrypipico • • 4d ago Bravo

uPython Hub75 micropython driver, game menu system and game test

40 Upvotes

My micropython driver, with a game / utility menu system. A few games and utilities for it, controlled by a SNES controller, audio by a simple i2s MAX board.

I've made a not very faithful Elite clone which is about the most elaborate game - some ideas from elite dangerous in it: https://youtu.be/hbIqtFJ5LfQ


r/raspberrypipico • • 5d ago

Old-school engineering at 66: Driving 16x RAM-less 480x480 RGB LCDs with 16x RP2350 over a single High-Z serial bus (115200 baud) & a Borland C++ Builder 5 (2000) app on Windows XP

62 Upvotes

Hi everyone! I'm a 66-year-old "last-century" engineer who still believes in solving hardware problems at the root with minimal resources and zero bloated frameworks.
To help myself learn the piano, I built ClaviFrame: an 88-key modular, foldable display bar (inspired by Rousseau's falling-notes videos) made of 16 3D-printed hinged modules that fold up like a carpenter's ruler.
**Why this was a fun engineering challenge:**Happy to answer any questions about the PIO/DMA timing, the High-Z bus protocol, or the mechanical design!


r/raspberrypipico • • 5d ago

guide Pico 2w and usb-C alternative for PS5 Controller

Thumbnail
gallery
36 Upvotes

Hello to all, i want to buy a Pico 2w to make as a dongle for a PS5 controller to pc. As googling around amazon i found the Pico 2w and another alternative that has the same base as the Pico 2w but uses a Type-C and maybe extra features. My only dilemma in choosing is that if I bought the Type-C would it work and be the same as the Pico 2w or should i just stick to the 2w? Thank you in advance for the help.


r/raspberrypipico • • 5d ago

Pushing TimePico NTP server to the limit. Chrony gives 5us RMS Offset!!

Thumbnail
gallery
7 Upvotes

Following on from last week's "Nudge Lock" scheme...

I got the 'fractional us' code running within TimePico on both the WIZNET and Pico-2W boards. I discovered that the Pico-2W doesn't like 256MHz CPU frequency, so it's limited to 6bit fractional-us @ 128MHz CPU.

This gave some awesome results, even if I don't fully understand how to interpret them:

https://github.com/riblettmj/TimePico/issues/10#issuecomment-7084662839

Setup:

  • 192.168.1.111 - Pico2 + WIZNET Hat, fed from GPS module. Ethernet to laptop via gigabit switch.
  • 192.168.1.112 - Pico2 + WIZNET Hat, fed from same GPS module. Ethernet to laptop via gigabit switch.
  • 192.168.2.102 - Pico2W (NoSelect), fed from same GPS module. Dedicated WiFi network to Laptop running Host-AP.
  • 192.168.100.1 - StarLink terminal (NoSelect), remote over Ethernet and Ethernet-over-Powerline

With Chrony doing a blend of the two WIZNET modules, it reports 5.1us RMS offset (post processed to remove outliers this drops to 1.04us RMS offset) and a mean offset of 33.3ns.

I'd really appreciate some 'expert eyes' looking at this data set, and confirming which parameter/metrics are actually quotable as 'the true accuracy'...

The 'statistics' for the two WIZNET modules shows their time(s) symmetrically bouncing either side of the 'tracking' value. I assume this is just how Chrony interprets the data.

I don't have a more stable reference source than this, and being physically remote (on jittery StarLink internet) don't think I can utilize the public internet for one. Looks like the best solution might be for a GPSDO. "Dear Santa..."

I do have a Mosaic-X5 dev board which has Ethernet and PTP functionality, but when I've tested with this I've seen X5's time wander around (with respect to my TimePicos and StarLink) by a couple of ms. Most likely due to poor GPS antenna (and location), possibly a configuration error.

My task for the next week is to clean up this branch/code and submit a pull request.


r/raspberrypipico • • 6d ago

help-request Raspberry Pi Pico H Project Advice

0 Upvotes

Hi everyone! I'm a first-year, first-semester student, and I need some advice in choosing a project for my final assignment.

It's an individual project using a Raspberry Pi Pico H with MicroPython. The requirements are:

- At least 3 physical inputs (including 1 analogue ADC input and 1 digital priority input).

- At least 3 physical outputs (including 1 digital output and 1 PWM output).

- 3 operating behaviours: normal operation, priority event, and recovery.

- Implement and compare 2 software techniques using a baseline and an improved program.

- Demonstrate everything through both Wokwi simulation and actual hardware.

I'm currently in Week 9 out of 14, so I still have more topics to learn, but I've done searching and here are some ideas I've been considering:

  1. Wind monitoring system: Measures wind speed using a DIY anemometer (i already search how to make it in youtube) and gives a warning when wind conditions are too weak for wind turbines.
  2. Water leakage detection: Detects unusual water flow or household leaks and alerts users.
  3. Drain and flood monitoring: Monitors water levels and rainfall to provide flood warnings.
  4. GPS navigation device: Uses GPS to display location and provide basic navigation or emergency alerts.
  5. Face recognition access control for classroom attendance: Uses OpenCV on a computer to recognise faces and communicates with the Pico to control access.

I'd love to hear your opinions and advice, since i'm still a beginner in this field :)

- Which idea would you recommend for a first-year student? (based on the difficulty, efficiency, sustainability, cost)

- Are there any technical problems I should consider?

- Do you have other interesting ideas that might fit the requirements better?

I'm open to suggestions and improvements. Please do ask me if u need any details from the ideas i have. I'll try to answer them, thanks!


r/raspberrypipico • • 6d ago

RP2350 vs STM32, ESP32 & Arduino – Real Benchmarks | RP2350 #22

Thumbnail
youtube.com
0 Upvotes

r/raspberrypipico • • 6d ago

[Review Request] 4 layer RP2040 + USB-C board, 50 x 49 mm, KiCad 10

Thumbnail gallery
2 Upvotes

Hi friends, I would like a review before I order this. It is a small RP2040 board with USB-C, 7 LEDs, BOOT and RESET buttons and a push switch.

Gallery order: 1 top composite, 2 to 4 3D views, 5 to 8 copper layers L1 to L4, 9 full schematic, 10 to 14 schematic zoomed in sections, 15 stackup and impedance table.

Board

  • 4 layers, FR4 Isola 370HR, about 62 mil, 1 oz copper on all layers
  • L1 parts and USB pairs, L2 solid GND, L3 3.3 V plane, L4 other signals
  • 50 x 49 mm L outline, four M4 plated holes tied to GND, all parts on the top side
  • USB pairs: 5.0 mil trace, 4.0 mil gap, 90 ohm differential, on L1 over L2
  • 6 mil min track and space elsewhere, 8 mil min drill, 8 mil drill to copper, 12 mil tented through vias, IPC Class 2, 1 A max
  • KiCad DRC and ERC are clean
  • Layout was scripted and most non critical nets were autorouted, so it is not hand tidied

Questions

  1. USB pairs at 5/4 mil on L1. The fab table says 89.7 ohm, my field solver says about 94.5 ohm. Is that a yield risk?
  2. The stackup table shows 0.5 oz inner copper, but I am using 1 oz inner. Does that change the impedance enough to worry about?
  3. Five tented 12 mil ground vias in the RP2040 centre pad. OK, or should I move or fill them?
  4. The USB-C footprint is custom from the datasheet (0.40 mm holes, 5.5 mil annular ring, 0.60 mm shell slots). Anything wrong?
  5. 8 mil power neck downs at the RP2040 pads (16 mil elsewhere) with a 1 A max. Fine?
  6. L4 routing: return paths, anything crossing plane gaps, anything a fab would flag.
  7. One sided assembly with a through hole push switch and USB-C. Any assembly problems?

KiCad 10.0.8. I can share Gerbers or the project if that helps. Thanks!


r/raspberrypipico • • 7d ago

Assembly ARM32 Aula 3

Thumbnail
youtube.com
0 Upvotes

Assembly ARM - Atribuição em tempo de projeto (cliente: Lubuntu; servidor: Raspberry Pi OS)


r/raspberrypipico • • 10d ago

uPython Hub75 matrix

69 Upvotes

Yearly improvements to my hub75 driver. Running on a pico2w, I've finally figured out full dma chaining. It's got lots of mpy native helpers to speed things up like sending frames to the display, but it's micropython that you run on it. Here I have two so it's 128x64. This is a demo game, full 3d textured objects in it. Currently at 60 FPS.


r/raspberrypipico • • 10d ago

uPython microPython - "Nudge Lock" and Sub-10ns Time-Stamping

Post image
18 Upvotes

I wanted to implement some precision time-stamping for a microPython project, whilst also keeping these timestamps aligned to the 1us counter (so script could use ticks_us() in tandem).

I wanted to do as much as possible in hardware, so that CPU timing was irrelevant (ie process is NOT affected by any CPU interrupts/blocking code).

Here is the scheme I invented...

  • Alignment - The "Nudge Lock" process aligns the 1us Tick and CLK_GPOUT0 clock, by reading the 'tick countdown' at the rising edge of CLK_GPOUT0 and 'nudging' CLK_GPOUT0 if they do not align. Once aligned, the Counter PIO can be started/sync'ed so it counts with 7.8125ns steps (1/128th of 1us).
  • Time-Stamping - After setup, the Detect and Relay PIOs are re-assigned to trigger from 1PPS (or other input), and the DMA then copies the 1us Counter (32bit) to the FIFO when triggered. Counter PIO simultaneously triggers and copies it's 7.8125ns count to FIFO.
  • Validation and Blend - the Counter PIO is exactly aligned with 1us Tick, the lower 7 bits contain a fractional 1us value and the 8th bit is 1us. Since the DMA might be slightly slow to access/copy the 1us counter, the 8th bit can be used to detect (and correct) this slow transfer.

Limitations:

  • CPU is overclocked to 256MHz, so that Counter PIO precisely matches with 1us.
  • For setup (initial sync) Counter(s) must be in same PIO block as 1st Detect as it uses inter-PIO IRQ. Other Detects may be in other PIO blocks

Notes:

  • For an 'electronics guy' it's handy to have the 1us tick rendered (on GPIO21) so that it can scoped.
  • Relay PIO are not strictly required, but I like the 'comfort' of knowing I have 4x buffer of samples and not a memory location will might be over-written by new sample if I am slow to process old sample.
  • With Relay PIO - RP2040 can be configured to 2x timestamped inputs, RP2350 can be configured to 4x timestamped inputs.
  • Without Relay PIO - RP2040 can be configured to 4x timestamped inputs, RP2350 can be configured to 6x timestamped inputs.
  • DMA can transfer 64bit us Counter, as 4x 32bit which are post-processed. This also removes my 'comfort' buffer.

If anyone found this interesting, or wants to try it out, I placed the code here:

https://github.com/orgs/micropython/discussions/19927#discussioncomment-19570374


r/raspberrypipico • • 10d ago

Engineering a budget-friendly, 6-DOF CAD mouse (NaviGo). Dropping the DIY files soon! 🛠️

Thumbnail
reddit.com
1 Upvotes