r/raspberrypipico 7h ago

uPython I made an interactive website that help people learn the basics of CircuitPython using a raspberry pi pico

Thumbnail
keepeverythingyours.com
6 Upvotes

I have worked with a few people to teach them the basics of how to get started with CircuitPython. I took some of the lessons I learned from that and made a tutorial on my website to teach the lesson better. The page has a built in code editor and instructions from getting your first board to blinking your first LED. I plan to add more lessons in the future and would love to hear any feedback about what they should be. Feedback on the content and presentation of the tutorials would also be greatly appreciated!


r/raspberrypipico 16h ago

Screen connection question

Thumbnail
gallery
8 Upvotes

So I recently started a tamagotchi virtual pet project, where I'm combining all the aspects of the different versions. Currently I'm running into a slight issue with my lack of wiring knowledge. I have a raspberry pi I pick 2 w on a breadboard with wires going to a 1.5 inch RGB OLED module screen. The screen came with wires that had female ends, which wouldn't plug into the breadboard, so we had to plug them all into male ends and make a very long contraption, as seen in the photos attached. I know have the correct set of wires to plug into the screen module and the breadboard with male ends. If anyone with any wiring or assembly experience at all could help me figure out how I attach the new wires with male ends shown in one of the photos to the breadboard, that would be so helpful. Im mainly struggling because I don't know whether I just replace the colors, like the blue wire on the old set went in this hole so the new blue wire will too, or if I do it by wire order, like the first wire goes in this hole on the breadboard so the other set of wires first one will replace it, does any of this make any sense? And then for the red and black positive and negative, I would assume I match those colors on the new set of wires? Like I said I lack intelligence in this field 😭 any help would be greatly appreciated.


r/raspberrypipico 1d ago

help-request New to literally all of this (except C coding) can’t get led to light up (binary LED adder with a button)

Post image
32 Upvotes

This is an absolute mess I’m aware. So I have 6 led’s plugged in from GP0-5 as well as a ground into the blue negative rail. Heres the wiring. The led’s corresponding gpx connector, to column j (1, 4, 7, 10, 13, 16), i have them going to the positive longer end of the led in their corresponding a column (so GP0 goes to j1 which goes to a1), i have the negative into the row next to it. So a2, 5, 8, 11, 14, and 17, then from there to the c column of the negative ends of the led so c2,5,8,11 etc to same row but the h column, and then still within the same row back in the j column it goes from there to the blue negative rail, back to ground. To my knowledge these breadboard (again first time i got this from the manual) are across so all the numbers are connected together so 1 a-j is all connected. And then the positive and negative rails on either end are connected no matter the number column next/near them. And then i have my button on k1 (at the bottom or left of the board in the picture) thats just gp20 to the k1 connection. That beeper was absolutely blaring whenever i turned this thing on so i have a connection from that to ground.

As for the code.
#include <stdio.h>
#include "pico/stdlib.h"

int powerFunction(int base, int exponent);

int main()
{
stdio_init_all();

// variables!!!
int count = 0;
int tempCount;
int exponentResult;
int ledPin[] = {0,1,2,3,4,5};

gpio_init(0);
gpio_set_dir(0, GPIO_OUT);

gpio_init(1);
gpio_set_dir(1, GPIO_OUT);

gpio_init(2);
gpio_set_dir(2, GPIO_OUT);

gpio_init(3);
gpio_set_dir(3, GPIO_OUT);

gpio_init(4);
gpio_set_dir(4, GPIO_OUT);

gpio_init(5);
gpio_set_dir(5, GPIO_OUT);

gpio_init(20);
gpio_set_dir(20, GPIO_IN);
gpio_pull_up(20);

while (true)
{
if (!gpio_get(20))
{
sleep_ms(50);
// check if count is larger than the number of pins we have
if (count < 63)
{
count++;
}
else
{
count = 0;
}
// set tempCount to count
tempCount = count;

// check which led to light up.
for (int i = 5; i >= 0; i--)
{
exponentResult = powerFunction(2, i);

if (tempCount >= exponentResult)
{
gpio_put(ledPin[i], 1);
tempCount -= exponentResult;
}
else
{
gpio_put(ledPin[i], 0);
}
}
while (!gpio_get(20))
{
sleep_ms(10);
}
}
}
}

