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

BMP280 not being detected using I2C with Raspberry Pi Pico

I have a BMP280 which I am using with a Raspberry Pi Pico through an I2C connection. When I try to interact with it, it states no device found at address (0x77 or 0x76, both should work neither do). I am coding using circuitpython. My code is…
Matt
  • 1
0
votes
0 answers

MQTT on a RPi Pico - script fails due to timeout (I think)

Apologies for the basic request here. I have a Pico Enviro+ and am using the script here to send data to my MQTT server. The script fails after approx 12-14hrs. It used to fail after 5-6hrs, but I changed the MQTT keepalive from 30 to 60…
WarwickHW
  • 1
  • 1
0
votes
0 answers

how can i get specific data from rp2040 pin? I'm using Thonny

Using Rotary Dip Switch and HEF4051, I want to get values from it when Switch's value changes. according to HEF4051 datasheet, Rotary Dip Switch's data goes to Out pin, and it's connected to Pin#28 at my device. so I wanna get specific value of…
Fortalice
  • 1
  • 1
0
votes
1 answer

how to measure PICO performance?

Is there a way to measure the performance of a PICO? I want to add serveral attachements such as PCA9685 with servos & LED's and attach motion sensors to the PICO, but I'm concerned that I might be slow in responding to interrupts or to providing…
quinn
  • 177
  • 1
  • 2
  • 13
0
votes
1 answer

How to connect Raspberry Pi Pico W to MQTT Broker using C/C++?

I´m trying to connect Raspberry Pi Pico W to a MQTT broker like HiveMQ but I can only find ways to make it using python, can anyone help me to get this connection using C/C++. I have some examples that the documentation on the Raspsberry Pi Pico W…
Mr I
  • 1
  • 2
0
votes
0 answers

How to pass an array of arguments to a function in C?

I'm trying to make a program that receives a pointer to a function and the arguments, and then calls the function with the arguments. The best way to do it seems to be passing the arguments as an array, but I can't change the arguments accepted by…
Ben
  • 13
  • 5
0
votes
0 answers

Socket.sendto too slow on Raspberry Pi Pico

I'm trying to send out ArtNet Data with on a Raspberry Pi Pico with an W5500 Ethernet shield. The Ethernet connection is tested and working good. The problem is, that the socket.sendto() command takes about half a second to execute on the PI, which…
0
votes
1 answer

JMRI keeps repeating MQTT messages to my Pico Wifi via Hivemq. Is there a way to stop this or reduce the repeitition?

I borrowed code from Toms Hardware on how to use MQTT and subscribe. JRMI is the publisher of the messages and it keeps repeating them over and over again. Is there anyway to have the message sent only once? I dont have this problem when I…
quinn
  • 177
  • 1
  • 2
  • 13
0
votes
1 answer

Raspberry PicoW + DHT11 error when reading sensor

I have a Pico running ‘pimoroni-picow-v1.19.1-micropython’ with a DHT11 connected. When running main.py I always get an output instead of the reading. DHT11 is connected as follows: DOUT - GP28 GND - GND (32) VCC - 3V3 (30) Installed…
WarwickHW
  • 1
  • 1
0
votes
1 answer

Micropython automatically converting carriage returns to newlines

I was looking to modify some terminal code to make it portable and work nicely with windows clients and encountered this issue. When I press enter in a windows terminal, MicroPython (v1.19.1 on a Raspberry Pi Pico) appears to recieve 2 linefeed…
sandyscott
  • 181
  • 9
0
votes
0 answers

when plugging pi pico via usb i dont see com port and thus cant run hello world

so I am trying to use serial so I can view what I output in a serial monitor. But when I plug my pico in and upload my uf2 file that is a while loop that prints hello world and then waits 1 second. I have tried using the flash nuke .uf2 file but…
Dean21
  • 13
  • 4
0
votes
1 answer

Is there a way to move a mouse to exact coordinates using CircuitPython?

I am using a Raspberry Pi Pico to move my mouse to an absolute position on a button press. However, I have noticed mouse.move moves your current mouse position by x and y units, but I want to change my mouse position to be exact and not based on the…
0
votes
0 answers

MPU6050 stuck in sleepmode (C/C++)/No raw data being transmitted

I have a MPU6050 hooked up to a raspberry pi pico, I am trying to read the data using the i2c protocol. But it only gives 0's, I assume this is due to the fact that its in sleep mode because from what I can tell everything is connected as it should…
0
votes
0 answers

How to send data between two already configured HC-05 modules pi pico

I'm building an small project in which I'd like to send information from a master HC-05 bluetooth module to an slave one (both of them connected to different pi pico's), I've already synced them following Bluetooth HC-05 master-slave configuration…
0
votes
1 answer

How to toggle onboard LED on Raspberry Pi Pico H and inputting number of time that it blinks?

I am trying to write a program where I input how many times I would like the onboard LED on a Raspberry Pi Pico H to blink, and then the LED blinking that number of times. However, when I run the attached code, I receive the following error: File…