r/raspberrypipico • • Oct 11 '25

Pico built in adc cannot read 0 volts

Post image
0 Upvotes

Hello guys! I keep the message simple. In c, if you run this program, and externally you pull down the selected adc input (in this case gp26, adc input 0) you can only read the desired 0 if the pull down resistor value is under 3.3 kOhms. Pay attention to that the lower 4 bits are discarded. If a higher value resistor is used (lets say 10 kOhms) you read back something other than zero. Why this happens? Why I cannot read back zero with a 10k pull down resistor? Please those people answer this question who encountered the same scenario.


r/raspberrypipico • • Aug 19 '24

Is there going to be a Raspberry Pi Pico 2 W?

0 Upvotes

Title


r/raspberrypipico • • May 23 '25

These pico’s are great to use for monitoring my trading

Post image
1 Upvotes

r/raspberrypipico • • Jan 20 '26

guide Using a Raspberry Pi to detect any object (without manually labeling data)

Post image
0 Upvotes

One of the main limitations of Raspberry Pi Pico W camera projects is that the hardware cannot run modern object detectors like YOLO locally, and the Wi-Fi bandwidth is too limited to stream high-resolution video for remote inference. This often forces developers to work with low-resolution grayscale images that are extremely difficult to label accurately.

A reliable way around this is a High-Resolution Labeling workflow. This approach uses powerful AI models to generate accurate labels from high-quality data, while still training a model that is perfectly matched to the Pico’s real-world constraints.

The Workflow

1. High-Quality Data Collection (The Ground-Truth Step)

Do not record training data through the Pico W.

Instead:

  • Connect the same Arducam sensor and lens module you will use on the Pico W to a PC using an Arducam USB Camera Shield.

  • Mount the camera in the exact physical position it will have in production.

  • Record video or still images at maximum resolution and full color.

Why this works

You preserve:

  • Identical optics and field of view

  • Identical perspective and geometry

But you gain:

  • Sharp, color images that modern auto-labeling models can actually understand

This produces high-quality “ground truth” data without being limited by Pico hardware.

2. Auto-Labeling with Open-Vocabulary Models

Run the high-resolution color frames through an open-vocabulary detector such as:

Use natural-language prompts like:

  • “hand touching a door handle”

  • “dog sitting on a rug”

Because the images are high-resolution and in color, these models can generate accurate bounding boxes that would be impossible to obtain from low-quality Pico footage.

Important
Auto-labeling is not perfect. A light manual review (even spot-checking a subset) is recommended to remove obvious false positives or missed detections.

3. Downsampling to “Pico Vision”

Once labels are generated, convert the dataset to match what the Pico W will actually capture.

Using a Python script (OpenCV):

  • Resize images to 320×240

  • Convert them to grayscale

Why the labels still align

YOLO bounding boxes are stored as normalized coordinates (0.0–1.0) relative to image width and height. As long as:

  • The image is resized directly (no cropping, no letterboxing)

  • The same transformation is applied to both image and label

The bounding boxes remain perfectly valid after resizing and grayscale conversion.

If the training framework expects RGB input, simply replicate the grayscale channel into 3 channels. This preserves geometry while keeping visual information equivalent to the Pico’s output.

4. Training for the Real Deployment Environment

Train a small, fast model such as YOLOv8n using the 320×240 grayscale dataset.

Why this matters:

  • The model learns shape, edges, and texture, not color

  • It sees data that closely matches the Pico’s sensor output

  • Sensitivity to lighting noise and color variation is reduced

This minimizes domain shift between training and production.

5. Production: The Thin-Client Architecture

Deploy the Pico W as a pure sensor node:

  • Capture: The Pico captures a 320×240 grayscale image.

  • Transmit: The image is sent via HTTP POST to a local server.

  • Inference: The server runs the trained YOLO model and returns detection results as JSON.

The Pico does not perform inference. It only sees and reports.