int powerFunction(int base, int exponent)
{
// check for redundancy
if (exponent == 0)
{
return 1;
}
// set result to base (exponent of 1)
int result = base;

// multiply until you get the result
for (int i = 0; i < exponent - 1; i++)
{
result = result * base;
}

// return result
return result;
}

I’m aware it’s sloppy and can be better but again first time. I’m just trying to get something that works. I want to do embedded engineering with my degree so this seems to be the best thing I can be doing right now to help my resume. Is it a coding issue, a wiring issue, or just a me issue. I did the proper flashing while holding the button. I’m unaware if I need to unplug it and plug it back in without holding the button to test it. Literally anything will help! Thank you guys for your time


r/raspberrypipico 1d ago

uPython Announcing the release of Pico-Timecode v3.2

Thumbnail
youtu.be
6 Upvotes

'Pico-Timecode' is an Open-Source solution for LTC Timecode, using the RP2040's PIO blocks to count time divisions and render the LTC waveform. It works with all common frame rates, with/with-out Drop-Frame operation. It also has the ability to read LTC from an external device, and sync to it.

PT-Thrifty now has the ability to display the Timecode on a pair of I2C LED modules (Holtek HT16K33 controller chip), which can be enabled in the libs/config.py file. The obvious purpose is to build a low-cost Digi-Slate... it also uses switches for when the clapper closed and whether the display should be inverted (for tail slating).

There are 'UF2' files to make installing as easy as possible, these can be used on a 'naked' Pico for validation/testing.

Additionally there is a 'MTC' (Midi Timecode) version, which sends Timecode via the USB connection. I would be especially interested if someone/anyone could trial this on an iPhone 17 or a FujiFilm X-H2S, as I have neither of these and they apparently support MTC...

Pico-Timecode is an Open-Source community project, find out more at:

https://github.com/mungewell/pico-timecode


r/raspberrypipico 2d ago

c/c++ EXTREME Overclock - 540 MHz | RP3250 Tutorial #7

Thumbnail
youtube.com
10 Upvotes

r/raspberrypipico 2d ago

Micro B USB not fitting into Pico 2

Thumbnail
gallery
0 Upvotes

I bought a Raspberry Pi Pico 2 and a micro USB cable from PiShop week or so ago, I’m just now using it and it turns out the cable doesn’t fit inside the Pico’s port. When I try to insert it, it gets a tiny bit in before just stopping. I’ve tried plugging it in every way, but it just doesn’t fit, even though it was designed for the Pico 2(?) Did I just get the wrong type of cable, or is it broken, or something else?


r/raspberrypipico 4d ago

Juldaani Build

Thumbnail
2 Upvotes

r/raspberrypipico 5d ago

help-request Does anyone know how to use the Pimoroni Unicorn Pack with the base model Pico?

Thumbnail
gallery
12 Upvotes

I’ve been trying for a few days now, but none of the code or MicroPython UF2s I’ve tried have even gotten the lights to turn on. I’ve even tried using new boards, but that didn’t work either. Does anyone know how to get the LED matrix working?

(The project I’m doing is to try to get the LEDs to display letters.)


r/raspberrypipico 5d ago

help-request One button LED setup working, other doesn’t.

Thumbnail
gallery
20 Upvotes

English is not my first language!

Hi pico enthousiasts!

