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
2 answers

Problems installing MicroPython Package mfrc522

I purchased a 37 Raspberry Pi Pico sensor package from a company called Keyestone. In it is a RFID sensor that requires the mfrc522 package. Using Thonny I tried to install the mfrc522 package. When I try to download it, Using the "Tools/Manage…
Tom
  • 11
  • 3
0
votes
1 answer

How can I increment a count with IRQs and light an LED using Micropython on Raspberry Pi Pico?

How to have micropython using an IRQ, count to a certain value then when equaling that certain value light a led I am using micropython with Thonny and a Raspberry Pi Pico and not that it matters but my OS is Ubuntu 22.04 now for my question. I have…
Brian
  • 17
  • 1
  • 1
  • 2
0
votes
0 answers

Adafruit GFX: cannot display text and bitmap at the same time

I have Adafruit RP2040 Feather with DVI. I am using Arduino IDE and Adafruit GFX library. I have short program that displays a 8-bit bitmap. I would like to display some text and the bitmap at the same time. I cannot figure out how. The program…
0
votes
1 answer

PicoDVI and Adafruit GFX: code to extract the color palette from an 8-bit PNG

I have Adafruit RP2040 Feather with DVI. I am going through examples and have an issue with following instructions to convert an 8 bit png image to the “RGB565” color format used by PicoDVI and Adafruit GFX. At the bottom of…
0
votes
0 answers

Raspberry Pi Pico (Micropython)

I am trying to write a loop to read pin 14 on a pi pico. Normally the pin will be 0 (Low) but when it goes 1 (High) I would like to exit the while loop and continue with the rest of the script. I have it running and it is printing "HELLO" but when I…
Brian
  • 17
  • 1
  • 1
  • 2
0
votes
0 answers

How can I read RFID card data other than its UID using RC522 reader and RPi Pico W and MicroPython?

I am trying to read RFID card data using RPi Pico W and RFID-RC522 reader. I tried all available tutorials and low-level mfrc522.py libraries but all it gives me is the UID of the card. I want to read data that the card has such as NDEF message…
0
votes
1 answer

How to detect when a voltage changes from high to low or low to high with micropython on a Pico for 20 different inputs each with separate counters

I have a mechanical button testing device that tests a couple different types of buttons but I need it to count every voltage drop from high to low and for the other type I need Low-high-low. From a previous question someone explained that you need…
0
votes
1 answer

Can a loop in micropython count a cycle of on, off as 1, and another loop as off, on, off again as 1, or even for loop 2 stop count if not off after?

Background: On a RP2040 chip on the Pico, using Micropython on the Python editor Mu. Looking to program a chip that counts current cycles as a series of buttons are being pushed but one type (T1) is a normally closed switch and the other type (T2)…
0
votes
0 answers

I am unable to play an MP3 file on Raspberry Pi Pico using the DY-SV8F module

I recently acquired the DY-SV8F module and a Micro SD adapter module for the raspberry pi pico, my purpose of this was that from the Micro SD was saved an MP3 file to be played through the DY-SV8F. I tried to do it this way but without much success,…
0
votes
0 answers

RPI_PICO_TimerInterrupt: Any way to set timer to zero to get a known starting time?

I'm using RPI_PICO_TimerInterrupt library for a Raspberry Pi Pico, in the Arduino IDE 2 environment. The RPI_PICO_TimerInterrupt library by khoih-prog covers what I want to do; one detail is escaping me. The library URL is…
0
votes
0 answers

Raspberry Pi Pico: Send 2 bits to PIO to trigger GPIO pins (one, the other, or both)

To drive two stepper motors via their stepper controllers I'm trying to control two pins (GPIO 16 and GPIO 17) on the Pico by using a PIO. The idea is, that a function in main determines, if either GPIO 16 or GPIO 17 or both have to be set to…
Nuke
  • 19
  • 1
0
votes
1 answer

Pico-ResTouch-LCD-2.8 Landscape Mode in C

Is there a way to display stuff in landscape mode and not portrait mode, which the program is set to by default in the C example? I know you can do that in python, but I'm more familiar with c and i want to use it, but i can't find any way to change…
HEJOK254
  • 23
  • 7
0
votes
1 answer

Inconsistent Mpu6050 Readings | raspberry pi pico w

i connected mpu 6050 digital motion processor with 12c interface with my rspberry pi pico W. I coded it with micropython but when i read the accelerometer data registers, it shows in consistent values which keep on fluctuating a lot. can some help…
0
votes
0 answers

MICRODOT - Micropython - How do i check the IP address of an user who's trying to connect to my web page and how do i fix my raspberry clock?

Good evening, i'm writing a code for a school project where we have to create our own web server using a raspberry pi pico W while connected to the electric outlet and directing anyone who enters the IP to a web page i created with microdot that…
0
votes
0 answers

Adding library in CMake with many subfolder

I am starting with the raspberry pi pico and the visual studio code in windows. I am practising with the pico examples coming in the SDK V1.5. What I want to try in this example is to add a new level of folder with an .C and .h files in it. The…
Rarodron
  • 1
  • 2