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

Raspberry Pi Pico does not read any data via I2C from GPS

I'm trying to run example from Raspberry for attaching GPS PA1010D module to Pi Pico. Unfortunately I2C does not read any data. the function i2c_read_blocking returns PICO_ERROR_GENERIC. LED on GPS is flashing so it has a fix, so it should return…
Dominik
  • 25
  • 5
0
votes
1 answer

Second button is not working Raspberry pi pico

I'm new in micropython and I'm following the book about Raspberry pi pico. And I just wanted to know, how can I just make led ON if button1 or button2 are pressed. Here is my code, and only the first button works, I checked, both buttons are not…
Derfi
  • 1
  • 1
0
votes
0 answers

Interrupts with Pi Pico (with freeRTOS and multiple buttons) c/c++

Is anybody familiar with using interrupts with Pi Pico (with freeRTOS and multiple buttons)? I am trying to make a small project using the Pi Pico and freeRTOS but I am encountering a problem when I am trying to get more than one button to work with…
0
votes
1 answer

Alarm gets instantly fired on raspberry rp2040

I'm writing a code to manage the velocity of a motor that is remotly controlled. For security reasons I want to stop the motor after 1 seconds it receives a command if it doesn't receive another. I have a "motor" struct: motor mt = { …
0
votes
0 answers

Why is my HC-SR04 ultrasonic distance sensor not working properly on my Raspberry pi Pico?

I am using C/C++ on a rapsberry pi Pico and this is the code I wrote for the sensor: #include #include #include #include #include #include "pico/stdlib.h" #include "pico/binary_info.h" #include…
0
votes
1 answer

Pico W asynchronous web server: impossible to disable wifi

I use this code for an asynchronous web server and it works fine: https://gist.github.com/aallan/3d45a062f26bc425b22a17ec9c81e3b6 EDIT : This link is my only code, so it's easy to reproduce the issue Problem is, I cant find a way to disable…
Elmidea
  • 1
  • 1
0
votes
1 answer

can't run blink code for raspberry pi pico using VsCode

So i am trying to run a simple blink code on Raspberry Pi pico using VsCode and PicoGo extension when i run it i get ModuleNotFoundError: No module named 'machine' though when i run the same code in thonny it works just fine from machine import…
VLAD 05
  • 5
  • 2
0
votes
0 answers

How do I synchronize clocks on two Raspberry Pi Picos?

I'm sending bits as LED blinks from one Pi Pico, and using another Pico to receive voltage from a photodiode and read the bits. When sending/receiving from the same PiPico, it works accurately at 60us a bit. However, when sending from one pico and…
0
votes
0 answers

Why does Rasp Pi Pico can not connect to TCP Server after some point?

I use Raspberry Pi Pico with ESP8266 WiFi module, and I am trying to write a TCP client. Rasp Pi Pico is able to send AT commands and receive responses and send data through UART. Also the TCP client is able to send data to the TCP server, which…
batuhancan
  • 37
  • 5
0
votes
1 answer

How to connect to an MQTTServer in a Blazor app published to IIS?

Trying to get over this bump to begin getting my Home Automation projects going. I created a Blazor Server App using the template in VS 2022. Added a menu item called "Lights" that brings up a Lights.razor page. In it, I added the below MQTTServer…
Flood
  • 345
  • 7
  • 12
0
votes
0 answers

Decoding Bytes into a JPEG from Arducam FIFO

I am working with the Arducam Mini Module Camera Shield 5MP Plus OV5642 Camera Module. This camera communicates over SPI and can pass the JPEG as bytes to the processor with its FIFO buffer. Unfortunately, after I commanded it to take an image and…
0
votes
1 answer

Raspberry Pi Pico - Micropython - Get/Set mode of IO-Pin

Is there a way to get/set the mode of a Pin object in MicroPython on the Raspberry Pi Pico? The standard library has a Pin.mode() function, but it is not supported on the Pi Pico. Is there a way to directly change/get the mode of a pin instance? The…
slarag
  • 153
  • 8
0
votes
1 answer

Raspberry Pi pico C/C++ SDK integration with VSCode

I am trying to get the Pico SDK working with VS-Code on Mac OSX. As you can see in the screenshot below the include is not recognised. I set the SDK path in PICO_SDK_PATH and stored this path as an environment variable. Inside VSCode if I use the…
Michael
  • 2,436
  • 1
  • 36
  • 57
0
votes
0 answers

Raspberry PI Pico USB Connection Issues when configuring/setting up ports

I am using the USB port of the Raspberry Pi Pico as my debug port when running C programs on the Pico. I have noticed that sometimes when I connect to the Pico USB using Putty in serial port mode, it takes forever (at least 5min) to connect and…
0
votes
1 answer

How can I calculate the difference between two timestamps using micropython?

I have a raspberry pi pico and a DS3231 real time clock hooked up to it. I'm able to receive the current time in BCD and format it in a string by Hours:Minutes:seconds "00:00:00" using the DS3231 sample code that has been provided from the…