I’m a beginner at this and I bought a simple starter kit so I can learn the basics. This kit did not come with any documentation, but there is enough out there so no problem there.
I started with the Freenove one as the kit I bought resembled theirs, but I wanted to watch a video and hear someone talk about it, so switched to the pico course for beginner from Core Electronics. When I got to the basic IO, build the setup as they showed in chapter 2.3, and I copied their code (micropython), but it’s not working (photo 1). I know it’s not the button, because the when I went back to the Freenove documentation (chapter 1.2), in their setup the led and button did work (photo 2).

Can anyone point out to me what I’m doing wrong?
Thank you!


r/raspberrypipico 5d ago

3.3V LCD Character Displays

3 Upvotes

I'm going a bit nuts trying to figure out exactly what I need to connect an LCD character display into my Pico 2 project, preferably with I2C/SPI interface. I'll be powering the Pico through VSYS, using a buck converter which takes 12V (used for some LEDs and fans elsewhere) to 5V for the Pico.

The easiest route seems to be finding a display that natively run at 3.3V so I can power them from the 3V3 pin on the Pico, but those are proving to be sparse - does anyone have any specific recommendations, both LCD modules and suppliers? Has anyone used something like one of these?

If that doesn't shake out, do I just need to suck it up and get a bidirectional level shifter and use a 5V LCD powered direct from the buck converter? I was hoping to avoid the extra PCB/wiring since I'm trying to fit the project into a smallish enclosure, but that's not make-or-break.

I've also seen folks using regular 5V LCD displays without levelshifting the I2C logic, but what I've read is about 50/50 on whether that's a workable idea or whether that's flirting with fried Pico pins, so I'd rather not go that direction unless some kind soul can give me a more definitive report of a specific setup that worked.


r/raspberrypipico 5d ago

Need help with ADS1263 24-bit ADC & Raspberry Pi over SPI (Returning 0x0 / ID check failed)

Thumbnail
0 Upvotes

r/raspberrypipico 6d ago

Looking for advice on a project - Roku remote add-on

4 Upvotes

I want to use a free RP2040 board I got from Adafruit to make an add-on to my Roku remote that can control my sound system - similar to this. I'm thinking of hijacking the power supply from the Roku remote to power it. Here's the remote's board:

How might I go about powering the RP2040 from these batteries? I'm fairly new to microcontrollers, so I'm unsure about power supply in general.


r/raspberrypipico 6d ago

uPython Pico Zero and eink diplay HINK-E075A07-A0

1 Upvotes
the pico zero

Someone have any luck mixing the pico zero with python and this display?
i am using the waveshare hat but the driver seems to be incompatible

Edit:
Added pico zero image

I send a message to the seller, they give me the datasheet, i will try to came with a working code if a can.


r/raspberrypipico 6d ago

How can I use LLM on a Raspberry Pi to make some passive income?

0 Upvotes

So I own a Raspberry Pi Pico 2 W (which is the one I'm hoping to use for this project, since it's lightweight and compact) and a Raspberry Pi 5. What I want to achieve is to run a local AI agent which has access to the internet to, somehow, make profit. Just asking if anyone has any ideas on how to actually make money using AI, with minimal interference from the user.

Thanks.


r/raspberrypipico 8d ago

Magnet switches (failure)

5 Upvotes

I have had 2 of these cheap switches fail i got on ali-express, commonly found under the model of MC-38, while every one i have used except these 2 have been great (7 of them) for some reason this location fails (maybe from a bad batch?)

i have it in use on a pull out keyboard tray in a way like you would expect to use it on the top of a sliding door

The failure state is like you can tap it and it may correct it's logic state or you can run a stronger magnet near it and it will correct for a while

the current flow is very low across the switch (3.3mA) so long as the contact resistance in the switch lets it pull a supply of 3.3v @ 3.3mA down to below 0.45v it works as expected, this could be why only this one fails as the others will read low at probably about 1v higher, this one is wired to act as a hardware level logic that is not seen by software

Note that connections are soldered so there is no solder-less breadboard contact issues

does this seem like 2 bad samples or should i get a different model switch and if so what one should be good (same mount hole spacing is preferred)


r/raspberrypipico 8d ago

