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
1
vote
1 answer

Segmentation fault when trying to use a Picoprobe with OpenOCD

i wanted to use the new Raspberry Pi Pico as a Picoprobe debugger. I followed this tutorial. I am using Windows. When i try to run it with src/openocd.exe -f interface/picoprobe.cfg -f target/rp2040.cfg -s tcl i get a segmentation fault. When…
OGe
  • 21
  • 3
0
votes
0 answers

Pico Pi / Inky - Update screen every hour using MicroPython

brand new to this stuff, this is my first ever touching of anything like this and struggling to know what the terms mean on blog posts and what to google, so thought would hopefully get a clean cut answer. I've got a Pi Pico W and Inky Frame running…
owenmelbz
  • 6,180
  • 16
  • 63
  • 113
0
votes
0 answers

Can't flash circuitpython program to rpi pico using ampy

I was trying to figure out how to make code persist on the pico and stumbled upon ampy. When trying to flash my pico, I was met with an error (exact output below). I'm guessing it might be something permission related but I really don't know if…
0
votes
0 answers

rasberry pi on vscode

I'm using raspberry pi pico and I'm trying to use vscode to program. I used this video to try to get the extension and everything set up, but when I try to do ctrl+shift+p > MicroPico: Configure project but I get this error: "Command 'MicroPico:…
Achen
  • 3
  • 3
0
votes
0 answers

start_server function only handles a few requests

I am writing in MicroPython. Target is a servo-motor controlled by calls to device's IP-address. The Raspberry Pi Pico runs a server listening to incoming requests: http://192.168.178.22/servo/on should start the servo…
Hillbicks
  • 1
  • 1
0
votes
0 answers

TeraTerm resend duplicate data when paste lots of texts

I write programs for a pair of the Raspberry Pi Pico W boards, and one side recive the data(Texts) from the serial port, then encrypted it and send to another board with socket. Another side recive it and decrypt it. The encrypt process will take…
0
votes
1 answer

main.py not running when I start Raspberry Pi Pico

My code: print("hello world") I want this file to run when I start the Raspberry Pi Pico. I named it main.py but when I unplugged and plugged the Raspberry Pi Pico into my computer the program didn't start.
0
votes
1 answer

How do I play an audio file (wav) on the Raspberry Pi Pico?

I am trying to create a C program to play a wav file on command on the Raspberry Pi Pico through a GPIO pin using PWM. I've got the wav file in a C array (which I'm trying to read). Is this the correct method?
0
votes
0 answers

"OSError: [Errno 5] EIO" when running my code

Error: >>> %Run -c $EDITOR_CONTENT Traceback (most recent call last): File "", line 5, in File "/lib/ssd1306.py", line 110, in __init__ File "/lib/ssd1306.py", line 36, in __init__ File "/lib/ssd1306.py", line 71, in…
Pinnache
  • 1
  • 1
0
votes
0 answers

How to serialize variable values in a hexadecimal string using python?

I'm working with a Raspberry Pi Pico using micropython and I need to send through serial port data from some sensors in and hexadecimal string. For instance: temp = 27.52 hum = 42 alt = 125.45 angle = 32.27 I tought of multiply the floats by 100…
Fernando
  • 13
  • 3
0
votes
1 answer

LED fails to blink

When I run my code to blink a LED, Thonny runs it well. But on the Raspberry Pi Pico itself the LED is not blinking: from machine import Pin from time import sleep led = Pin(25, Pin.OUT) while True: led.toggle() sleep(0.1) I tried…
An0nymous
  • 16
  • 1
0
votes
0 answers

Raspberry Pi Pico W getting stuck in socket.accept call

I am using Pico W as web server to control relays to switch on and off switches. I am able to connect pico w to wifi router. Web server works fine. After some idle time like 2-3 hrs, Pico stops responding. I am suspecting, it is getting stuck at…
0
votes
1 answer

Do my Pico W needs a CA certificate if I am using a SAS Token?

I have been trying to connect with Azure IoT Central using the raspberry pico w. My proyect is a Metrology IoT Device which sense a bunch of enviromental parameters and sends the infromation using MQTT currently to a broker. I have set up the LWIP…
0
votes
0 answers

Using RS232 I am looking to type a string into a terminal window and for the string to be echoed back to the terminal using micropython

Using RS232 I am looking to type a string into a terminal window and for the string to be echoed back to the terminal using micropython. However with the code shown below I get an error with the bytes being unable to convert to a string. Any help…
0
votes
1 answer

No module named 'machine' while importing

The error: Traceback (most recent call last): File C:\Users\jobsa\Downloads\lcd.py, line 1, in module import machine ModuleNotFoundError: No module named 'machine' I am trying to make an LCD display text. I need the address of the LCD on a…