Why This Workflow Works

  • Better accuracy Labels come from high-quality data, while training matches the exact production input.

  • Low bandwidth A 320×240 grayscale image is only a few kilobytes and transmits quickly over Pico W Wi-Fi.

  • Reduced domain shift Training on grayscale data minimizes mismatch caused by color loss, noise, and lighting variability.

  • Scalability The same pipeline can be reused for different scenes by simply re-recording high-res data.

Key Concept

The Pico W is the eye.
The server is the brain.

This workflow lets you build a custom, real-time vision system tailored to your exact deployment scenario without manually labeling thousands of unusable low-quality images.


r/raspberrypipico • • Jul 06 '26

100 Days of MicroPython IoT Projects

Thumbnail
gallery
0 Upvotes

Hey everyone,

I've been building one MicroPython IoT project a day for 100 days straight. Repo: github.com/kritishmohapatra/100_Days_100_IoT_Projects

Covered sensors, BLE, ESP-NOW, RFID, cloud platforms, NeoPixel/GC9A01 displays, a robot car, and more recently AWS + MQTT + Node-RED projects. Got featured in Adafruit's newsletter, Raspberry Pi Blog, Hackster.io, PyCoder's Weekly, and How-To Geek along the way.

Next up, I want to move into projects needing a proper SBC (Raspberry Pi 4 8GB) — local ML, edge dashboards, stuff a microcontroller can't handle.

If you enjoy the project, I've got a small support page, no pressure:

👉 https://buymeacoffee.com/kritish

👉 https://github.com/sponsors/kritishmohapatra

Happy to answer questions about any of the projects. Thanks for reading!


r/raspberrypipico • • Apr 20 '23

Adafruit's unfortunate trend of rent extraction/walled garden behavior

2 Upvotes

Adafruit is a great company in many ways, they have great tutorials and many excellent products. However I have far too many times been burdened by their tendency towards trying to make a walled garden out of their products, which is clearly part of a larger scheme to squeeze money out of people in a non constructive manner. This type of behavior is extremely common and falls into the category of what economists call rent seeking, which is not the same as paying rent on a dwelling unit although there is a connection.

With their circuitpython, for instance, they are clearly hoping to get people hooked on using circuitpython, and then you can only do things with their products because circuitpython is not very commonly used outside their walled garden. It's not the strongest effort of this nature, as people can produce devices that are circtuitpython compatible, it's just that there is no point. They are uselessly, counterproductively forking the community in a transparent effort to milk people for money without being constructive.

The development work on circuitpython may be constructive within it's own box, but there is totally no good reason they could not have just stuck with micropython and advanced that ecosystem.

Imo they are shooting themselves in the foot to some degree. They are assuming their customers are too foolish to notice this, yet at the same time skilled and smart enough to code and make electronic devices etc, and work on projects that are worth paying their premium prices for parts.

In a way I like them and that is why seeing this is bothersome.

Can we agree not to be fooled by this stuff? I think if the community wises up and expresses dissent it is not too late for them to steer down a more advisable path.


r/raspberrypipico • • Jul 25 '26

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 • • Jan 10 '26

First time soldering 😂

27 Upvotes

EDIT:(I posted an updated solder of this on my profile, i re-soldered it, none of the headers are connected. the soldering on this post was pure sloppyness, but amazing for a first ;))

All the solder turned into fat blobs, i used way too much. Is it okay if two headers are connected with solder, or is that completely unacceptable.


r/raspberrypipico • • May 06 '24

Controll RGB led in raspberry pi2040-Zero microcontroller board using micropython

0 Upvotes
import machine, neopixel, time
pixel_pin = 16
pixel = neopixel.NeoPixel(machine.Pin(pixel_pin), 1)
while True:
    pixel[0] = (255,0,0)
    pixel.write()
    time.sleep(1)
    pixel[0] = (0,255,0)
    pixel.write()
    time.sleep(1)
    pixel[0] = (0,0,255)
    pixel.write()
    time.sleep(1)

r/raspberrypipico • • May 26 '26

I (kinda) made a Minecraft for the RP2040

0 Upvotes

