r/raspberrypipico • • 21h ago

uPython Hub75 matrix

33 Upvotes

Yearly improvements to my hub75 driver. Running on a pico2w, I've finally figured out full dma chaining. It's got lots of my 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 • • 6h ago

I'm making an app to reverse engineer AVC-LAN and RP2040!!

Thumbnail aend-tech.com
0 Upvotes

r/raspberrypipico • • 10h ago

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

Thumbnail
reddit.com
0 Upvotes

r/raspberrypipico • • 23h ago

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

Post image
8 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 • • 21h ago

Raspberry Pi Pico showing up as unrecognized afther completing a lightgun build

Thumbnail reddit.com
2 Upvotes

r/raspberrypipico • • 23h ago

Best parts to power raspberry pi pico?

Thumbnail reddit.com
3 Upvotes

r/raspberrypipico • • 1d ago

hardware FramePico2 Expansion Cards based on RP2354 MCU arrived at home from the factory

Thumbnail
gallery
55 Upvotes

r/raspberrypipico • • 1d ago

hardware I've made 2 of these retro hardware teardowns now - they're swappable inside my Pico 2 W powered frame. Build Montage Included.

3 Upvotes

Fast forward to the end to see both in "Passive" mode - less drama - more visible.

Videos for the LCD are generated in a web app from JS based games and a montage maker.

Pico2 had to be OCd to 308mhz for optimum performance @ 24fps. LEDs all work off a timeline based system along with beat detection for audio reaction which i originally wrote in python 4 years ago before converting to C. Things like the ABXY button lights and Gameboy screen flashes come dynamically from the audio base, treble or mids etc - they also react in realtime when playing the built in games so the fire button from a phone will flash whatever buttons the LEDs are configured to.

The built in games are a WIP - they run at about 28fps but with dips to 22 atm - not perfect but playable.

Heap has been a big battle through all of this with fragmentation.

Turns out the biggest issue with all of this is Dust VS Acrylic - its an utter nightmare. Tried a Zerostat anti static gun for the last build and the acrylic just laughs in its face! Hoping to sell them in the future - cant whilst this issue is unsolved. Deionised water next test.

Yes i originally coded the whole LED engine using timeline objects, colour wheels, lerp fades and pixel groupings in Python.

Yes AI has been used through the project as its proceeded to convert and refine into C for speed and more features. No AI was used for the PCB, Fusion side etc.

The Grid Storm game actually comes from a game i did in JS 13 years ago lol. It'll all go into a diary log at some point if anyone cares.

Project in its current form has been ongoing for about 8 months at this stage and started with a similar idea 4 years ago.

Next up is a NES pad and cart i have knocking about. Retro devices are all damaged, cracked or not working before anyone asks.


r/raspberrypipico • • 1d ago

Student Pi Pico Project - Arduino IDE

Thumbnail reddit.com
3 Upvotes

r/raspberrypipico • • 3d ago

c/c++ Sunset-toned animation on a monochrome STN LCD with a Pico

78 Upvotes

I made a sunset-toned animation on a TG12864B monochrome STN LCD driven by a Raspberry Pi Pico (RP2040).

Showing intermediate tones by rapidly toggling pixels on and off (known as frame rate control, or temporal dithering) is nothing new. But on a blue-background STN LCD, pixels pass through purple and yellow hues while switching between dark and light. I use that to display images in a nostalgic color palette.

The Pico generates an individual PDM signal for each of the 128x64 pixels, which gives 256 levels per pixel.

At first the screen was covered in sand-like noise. While trying different refresh rates, I found that the noise almost disappears at one specific frame rate (102-103 FPS for this module). I'm not sure why, but it seems to sync with some periodic operation inside the LCD module.

The 3D scene is also rendered on the Pico.

GitHub repo: https://github.com/shapoco/pdmfrc


r/raspberrypipico • • 3d ago

Error when trying to save main.py file on raspberry pi pico w

3 Upvotes

Basically the title. But i have unplugged and plug back in. Pressed stop. Closed thonny and everything. I am on a mac using a Pico W.


r/raspberrypipico • • 4d ago

Updated: 10-segment LED bar on Raspberry Pi Pico 2 W with MicroPython (p80_pico library), Wi-Fi control & 3V3 current benchmarks

Post image
4 Upvotes

