Questions tagged [raspberry-pi-pico]

For questions relating to the Raspberry Pi Pico microcontroller.

The Raspberry Pi Pico is a microcontroller designed by the Raspberry Pi Foundation. It supports MicroPython, CircuitPython, and C.

The first Pico version was released in 2021.

512 questions
-2
votes
0 answers

failed to launch openocd gdb server: error: spawn enoent

Please help me to overcome this issue I want to debug the code using debug probe. I am unable to know whether I have installed OPENOCD and GDB correctly or not . While Run and debug the file it is throwing error. Please help me out
-2
votes
1 answer

wget says "No headers" when receiving my server's http response

I'm running a server on a Raspberry Pi Pico W that serves a webpage and some data. I'd like the http response to be consumable by a variety of clients (wget, curl, python requests, browsers) but I'm having trouble getting my HTTP response…
zeitoon
  • 330
  • 1
  • 2
  • 10
-2
votes
2 answers

Raspberry Pi Pico - TinyUSB - CDC and UAC2

I have updated the question because I think it can be a bit confusing. I want to make an USB device with 2 different endpoints, an audio card and a serial port. I want to use a Raspberry Pi Pico for this project with the TinyUSB library and I have…
Angel
  • 1
  • 3
-2
votes
1 answer

Nonetype object isn't iterable

I'm new to Python so I decided to replicate this one youtube : https://www.youtube.com/watch?v=3kU3_b78JpA&ab_channel=NikunjPanchal But there is an error in coding section from machine import UART, Pin bt = UART(0,9600) L1 = Pin(2,Pin.OUT) L2 =…
HotDoge
  • 3
  • 1
-2
votes
1 answer

raspberry pi pico (micropython) throws ImportError

if i run this code in VsCode with python it works just fine but if i run it with MicroPython i get the error ImportError: no module named 'cv2' #from machine import ADC,PWM,Pin import cv2 import mediapipe as mp LandMarks =…
VLAD 05
  • 5
  • 2
-2
votes
1 answer

MicroPython count button clicks after 5 presses

I'm trying to count button click but only after 5 clicks and after the fifth click it will print the clicks BUT starting at 1. Example: Press button = 1 click Press button = 2 click Press button = 3 click Press button = 4 click Press button =…
SoggyCashew
  • 69
  • 1
  • 4
  • 15
-2
votes
2 answers

Adafruit hid switch keyboard layout

That's probably a stranger question, but I built a little rubber ducky with a Raspberry pi pico. Now the problem is the keyboard layout is in us but I would like to change it to de (German) but don't know how to do it. The layout is saved as an Mpy…
Kasmori
  • 17
  • 3
-3
votes
0 answers

Raspberry pi pico w MPU6050 not working but worked on arduino uno

I am using MPU6050 with raspberry pi pico w using the same pico example code for MPU6050_i2c c/c++ sdk but it seems not working and displaying zeros I tripple checked the connection diagram Pico ----- mpu6050: 3.3 ----- vcc GND ----- GND GPIO 4…
-3
votes
1 answer

Anyone know what a soft reboot is on the pi pico?

My problem is that every time I run my python code for the pi pico it always says "MPY: soft reboot" and I have no idea on how to fix it. I have tried many tutorials in the past 5 hours and all of them seem to not work.
-3
votes
1 answer

How do I make it so a while loop terminates immediately when the condition is false?

I want to make a while loop terminate right when it's false without: while condition: if !condition: break ... if !condition: break ... if !condition: break ... eg while led_blink: if !led_blink: …
-3
votes
2 answers

string to array list, is it possible?

I'm doing a project for myself which involves raspberry pico and an oled display. I'm using micropython but I think this is more like a generic python question. I need to populate the screen with images, the fastest way to do it is to ask the pico…
taccola
  • 3
  • 1
-4
votes
0 answers

My Raspberry Pi Pico WH is not connecting to my MAC with Intel CPU

This is my first time with a Raspberry Pi product, and I did the normal steps and it's not connecting. At first, I just put it in like a USB device, but then I searched it up and then held on the boostrel before and after putting it in. I was…
1 2 3
33
34