After buying a Raspberry Pi Pico and a gaming hat from Aliexpress (which appears to be a clone of one from Waveshare)

I thought: What if I used AI to create a "Minecraft" for the RP2040, considering there wasn't one? Well, that's exactly why I'm writing this post.

Using AI I managed to create the first Minecraft clone that allows destruction and construction of blocks (something that Picocraft didn't allow).

Sorry for my bad english, Im portuguese.

https://github.com/CuquedoHacker/MinicraftClassic


r/raspberrypipico • • Feb 15 '23

Pico being registered as flash drive

0 Upvotes

I created a mouse jiggler for my wife's job. She can plug in external mice, but flash drives are blocked by IT. Apparently when she plugged it in, IT got an alert. The mouse jiggling functionality worked fine though.

Can I change a setting so it doesn't set off these alarms?


r/raspberrypipico • • Feb 05 '23

Pico KuCoin Trader gadget - I spent too long on the UI and forgot I need memory for the API and important code. Not sure how to rescue the project, or I'm just asking too much from the Pico?

5 Upvotes

r/raspberrypipico • • Dec 08 '25

help-request The benefits of scraping with the pico ?

1 Upvotes

I developed a web scraping program for the Pico microcontroller, and it works very well with impressive, even exceptional, performance for a microcontroller.

However, I'm really wondering what the point of this would be for a Pico, since my program serves absolutely no purpose for me; I made it purely for fun, without any particular goal.

I think it could be useful for extracting precise information like temperature or other very specific data at regular intervals. This would avoid using a server and reduce costs, but I'm still unsure about web scraping with the Pico.

Has anyone used web scraping for a practical purpose with the Pico ?


r/raspberrypipico • • Feb 01 '26

I built a custom RP2350 "Magic Ball" that gives advice... Elon Musk style

1 Upvotes

Hi!

Just finished my lastest custom project using a module from Waveshare wiht raspberry pi pico(RP2350 + Round display). It’s a digital Magic 8-Ball, but instead of the usual "Ask again later," it gives you responses based on Elon Musk.

The most interesting part of the code isn't just the responses, but how the "shake" works. Instead of using a simple random list, I implemented a pseudo-simulation of a real icosahedron (20-sided). It uses the IMU data to simulate how a real die would tumble and land.

https://myembeddedstuff.com/custom-rp2350-magic-ball-elon-musk

Let me know what you think!


r/raspberrypipico • • Apr 18 '23

Anyone else notice Pi is a bit off?

0 Upvotes

The following code gets pi noticeably wrong, although only by about 27 parts per billion, to be fair, why would you not just use a closer value? Is it not stored as a floating point number? Pretty minor I guess, but baffling. I'm multiplying and dividing it several times by large values for various reasons and it is actually leading to noticeable although not practically significant errors. This kind of thing can actually lead to errors sometimes, I'm a bit baffled that they would do this? Or is my calculator the one that's wrong?

from math import pi

print(f'{pi:.20f}')

says: 3.14159274101257324219

calculator says: 3.1415926535897932384626433832795

It does not appear to be a rounding error.

Edit: ok, I figured it out, micropython on the rbpi pico uses single precision floating point numbers, the wikipedia article explains. The thing that fooled me is that I was thinking they were just integers and an exponent, but the scheme is actually much more complicated, see wikipedia articles. The number of decimal digits you get is not the precision, just something to learn about computing.


r/raspberrypipico • • Dec 07 '24

help-request I’m new help please

Post image
0 Upvotes

I have wired my raspberry pi “pico” to a waveshare 1.83inch display that I got from the pi hut I wired it correctly and please could someone get me some code where I don’t need an annoying library of if I do please give me some instructions of how I’m new to this and I don’t want to give up thanks for anyone that helps :)


r/raspberrypipico • • Jul 20 '25

help-request What to buy as a beginner

Post image
0 Upvotes