I revised my older Pico LED bar tutorial and tested it on a Raspberry Pi Pico 2 W with MicroPython v1.29.0.

Main changes in this version:

  • Moved from a monolithic script to a single-file p80_pico library (LedBar for local control, WebLedBar for local network HTTP commands)
  • Added active-low / active-high handling (common_anode=True/False) and direction checks
  • Measured actual 3V3 supply branch current with a multimeter (0.0 mA off, 2.1–4.9 mA per segment, 31.6 mA with all 10 segments on) and noted the measurement limits
  • Added troubleshooting steps and local-only security notes

Full guide and code examples:https://peppe8o.com/10-segment-led-bar-raspberry-pi-pico-2w-micropython-wifi/


r/raspberrypipico • • 4d ago

Open Source Programmer and Debugger - Hybridlink | RP2350 #21

Thumbnail
youtube.com
6 Upvotes

r/raspberrypipico • • 5d ago

I built my own PicoDesk using a Raspberry Pi Pico 2 W!

Thumbnail
gallery
51 Upvotes

Hey everyone!

I've been working on improving my little PicoDesk project, and this weekend I finally put together a new hardware setup using the Raspberry Pi Pico 2 W and a zero PCB.

The setup currently features:

  • Raspberry Pi Pico 2 W as the main controller.
  • Dual OLED displays for displaying different information.
  • A compact DIY hardware layout.

This is a small personal maker project, and I'm really enjoying experimenting with MicroPython and embedded hardware.

It's not a polished commercial product, but I'm happy with how it's coming together!

GitHub: https://github.com/kritishmohapatra/PicoDesk

Would love to hear your suggestions, feedback, or ideas for features I could add next!

Thanks!


r/raspberrypipico • • 4d ago

uPython Printed a paper pinout. Works great.

Post image
10 Upvotes

r/raspberrypipico • • 5d ago

Looking for Resources to Learn Microcontrollers & Microprocessors

Thumbnail reddit.com
4 Upvotes

r/raspberrypipico • • 5d ago

pioasm Vibe coded a Raspberry Pi 4 Simulator online

Post image
0 Upvotes

r/raspberrypipico • • 6d ago

Dual platform MicroPython/full Python driver for the MAX31760 fan speed controller

Thumbnail reddit.com
3 Upvotes

r/raspberrypipico • • 6d ago

hardware Pico2W car with webcam - chasing cats

Thumbnail
gallery
5 Upvotes

Pretty happy with result, one Raspberry Pi Pico 2W, a webcam, 4 JGA25 370 motors, 2x 18650, 2 DRV8833 and i can chase my cats around the house and inspect crawlspace. I can share the code if anyone wants to do the same, suggestions on housing welcome


r/raspberrypipico • • 7d ago

help-request Streaming phone mic to pico 2 w?

3 Upvotes

As the title says, I'm trying to figure out how I can stream a phone's mic remotely to a speaker on the pico for a costume. I've seen suggestions on using apps like androidmic but no matter what I do, I get a "failed to connect" error on the app


r/raspberrypipico • • 7d ago

MoofPort: An Open-Source WiFi Driver for BlueSCSI v2

Thumbnail
reddit.com
0 Upvotes

r/raspberrypipico • • 8d ago

Björn Audio Pro Streamer – my battery-powered WiFi → S/PDIF transport for the Mojo 2 (RP2350, AK4118A, Lundahl LL1573)

Thumbnail gallery
15 Upvotes

r/raspberrypipico • • 8d ago

Tufty Boy: a Game Boy Color–inspired shell for the Pimoroni Tufty 2350

Post image
10 Upvotes

Idesigned a pocket console shell for the Pimoroni Tufty 2350. The bare board sits behind a black screen lens, and the Qw/ST Pad from the STEM kit handles the D-pad, A/B and Select/Start through printed button caps.

Files and details on Printables: https://www.printables.com/model/1908066-tufty-boy

Feedback welcome, especially from anyone who has the Tufty and the Qw/ST Pad on hand.


r/raspberrypipico • • 9d ago

Pi Pico Macro Keyboard and App

Thumbnail
gallery
59 Upvotes

My first keyboard project. Cheap 12mm tactile push buttons wired to a Pi Pico. Companion app written in MicroPython allows you to save keyboard profiles and control the LED.

It's a poor soldering job but it works and I'm thrilled.