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

Can’t get Pico board to run multiple files

I am running a MacBook Pro with VSCode and the Pico-W-go extension installed. Using this extension, I can pick individual files and upload them to the Pico board and they run. However, the latest project is a group of files and no matter what I try,…
Matthew B
  • 11
  • 2
1
vote
1 answer

How to use external voltage reference on RPi Pico VREF pin

I want to use ADAFRUIT LM4040 module as External Voltage Reference with Pico VREF pin With Arduino boards I have to use 'analogReference' command to specify that I'm using an EXTERNAL voltage reference. something like this: ''' float ref_voltage =…
Ray
  • 45
  • 3
1
vote
0 answers

Raspberry Pi Pico W 2022 - DHT11 Sensor Returning -1 for both Temp and Humidity

I am currently working on a Raspberry Pi Pico W project where I need to use the DHT11 sensor to return humidity and temperature however the results are returning -1 for both the temperature and humidity. I've included a picture of the circuit as…
1
vote
0 answers

Raspberry PI4 error handling for serial connection USB

I am trying to build an automatic recovery if USB is disconnected or changed after reboot, and tried to built error handling, and successed here in startup But then if the connection break during operation I cannot get over this cycle of exceptions.…
1
vote
1 answer

CMake not making uf2 file but no errors

I'm trying to create a hello world program but whenever I try to build it no errors are thrown up but I can't find the .uf2 file to put onto my rasberry pi pico HelloWorld.cpp #include #include "pico/stdlib.h" int main() { …
Chris22
  • 21
  • 3
1
vote
2 answers

"lwipopts.h: No such file or directory" error when I set up my own project

On my Raspberry Pi Pico W I can run the example blink project just fine. But when I create my own project (even using the same code as the blink project) I cannot get it to work (I know onboard LED is different to that of the standard Raspberry Pi…
1
vote
1 answer

How to add arguments to launch.json in VS Code

I am trying to debug the RP2040 using the new picoprobe. When i execute the following command openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" OpenOCD works without an issue. I just need to add -c "adapter speed 5000"…
1
vote
0 answers

Pi Pico W Cant connect to wifi

Hey my problem: I have an Raspberry Pi pico w and it is used as an access point and web server where users can enter SSID and password of a WLAN they want the rasi to connect with. The data of the form gets send back and the raspi should then turn…
1
vote
1 answer

Serial Communication Issue with WinApi and Raspberry pi Pico

Hope you are all well. I am experiencing a weird trouble while trying to make a serial communication with RPi-Pico -> PC. From Pico I am sending 9 Bytes packet (8 Byte Data from ADC + \n) once a second through Serial communication using USB…
1
vote
2 answers

Is there a way to make python not wait for function to finish?

I have just started with programming on a raspberry pi pico, and I was wondering if you can make python start another function, even though the other one is still running, so I want multiple functions to run at once (but with a bit of delay between…
luuf
  • 29
  • 5
1
vote
0 answers

How can I interrupt a Timer which runs a function continuously in Micropython?

I am running a Timer periodically to read from multiple ultrasonic sensors. This is done in Micropython on a Raspberry Pi Pico W. The time this read takes is dependent on the distance of the nearest object to the sensor. The further away, the longer…
1
vote
0 answers

Eclipse Embedded C marks some imported symbols as undefined

I have set up an Eclipse environment (Eclipse IDE for Embedded C/C++ Developers 2022-12) for building C applications for a Raspberry Pi Pico. The Pico SDK uses CMake (cmake version 3.23.2) to create the Eclipse Makefiles. Everything builds fine,…
wdtj
  • 4,554
  • 3
  • 17
  • 20
1
vote
1 answer

Azure IOT Hub raspberry Pi configuration for Modbus module to receive data from USB connected Pico

I am new to Azure and IOT development so please bear with my ignorance. I have a raspberry pi 4 connected to a pico via USB. I want to get data from the pico sent to pi via the usb connection. Using azure IOT Hub, I have pushed the Modbus module…
tcochunk
  • 83
  • 1
  • 6
1
vote
1 answer

micropython client from raspberry pi pico cannot connect to local host

I have a node.js server in which I am trying to send data in real time from my raspberry pi pico w over sockets. My Simple Server is setup as follows: const express = require("express") const app = express(); const http = require("http"); const {…
1
vote
1 answer

How can i use a pico-SDK library in another library with Cmake?

So, my problem is that i have created a .h and a .c file that need to use the hardware/i2c.h and the pico/stdlib.h inside them, but when building the project through cmake the two libraries can't be found. What am I missing? Thanks a lot Adding the…