I want to start working with a pico and so far I've selected these items to buy (admittedly with the help of chatgpt so they might not be all correct). What else should I buy or what not to buy of these items. As for what I want to do with it, first off I want to learn bassic coding, what to connect with what, what different parts of the board do etc., wouldn't mind some soldering as well. Later on I would like to program some basic games on it and sensors sound interesting too. I'd appreciate all the tips ! ( I apologize if i put the wrong flair)


r/raspberrypipico • • Oct 11 '26

Help needed: Raspberry Pi 5 + Camera Module 3 (IMX708) not detected by Chromium for a 3D face-tracking avatar

Post image
0 Upvotes

Hi everyone! 👋
I’m trying to get the CSI camera on my Raspberry Pi 5 working with Chromium for real-time face tracking in a web-based 3D avatar application called Berry.
My setup
Raspberry Pi 5
Raspberry Pi Camera Module 3 (Sony IMX708)
Debian 13 Trixie
Linux kernel 6.18.50+rpt-rpi-2712
Chromium 154
GStreamer (libcamerasrc)
v4l2loopback
Three.js and MediaPipe Tasks Vision in my web app
What works
rpicam-hello --list-cameras detects the IMX708.
rpicam-still successfully captures images.
GStreamer detects the camera and its pipeline reaches PLAYING.
I created a virtual camera called Berry Camera at /dev/video10.
The virtual device now reports YUYV, 640×480 at 30 fps.
What doesn’t work
Chromium does not list Berry Camera as a video source on the WebRTC input/output test page.
Running this command:
v4l2-ctl -d /dev/video10 --stream-mmap=3 --stream-count=30 --stream-to=/tmp/berry-test.raw
returns:
VIDIOC_CREATE_BUFS returned -1 (Inappropriate ioctl for device)
GStreamer also reports warnings about unsupported pixel formats.
I recreated the loopback device with exclusive_caps=0 and tried v4l2sink io-mode=2, but Chromium still cannot see the virtual camera.
My questions
What is the recommended way to expose a Raspberry Pi CSI camera to Chromium on Debian 13?
Is v4l2loopback actually needed, or is there a more reliable way to use libcamera directly?
How should I troubleshoot the VIDIOC_CREATE_BUFS error?
Can Chromium’s getUserMedia() access the CSI camera directly, so I can use MediaPipe for face tracking without a virtual webcam?
I’m looking for a reliable solution and would appreciate step-by-step guidance. I can provide additional command output if needed.
Thanks in advance for any help!


r/raspberrypipico • • Mar 21 '23

I'm pretty new to rasberry pi pico and currently using micropython platfrom. I converted one of my old arduino c++ programs to python and I'm eager to find the result but I do not have LED matrix lying around . I will paste the code and you can try and if kind enough you can comment the progress.

0 Upvotes
import time
from machine import Pin

rows = [Pin(r, Pin.OUT) for r in range(8)] # set gpio0 to gpio7 = 8 pins
cols = [Pin(c, Pin.OUT) for c in range(8, 16)] # set gpio8 to 15 = 8 pins
#follow this pinouts if you wanna test this out
smile = ['00000000', '00100100', '00100100','00100100','00000000','01000010','00111100','00000000',]
while True:
 for row in range(len(rows)):
     rows[row].on()
     for col in range(len(cols)):
         inverted = int(smile[row][col]) ^ 1
         cols[col].value(inverted)
     time.sleep_ms(10) #you can try to remove this if it works fo you
     rows[row].off()

r/raspberrypipico • • Feb 15 '23

Raspberry Pi Pico SDK 1.5.0 with Bluetooth Support: A Leap Forward for Microcontroller Development

Thumbnail
self.sb_components
1 Upvotes

r/raspberrypipico • • Nov 29 '22

raspberry pi pico W cheaper is than it's parts.

1 Upvotes

today I was trying to compare multiple different microcontrollers in their raw performance for seeing how well they would be for a super low cost low weight game console/computer(more on this later in the last paragaph). since some have differences in the type or architecture I decided to try and look for MIPS since that was also used in old game consoles. that proved near impossible to find however, still didn't find scores for most of them other than the ones really used in arcade mashines.
But I found what parts where in there, that is not to hard, but I decided to look up how much they cost from their manufacturers.