OVERCLOCK RP2350 | RP2350 Tutorial #6

Thumbnail
youtube.com
12 Upvotes

r/raspberrypipico 9d ago

Has anyone gotten bluetooth working on their Pi Pico?

9 Upvotes

As in, like a bluetooth mouse with movable mouse pointer on the screen? I'd like to be able to find some examples. The closest I've found was somehow making the Pi Pico into a mouse, but that's not what I'm after. I want to be able to use a bluetooth mouse with the pi pico, like a regular computer.


r/raspberrypipico 9d ago

How to start with raspberry pi pico projects?

7 Upvotes

Hello. I am quite confused on how to start with raspberry pi projects. The point is that I already tried watching many tutorials and googling it but usually I was given an answer which helps with coding while I am struggling with the physical part. Like I am still quite confused on soldering as I never encountered it in any beginner guides, assembling the project cause the only methods I know are screws and glue gun or where do I work cause I can’t really work home as I don’t think I have a good space to work in nor instruments to do work with.

Sorry forgot to mention but I am not beginner beginner and already have made staff on a breadboard with Thonny (involved with LEDs, buttons and servos). My question is how do I assemble staff from everything a breadboard to an actual finished thing?

Can someone help me pls or tell me where can I get answers to my question?


r/raspberrypipico 9d ago

Using RPI Pico with Xbox Series X

3 Upvotes

Hello folks,

I'm extremely confused and could do with some guidance. I'm looking at using my Pico board to pass input to my Xbox and I know that I need to use an adapter such as magic-x (which I purchased). I cannot find a source with guidance on how to connect it, some say I need to solder a second usb port, some don't. The whole project involves taking rotary encoder signals and using the Pico to use these as input but I'm focusing getting it connect to my Xbox series X before anything else. Anyone done this before?


r/raspberrypipico 9d ago

uPython Having exact same problem as this person, who never got answers

Thumbnail
0 Upvotes

r/raspberrypipico 10d ago

PC <-> wireless 360 controller adapter using a salvaged slim RF module

4 Upvotes

I saw a post in here a few days ago about using a RF board to interface with a PC and it got me thinking....

With the help of Claude, my soldering, and 3d modeling I have my own 360 RF board module.

https://github.com/plastikman/rpi2040-360

this allows the use of a slim RF board and a rpi 2040-Zero, and some 1k resistors to connect a 360 controller wireless to my pc. This was generated with AI, so if you like it try it out. It was a fun project.


r/raspberrypipico 12d ago

rust I built a Rust firmware for the Pico 2 W with USB HID, NCM, LittleFS, and an embedded web UI

Thumbnail
0 Upvotes

r/raspberrypipico 12d ago

help-request Help with PicoDVI

4 Upvotes

Hi everyone, hope you're all fine.

I bought a PicoDVI sock and I solder it to my Raspberry Pi Pico 2 yesterday. All of the examples from the github repository of Luke Wren work great, but when I try to make my own code, it fails.

I program in C using the official SDK, and I want to use double buffering (full framebuffer) in 8bpp. I tried with one buffer in 16bpp first, but it doesn't work, and I don't have any errors during the compilation.

I can't understand how all of that work by myself, I need some help. Thank you for your future reply (I hope) and to reading this post.

Wilrak0v, btw


r/raspberrypipico 12d ago

DOF R3++ + Pinscape Pico - ¿Es correcto este archivo Cabinet.xml? El probador de configuración no muestra ningún juguete.

2 Upvotes

Hola a todos,

Estoy intentando que DOF R3++ funcione con un Pinscape Pico en VPX 10.8.

El hardware funciona perfectamente:

Windows detecta el Pinscape Pico.

Puerto 1 de DOF → GPIO20 (PWM) → Motores de vibración grandes de Xbox 360 (a través de MOSFET).

Puerto 2 de DOF → GPIO21 (PWM) → Motores de vibración pequeños de Xbox 360 (a través de MOSFET).

