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

ImportError: no module named 'SDCard'

I'm using Thonny version 3.3.13 on Windows 10 to program Raspberry Pi Pico. The main program is main.py. I have no issues with it (examples are working), except any local imports. I'm following this tutorial. It is not duplicated, as I've searched…
Binar Web
  • 867
  • 1
  • 11
  • 26
1
vote
1 answer

Pico examples C/C++ build issues with cmake - Detecting C compiler ABI info - failed

I'm trying to build the examples for RP pico using Visual Studio Code 2022 on windows 11. I have been following the "Getting started with raspberry pi pico" document and have succeeded up to the point where the nmake command is used to build the…
1
vote
0 answers

Trying to add library to Pico with CMAKE

I am using pico with W5500. There is a library for it here: GitHub-RP2040 but unfortunately there is no HTTP Client library ( I tried some examples and library is working). I need to use http client for http request to server so I decided to add…
1
vote
0 answers

Inconsistent output of RFID reader using MicroPython, JRD-100, and Raspberry Pi Pico

I'm trying to read these RFID tags from a JRD-100 using a Raspberry Pi Pico running MicroPython (thonny as IDE) using code adapted from this blog post, which was originally written for Arduino. So far it appears to be working (I can request and get…
Mandias
  • 742
  • 5
  • 17
1
vote
1 answer

I can't debug Raspberry pico with C++ into VSCode

I generate the file elf fine , but when I try to debug show me this on TERMINAL: Waiting for gdb server to start...[2022-05-08T07:24:22.096Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to…
1
vote
1 answer

How can i get raspberry pi pico to communicate with PC / external devices

For example when i give 5 to the code, i want to turn on the led in our rpi pico (rpi pico connected to pc with cable) #This code will run in my computer (test.py) x=int(input("Number?")) if (x==5): #turn on raspberry pi pico led The code of…
1
vote
1 answer

Writing to a specific register in circuitpython

Seems like https://docs.micropython.org/en/latest/library/stm.html#stm.mem32 can be used in micropython, what can be the equivalent in circuitpython or is it not possible? I am trying to write to the specific register of pi pico to disable some…
Behlül
  • 3,412
  • 2
  • 29
  • 46
1
vote
0 answers

Micropython Rapsberry Pico "no module named ffi" on ssd1306 lib

Im new here :) I bought the Rapsberry Pico with the lcd screen, i want to display something on this display but when i import ssd1306 lib Thonny send me a problem "no module named ffi" i don't know how to import this lib. Thats my simple code: from…
Tillehand
  • 11
  • 4
1
vote
0 answers

Powering a Raspberry Pi Pico and 5V motor with AA batteries

I'm working on a school project that involves a Raspberry Pi Pico and a 5V motor. I'm thinking about using AA batteries. Will 4 AA batteries, all in series, be enough to power the pico and the motor, or do I need to put another set in parallel to…
tylerst
  • 45
  • 6
1
vote
2 answers

How to use Micropython Classes in separate files

Getting started with MicroPython and having problems with classes in separate files: In main.py: import clientBase import time if __name__ == "__main__": time.sleep(15) # Delay to open Putty print("Starting") print("Going to…
1
vote
1 answer

Raspberry Pi Pico always opening the folder like boot

Everytime when I connect the Pico in my computer, without push the boot bottom, appear the boot folder. So I can't programming anything on the pico. Suggestions?
bern_code
  • 37
  • 4
1
vote
1 answer

Why doesn't my PyQt USB serial connection work until after I've connected with another serial monitor?

I have a Raspberry Pi Pico connected via USB to a Windows 10 PC running a Python script using PyQt. I've found that the serial comms (over USB) between my Pico and the Python script on the PC doesn't work. If I open a connection using Arduino's…
JRVeale
  • 394
  • 2
  • 10
1
vote
1 answer

Using raspberry pico with pycharm - only main.py is working

I am using a Raspberry Pico and until now I have used Thonny for writing my code. Now I wanted to test PyCharm but I can't get a program that is not named main.py to run. So when I click on "flash main.py" it works and the pico executes the code.…
ginatronix
  • 11
  • 2
1
vote
0 answers

Measure PWM Duty Cycle on RP2040 using micropython

I'm trying to use a Raspberry Pi Pico to measure an incoming PWM signal duty cycle and use the value to drive an I2C digital potentiometer. I'd like to use micropython as I know some of this already. The I2C output I have working with no problems.…
1
vote
1 answer

Raspberry Pi Pico keeps crashing every since I started using both cores

I'm new to pico, only using arduinos before. I'm trying to make a simple rotary encoder program that displays a value from 0-12 on an 0.96 oled display, and lights up that many leds on a strip. I wanted to try out using multiple cores, as interrupts…