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
0
votes
1 answer

How to run a MicroPython host script file on the Raspbery Pi PIco from the host command line and receive UART output back on terminal?

I know how to do something similar with Thonny: I could paste my code into the editor, and press the green "Run" button. This would run the program and give me output. But it would require copy pasting my file into Thonny (I want to code in Vim or…
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
0
votes
1 answer

vscode configuration for Arduino reverts back to default after compiling

I'm using VSCode Arduino extension to develop and program my Raspberry Pi Pico. I've installed everything correctly, and it is compiling as it should, but I get a spell check red underline in below the first line mentioning 2 issues: #include…
0
votes
0 answers

Why is my RFID card not being recognized by my reader?

I have an RFID-RC522 module that I recently purchased from a hobby store, it came with a key fob and a card. I was experimenting with it last night and was working just fine using Raspberry Pi Pico, but all over sudden, the card is not getting…
Georgey
  • 23
  • 6
0
votes
1 answer

installing python packages on raspberry pi pico

I'm trying to install pyalsaaudio on my Raspberry PI Pico board. Firmware for my board I have build myself from micropython repo using documentation on how to do it from raspberry. In documentation for micropython there is a section about Installing…
ciekals11
  • 2,032
  • 1
  • 10
  • 24
0
votes
2 answers

Raspberry Pico W MicroPython execution freezes a few seconds after disconnecting screen from UART

I got my program running fine as explained at: How can you make a micropython program on a raspberry pi pico autorun? I'm installing a main.py that does: import machine import time led = machine.Pin('LED', machine.Pin.OUT) # For Rpi Pico (non-W) it…
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
0
votes
0 answers

RP2040 CMAKE library linking path does not exist?

Having issues understanding the process on linking libraries. i've referred to many links and in particular this one How to properly use CMake in embedded (RP2040) project structure? but have had just a hard time getting it to work or even see that…
lolbardsnin
  • 305
  • 1
  • 4
  • 14
0
votes
0 answers

Raspberry Pi Pico is not communicating over UART to other device

I am trying to communicate with a temperature humidity readout unit, a Fluke 1620, using a Raspberry Pi Pico W. Ultimate goal is to log data and make it available on our work network. I wanted to test the UART connection but I get a null response…
DJ Rez
  • 1
0
votes
1 answer

It is possible to use urllib.urequest on pico

Does anyone have experience using "urllib.urequest" on a pico? I cannot import the module (via tools - manage packages (Thonny)) When I try to install it, it reports a error :-( I would like to use it to open a url with some parameters (id, ip…
0
votes
0 answers

Make a raspberry pi pico left click whe gpio pin is shorted

I would like to make a raspberry pi pico running circut python activate left mouse button activate when a GPIO pin is shorted I already have the adafruit HID library installed Adafruit CircuitPython 7.3.0
israniboi
  • 1
  • 1
0
votes
1 answer

Send data from Raspberry Pi Pico to computer via serial

I've looked everywhere for an answer to this question without much luck. On my computer I have a python script running an infinite while loop. On the Raspberry Pi Pico I'm reading a sensor value once a second. I'd like to have access to the sensor…
ortunoa
  • 345
  • 4
  • 11
0
votes
1 answer

" /bin/sh: 1: Syntax error: "(" unexpected " error while building code for raspberry pi pico

I am on Ubuntu. I am trying to build a simple project that I know worked! (I already made it work) I don't think I changed something to it but it has been three days and I cannot find a way to make it build again. I use a library named pico-DMX,…
0
votes
1 answer

I want to create a communication with raspberry pico and my windows pc

I need to build the communication with micropython since I need it for school. The next issue that I can't seem to get done is that my communication needs to be from python program to raspberry pi pico and back. The farthest I've tried is this. A…
0
votes
0 answers

Getting accurate square wave period measurement using utime.ticks_us in Raspberry Pi Pico

I am new in programming Raspberry Pi Pico and I have a project to measure the period of the square wave signal. This square wave signal is generated by function generator with 3.3V amplitude. Here is my code. import utime from machine import…
thoriq
  • 1
0
votes
0 answers

MicroPython imports only working "sometimes"

I'm trying to read the AHT10 sensor using my Raspberry Pi Pico W with MicroPython. My folder structure looks like this: AHT10.py (my main file) libs/ - AHTx0.py (my library) In AHT10.py I import the library like this from libs.AHTx0 import…
0
votes
0 answers

How to read text from a raw Dropbox text file in CircuitPython?

I am trying to read a text file from Dropbox on a Raspberry Pi Pico with CircuitPython using adafruit_requests. The file should be available to view and download "for everybody who has the link". When I enter the url with ?raw=1, it leads to a…