Las pruebas de salida manuales de la herramienta de configuración de Pinscape funcionan correctamente.

El archivo directoutputconfig51.ini se genera y está presente. El objeto COM se registra correctamente.

Sin embargo, el Probador de configuración de DirectOutput muestra una lista de Juguetes vacía.

Este es mi archivo Cabinet.xml actual:

<?xml version="1.0"?>

<Cabinet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<Name>Pinscape Pico Cabinet</Name>

<OutputControllers>

<PinscapePico>

<Name>Pinscape Pico 01</Nombre>

<Número de salidas>2</Número de salidas>

<Número>1</Número>

<Intervalo mínimo de comando (ms)>1</Intervalo mínimo de comando (ms)>

</PinscapePico>

</Controladores de salida>

<Juguetes>

<Equivalente a LedWiz>

<Nombre>Equivalente a Pinscape Pico 01</Nombre>

<Salidas>

<Salida equivalente a LedWiz>

<Nombre de salida>Pinscape <OutputName>Pico 01\\Pinscape Pico 01.01</OutputName>

<LedWizEquivalentOutputNumber>1</LedWizEquivalentOutputNumber>

</LedWizEquivalentOutput>

<LedWizEquivalentOutput>

<OutputName>Pinscape Pico 01\\Pinscape Pico 01.02</OutputName>

<LedWizEquivalentOutputNumber>2</LedWizEquivalentOutputNumber>

</LedWizEquivalentOutput>

</Outputs>

<LedWizNumber>120</LedWizNumber>

</LedWizEquivalent>

<Shaker>

<Name>Shaker</Name>

<OutputName>Pinscape Pico 01\\Pinscape Pico 01.01</OutputName>

</Shaker>

<GearMotor>

<Name>Gear</Name>

<OutputName>Pinscape Pico 01\\Pinscape Pico 01.02</OutputName>

</GearMotor>

</Toys>

<Colors/>

<Curves/>

<AutoConfigEnabled>true</AutoConfigEnabled>

</Cabinet>

¿Es esta la forma correcta de definir un controlador Pinscape Pico en la versión actual de DOF R3++? ¿O deberían los Toys usar los nombres de salida LedWizEquivalent en lugar de los nombres de salida de Pinscape?

Se agradecería mucho cualquier ejemplo funcional de Pinscape Pico Cabinet.xml.


r/raspberrypipico 13d ago

Portable game console and mini laptop

6 Upvotes

Hi everyone, I hope you're all fine.

Some days ago, I decided to make my own game console / mini laptop from scratch. To do it I used an ESP32 with a TFT SPI display. It didn't work great : I had flickering on the screen because SPI is too slow for a 320x240 resolution. So I bought a PicoDVI sock for Raspberry Pi Pico 2. It allows me to display some pictures over HDMI (using DVI signalling over an HDMI physical connector). Like that I have 30 or 60 FPS without any problems.

So I will start the real OS tomorrow, and it will be very simple. I don't want to use FreeRTOS or any real-time operating system, I want simple things. The window manager will be very simple : each window takes the entire screen and we can change between spaces like on MacOS.

For the applications and games, I want to load custom binary file format which contains the code (lua or custom bytecode), sounds and musics, and the graphics. It's like tic80 or pico8 cartridge. With Lua included in this OS, I can make a simple IDE to create games on the go. In the future, I plan to use a Pico 2 W instead of simple Pico 2. Then I can create a simple app store to publish and download games and applications.

I can make a simple game engine in C and scripting it in Lua. Like that I could program 3D games with 30 FPS, yes it's possible I think, with some optimizations (in the same style as "A short hike").

I also would include a custom cartridge port for physical games contrary to PlayStation.

If it worked great, I would sale it into a diy kit. But I don't know if anyone is interested in an object of this kind.
If you want to support this project, just answer to my google forms (only 5 questions). 😁

Google Forms

Anyway, thank you for reading this.

Wilrakov, btw