So when looking it up I first decided to look up the wireless chip used in raspberry pi pico W

https://www.infineon.com/cms/en/product/wireless-connectivity/airoc-wi-fi-plus-bluetooth-combos/wi-fi-4-802.11n/cyw43439/ (manufacturer)

https://www.digikey.nl/en/products/detail/CYW43439KUBGT/448-CYW43439KUBGTCT-ND/16637076?curr=usd (one of the retailers if that other one no longer displays price)

I noticed that this wireless chip alone already costs $7,3 a piece. when looking at buying it in large amounts(1000+ didn't lower in price when going to 5000) I could get it down to €4,26 which is in € so would be around $4,42
when looking at a $6 for a raspberry pi pico W that would leave $1,58 for all the other stuff on the board, the RP2040 costs around $1 according to wikkipedia
leavin $0,58 for the pcb, gold plating and other parts like button, connector, construction, SMD's, voltage converters. if they do it really well and really get all pieces at super cheap prices which for normal people tends to be undoable then they would in a positive schenario just break even, and in a very positive case they might make a few cents proffit. However when we look to what such parts would cost for a hobbyist when you don't buy without tax and in insanely large amounts then building such a board would be many times more expensive than it costs, even only the wireless chip would be around €10 when we asume buying one and including the tax. so in that sense the Raspberry pi Pico W is cheaper than it's parts are.

I wonder does raspberry pi use special things to get the parts even cheaper than when buying so many, or would they sell them at or possibly below production cost to get brand popularity and to get people to develop with the pi pico or from the side of that wireless chip that they sell them for cheaper to raspberry pi so that more people use those chips or perhaps that they licence raspberry pi to make it themselves. or would it just be something that they expect parts to be cheaper to make in the future where this would again just be to get a headstart? both facts and speculations(thoughts) about this are welcome.

The last paragraph

johohohoho, for a while already(many years actually since not that long after I first used a arduino uno many years ago) I thought that it would be fun to make a entire computer run on (back then) a arduino uno because back then computer prices where high even for crappy computers, but arduino uno's where cheap, especially the atmega328 was cheap back then and it was stable and used very little power. so the concept was to make a small computer which could do basic things like writing text documents, etc, just some basic stuff. however the atmega328 in the arduino uno always had one insane flaw and that was that it was quite slow which isn't directly a problem with a optimized os but it had little memory and when you would try to display anything on a display even in low resolution that would take the entire cpu power to do in general. also thought about doing it with things like the ESP's, many years later the raspberry pi pico came out and I was set to think about it again but slightly since I didn't really find it as interesting as the first time I started it, but one thing I always found interesting was how certain game consoles could run games at quite high speeds while having super old slow hardware while a similar game but for pc would just barely or not run even on the highest pc hardware on the market. also the comming of the chromebook made me see a huge flaw in their design as well as a great opportunity for opensource. a while back I thought about why not make something like a chromebook but then powered by something like a raspberry pi pico or something like a esp32, that would make such a chromebook insanely cheap as well as using little power again making it cheaper, and should still be capable of doing exactly what a chromebook is meant to do, you could even do it so that the entire laptop side is just like a dock to which you can plug your pi pico in like a compute chip or such. since both of them have wireless capability it would make them great for this, and it would allow to directly use it with Free Open Source Software servers for storing such files and such, which you could super cheaply host yourself, but which also could be hosted cheaply by things like schools, and ofcource if it takes of bigger companies might also start to support it if you wan to use their versions instead of the decentralized versions. this would still be able to do all that chromebooks are actually meant for since chromebooks just need to be able to browse, read, write and in some cases somewhat do something with images, which all are already doable by a arduino uno so would certainly be doable by them, perhaps also some more inbuild storage might be quite doable, and resulting in a chromebook that actually fit's it's role as a low power secure cheap laptop for using online, and it also allows for more easy modularity/customizability. this was in my mind for a while but I knew people already had working display programs for the GPIO on a raspberry pi so I waited a while to see how they evolve, also because I only have a normal raspberry pi pico and no raspberry pi pico W. so eventually today I came with the idea of using one or 2 raspberry pi pico(s) for making a game console like how they where in the old times, the PGIO made it quite proper for that and so either the second core and pgio could be used for graphics or just a second raspberry pi pico(even though I preffer using one. but then I came with the thing that writing the basics for a test game would be essentially the same as writing a entire os similar to chromeos for it since essentially that chromeos could just be like another game using certain parts of premade code to run and develop things more easily yet still being capable of overwriting it as desired. it might even be possible to flash such things directly on the rapsberry pi pico so that you can select it since there is enough storage inside. or to write it to any other storage you added to it like a micro sd or perhaps one of those cheap IC2 modules which can store a few kb so you can get the retro feel and treat them like cartridges you can slot in. I know this would be more easy and proper to do with a raspberry pi zero, since it has much more processing power, much more gpu power, much more ram, and directly allows using a microsd card. but it needs a microsd card to work and it isn't as fun as the raspberry pi pico as well as that it would be harder to program it and the entire os for it on a harware level so it really is purely optimized for what it needs to do, so the pi zero might still give better results, perhaps even better when unoptimized than the pi pico would when optimized, but part of the fun is to make such cheap bare hardware that is concidered weak do many things that are normally done by powerfull hardware through some basic optimization. the pi zero could do something like that but it would require a much more skilled team since they would have to know about a lot more hardware and optimize a lot more hardware since the pi zero just has much hardware in it so all of that would need to be researched and developed for. while the pi pico only has 2 cpu's, pio, and possibly a wireless chip, making it easy to optimize in relation to the pi zero.


r/raspberrypipico • • 17d ago

Pico 2 W FIDO key works locally, but OpenAI will not count it as hardware (Pico FIDO and RS-Key)

0 Upvotes

Has anyone completed OpenAI Advanced Account Security enrollment using a Raspberry Pi Pico 2 W as a FIDO2 key? I am looking for firsthand compatibility results, not a way around the account requirements.

Hardware: Pico 2 W / RP2350, 4 MB flash, USB data cable. Host: macOS. I initially tested a locally modified Pico FIDO v8.0 build in Chrome and DuckDuckGo. I have now also tested the published RS-Key v0.4.11 default firmware in Chrome, using RS-Key's normal USB identity, not a YubiKey-identity build.

For RS-Key, the release signature/checksum and flash write were verified. Local libfido2 tests passed for PIN setup/policy, resident credential creation, verified authentication, and authentication after unplug/replug. The physical confirmation steps were performed manually.

The confusing part: OpenAI successfully registers the key and lists it as "Passkey", but its advanced-security setup still says to add a hardware key and leaves Continue disabled. Two Apple Passwords backup passkeys are also registered. The same enrollment blocker occurred with both firmwares; the display label alone does not tell us the cause. I have not yet tested this flow on another operating system.

OpenAI Support has escalated the case. The RS-Key project already has an OpenAI compatibility report (issue #128), and I added my results there. Certification/attestation or FIDO metadata checks have been suggested, but I have no confirmation from OpenAI that this is the reason.

Has anyone actually completed this exact OpenAI setup with a Pico/RP2350 key? If so, which firmware and host/browser? Alternatively, is there a documented eligibility requirement that explains why registration can succeed without satisfying this hardware-key step?

This is a troubleshooting question; I am not affiliated with either firmware project. No credentials, PINs, serial numbers or private logs are included.


r/raspberrypipico • • Feb 22 '25

Which Raspberry pi to learn python?

2 Upvotes

Hello all I am going to buy a rp zero 2 w for a psvita dock. But while searching it seems like these could be a great tool to learn more about python. I know some very basic python and would like learn more. I have seen micro controllers that look awesome, so which raspberry pi device would be the most beneficial to learn more python? And what kind of projects can these devices be used for with python? Any help is very very appreciated thank you in advance