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 not executing main.py upon 5V

I have a Raspberry Pi Pico W with code on it that lights up the onboard LED once it has successfully connected to WiFi, otherwise the onboard LED will blink. Most times upon start up however, (I have a 9V battery connected to a 5V breadboard power…
0
votes
1 answer

Raspberry Pi Pico W Autostart with Network

I am trying to autostart a pico W program. I can get it to flash LEDs, but when I add my logic about temp sensor and network, it doesn't autostart anymore. I save this program to main.py. The program runs when I hit play with Thonny, just does not…
0
votes
1 answer

Configuring OpenOCD debug on VSCODE with the Raspberry Pico as a target using the Debug-Probe - No working solution found

I have been pulling my hair out trying to configure VSCode on MacOS to support the above mention configuration. The debugging works on the command line: I started the OpenOCD server in a separate terminal window like this: sudo openocd -f…
0
votes
1 answer

no output from wiper of ad5293 digital potentiometer using SPI on Pi Pico C/C++ SDK

so I am trying to control a digital potentiometer to control a voltage output. What I did was look at the datasheet for the control register values and I store that as a value and then bitwise OR this with the value I want to send. I pick the values…
Dean
  • 63
  • 5
0
votes
0 answers

Not getting serial data (USB) from Pico Pi

from machine import Pin, ADC import utime adc = ADC(Pin(26, mode=Pin.IN)) led_onboard = Pin(25, Pin.OUT) while True: val = adc.read_u16() u1 = (val*0.0000503547-0.02)*0.992 print(u1) if u1 >= 1.0: led_onboard.on() else: …
ricode
  • 9
  • 3
0
votes
2 answers

Confusion on implementing button interrupts on Pi Pico written in C

I'm currently a novice programmer learning C, and I'm having trouble understanding implementation of using the interrupts and callback function. I've written a small program one with interrupts and one without. Both (are supposed to) do the same…
0
votes
0 answers

ERROR: Could not build wheels for spidev, which is required to install pyproject.toml-based projects Error: process returned with code 1

I've been trying to install spidev to use some new parts I picked up, keep running into this error: "C:\Program Files (x86)\Thonny\python.exe" -m pip --disable-pip-version-check --no-color install --no-warn-script-location --user --user --upgrade…
0
votes
0 answers

Using nrf24L01 module with raspberry pi pico

I am using the above mentioned module for pico to pico communication for a rc car. I tried using the nrf test code: import usys import sys import ustruct as struct import utime from machine import Pin, SPI from nrf24l01 import NRF24L01 from…
0
votes
0 answers

using an rc522 rfid with a pico w and arduino ide. OR. What is the best way to convert pico sdk programs to use with arduino ide?

I am trying to setup a lock on a robot project. The pico w i'm using I have already programed it using Arduino IDE, it powers a relay to start an RPi4. What I am looking for is arduino code for the RC522 rfid and pico w. I will incorparate that into…
JohnL148
  • 1
  • 1
0
votes
1 answer

Calibrating MPU6050

I using a MPU 6050 and raspberry pi pico for making an IMU. I have set the range of accelerometer as +- 2 g but there is a .96 g offset this severly limits the sensing range on the positive side. I have written a calibration program which works fine…
0
votes
0 answers

C/C++ | PICO-SDK | Raspberry Pi Pico read strings from USB-CDC Serial using callbacks | How to use stdio_set_chars_available_callback()

I try to read Strings transmitted over USB to the Raspberry Pi Pico using stdio. The strings are supposed to be read within a callback function as soon as characters are available. I don't want to poll the interface for new characters or use a…
0
votes
0 answers

Why does UDP socket sending takes such long time in Micropython?

with Rapsberry pi Pico + W5100s(Ethernet) + micropython 1.18 i am making a program sending and receving data by UDP. i print the time before it send and after it sent.. The result below 238590 239111 the time difference is 521ms is there anyway to…
0
votes
0 answers

How to sent the public key to another client via bearssl?

I have a pair of board, which includes the Bearssl library to do some encryption. I use the br_rsa_i15_keygen to sucessfully generate a pair of the RSA key, which includes the public key and the private key. And I want to sent the key to the client…
ysPan
  • 11
  • 1
0
votes
0 answers

TfLite code compiling Successfully, but upon adding pico_add_extra_outputs() in CMakeLists.txt, got Error: Require 32 bit little-endian ELF

Here is my CMakeLists.txt. I am using cmake .. and make commands to build this example cmake_minimum_required(VERSION 3.12) project(TFLiteExample CXX C…
Ibn Adam
  • 1
  • 1
0
votes
0 answers

DW1000 with RP2040 (Not able to establish communication b/w two DW1000 module using RP2040)

I have two DW1000 UWB modules, and I want to use them as an Anchor and TAG. I am currently using the Arduino DW1000 library. However, I encountered an error during SPI initialization related to mbed OS. I would appreciate any assistance in resolving…