Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

Filter by
Sorted by
Tagged with
3 votes
1 answer
3k views

Pi Pico: Software Reset using the C SDK?

I'm looking for a method/function to be able to reset a Raspberry Pi Pico via programming, using the Pic's C SDK. Is this possible? There is a way to do it using python using machine.reset() but I can'...
Murderous Turd's user avatar
1 vote
0 answers
363 views

Trying to plot the ADC values from the PICO similar to what an oscilloscope displays. Just scrolls to the left right now. Total Python newbie

#!/usr/bin/python #Python 3.7.3 # Attempting to plot the ADC values coming from the PICO # Program contains only necessary lines of code for testing plot routine # The Raspberry PI Pico is connected ...
R Bowles's user avatar
0 votes
1 answer
1k views

Detecting connection between two arbitrary GPIO pins on Pico [closed]

I wrote a code that I run in Thonny which detects if a connection is made between the 3.3V output and a GPIO pin on the Raspberry Pico: print("Hello World!") import time import digitalio ...
a.t.'s user avatar
  • 171
2 votes
1 answer
4k views

Raspberry Pi Pico 5V output using VBUS?

there! I'm planning to use the Raspberry Pi Pico for a project and I'll be using a SCA60c tilt sensor with it. I know that the Pico only has a 3.3V output but the SCA60C needs 5V to power it. I was ...
TomG19's user avatar
  • 31
2 votes
1 answer
294 views

Is it safe to recharge 5v power bank from Raspberry Pi Pico VBUS?

My project uses a small 5v power bank to power my RPP. Rather than adding a USB socket for recharging the power bank, I would like to use the existing one on the Pico, connecting the VBUS pin to the ...
Ozpico's user avatar
  • 21
2 votes
1 answer
2k views

Rapsberry pi pico GPIO IRQ function for push button not working as expected

I added a button to GPIO 4(board pin 6) in my pico board. GPIO pin is normally pulled up and button press will bring it to ground. I want to add a simple debounce logic to the button press in the IRQ ...
user17915's user avatar
  • 119
1 vote
0 answers
323 views

Whenever I run this program, I have to nuke the flash in order to work connect to the pico again

Today is my first day using raspberry pi, and I am new to microcontrollers in general, so please forgive me if my question has an obvious answer. When I run the following program: import machine ...
cooperpairs's user avatar
-1 votes
1 answer
203 views

How do I change the PWM GPIO port in the sine_wave_pwm sample application of pico-playground?

This is the sample code in question: https://github.com/raspberrypi/pico-playground/tree/master/audio/sine_wave I cannot see where it has set it's PWM output pin. Inside "..pico-extras\src\...
user17915's user avatar
  • 119
3 votes
3 answers
2k views

pico pi rtc interrupt

I want to send an interrupt to the pico to wake it up every second to tick a battery-powered clock. I have an external RTC, the ds3231. I have gotten just about every other feature on the rtc to work ...
Zeno's user avatar
  • 85
5 votes
2 answers
4k views

How do I initialize the tinyusb submodule in my pico-sdk checkout?

I'm having a problem with the Raspberry Pi Pico hello world example using the C/C++ SDK on Ubuntu. When I drag and drop the hello_usb.uf2 binary the USB drive connection to the Pico terminates as ...
Steven Clark's user avatar
0 votes
1 answer
256 views

How to control the output rating of Raspberry Pi Pico Micro Python

I'm new to the Raspberry Pi community and need to power a 1v motor however, I can not figure out how to output such power. Here is all of ,my code if you need it: from machine import Pin import time ...
Arjinoodles's user avatar
1 vote
1 answer
412 views

RPI Camera Module with Pico

does anybody know if it is possible to use the RPI Camera module (Rev. 1.3) with the Pico or any other RP2040 board?
meyer_mit_ai's user avatar
0 votes
1 answer
600 views

Raspberry Pico SPI at 24 bit

First post on here. I’ve recently designed a board for a Raspberry Pico to control the TI TDC7200. This IC uses SPI for communication, 8 bits for command and 24 bits for reading some of the data. ...
Jack's user avatar
  • 1
1 vote
1 answer
2k views

Using Pico as GPIO extender

When the Pico became available I bought 2. I installed MicroPython on the first and used for a few applications. I though the Pico would make an excellent and inexpensive GPIO extender for the Pi, but ...
Milliways's user avatar
  • 59.5k
0 votes
2 answers
1k views

Could a raspberry pi pico power a PC fan

I have recently soldered a 90mm PC fan to a USB cable and it works great. I was wondering if it would be possible to power said fan off of the 5v output pin on the pico, and solder the black wire to ...
Sam Haydock's user avatar
0 votes
1 answer
411 views

How to connect 2 Analog Joysticks to the Raspberry Pi Pico microcontroller?

How do you connect 2 Analog Joysticks to the Raspberry Pi Pico microcontroller? I have seen many tutorials, but all of them show only 1 joystick through the 3 ADC pins available.
Samir Kshirsagar's user avatar
11 votes
2 answers
44k views

How to get 5V power output from Raspberry pi Pico

After going through the Raspberry pi Pico datasheet it has only 3.3V power output. I want to power some devices that require 5V from the Pico. How can I get 5V output from the Raspberry Pico?
Nyagaka Enock's user avatar
0 votes
2 answers
2k views

Communication Raspberry Pico and 3B+

I recently bought a Raspberry Pico to increase the capacities of my oldest Pi3B + tenfold in terms of sensors, buttons, LEDs, GPIO, etc. But I can not find for the moment any protocol or Bus allowing ...
Arthur Dodin's user avatar
5 votes
1 answer
4k views

Is there a python library to allow I2C between Pi (master) and Pico (slave)

I want my Raspberry Pi to control my Raspberry Pico. I'm trying to send bytes of data to the pico and then read the data on the pico so that I can take different actions depending on the data sent (e....
pcoates's user avatar
  • 153
0 votes
0 answers
324 views

How to switch pin direction in PIO

I want to implement the Gameboy Advance "Multi-Play/Multiboot" protocol in PIO. Essentially the way this protocol works is as follows: 4 pins: SI, SO, SD, SC master knows it's master ...
nonchip's user avatar
  • 101
3 votes
1 answer
14k views

Raspberry Pi Pico - how to lower power consumption

I am using a Raspberry Pi Pico to provider a pacemaker signal to a broken flip clock that needs to trigger a change every 12 hours. As a proof of concept this works and does what it's designed to do. ...
Peter Bridger's user avatar
1 vote
1 answer
623 views

Pi Pico: Input Not Working as Expected

I'm having a problem reading from a Pico's GPIO port - at least it doesn't behave the same as on an Arduino. The setup is pretty simple. There's a 433Mhz RF-receiver whose data-pin is connected to ...
Marcus Rossel's user avatar
1 vote
1 answer
276 views

Connection problem Raspbbery Pico [closed]

I have a problem connecting raspberry pico. I tried the standard connection before you connect with the usb cable holding the bootsel key. But nothing happens. Pico does not connect to the computer. ...
Matijaž Žbogar's user avatar
4 votes
2 answers
7k views

Connect a Microphone to Raspberry Pi Pico ADC Pins

I’d like to try using my voice as an input to my Pico. I think I should be able to define a pair of one-word voice commands, and train a Tensor Flow Lite Micro for Pico model on them. What I can’t ...
BitFlow's user avatar
  • 215
1 vote
1 answer
513 views

How to test if Pico State Machine is working?

I am trying to get some WS2812b LEDs to run with my Pico. Before actually attaching them I am trying out this library: https://github.com/benevpi/pico_python_ws2812b/blob/main/ws2812b.py It is using a ...
Arne's user avatar
  • 2,226
2 votes
1 answer
4k views

Raspberry pi pico modbusRTU communication as master with slave computer using micropython

I am working on a slave computer and want to save the data transmitted from the master raspberry pi pico. In micropython there is modbus library github link. I want to use this library but there is a ...
noobinmath's user avatar
0 votes
0 answers
796 views

Raspberry Pi Pico socket module error when trying to use Modbus in micropython

I want to use Modbus library in Pico. First of all, I just try ModbusTCP then ModbusSerial. I am trying to use this https://github.com/techbase123/micropython-modbus GitHub source. When I run the ...
noobinmath's user avatar
3 votes
1 answer
6k views

Rpi pico micropython ssd1306 OSError: 5 [closed]

Solved I have .91inch 128x32 pixel oled display. here im following Tom's Hardware tutorial here I'm using Thonny on windows 10 ive basically copy and pasted from Tom's hardware from machine import Pin,...
Zeno's user avatar
  • 85
-1 votes
1 answer
88 views

Concurrent Stepper motor execution

Is is possible to move two steppers concurrently (note- not threaded or interleved code but at the exact same time) with the PIO peripheral on the Pi Pico 2040 ? Follow up question. The Rpi Pico has ...
MHM's user avatar
  • 1
0 votes
1 answer
542 views

Do `pthreads` work on the Pico with the native c++ SDK without posix?

I am trying to port AprilTags to the Pi Pico. This has a dependancy on pthreads. As is outlined in this SO question pthreads needs a posix layer. However there is this youtube video showing it working ...
Edwin Shepherd's user avatar
0 votes
3 answers
2k views

PC Windows 10 Thonny MicroPython IDE does not detect Rpi Pico MCU or I2C/SPI/UART devices

I was using micropython at the time it stopped working. the pico used to work. it stopped working. when i insert the pico, windows gives me a message saying that the device cannot be recognized. in ...
Zeno's user avatar
  • 85
1 vote
0 answers
1k views

Raspberry Pico RP2040 - Circuitpython ULAB FFT Frequencies

I am trying to properly perform FFT and calculate frequencies on my PICO using CircuitPython's (CP) ULAB library: ULAB FFT With traditional Python using NUMPY and SCIPY, this is easily achievable, ...
GeorgetheCat's user avatar
0 votes
0 answers
710 views

Pi-Pico /dev/ttyACM0 (USB serial) disappearing -- I2C testing with C

[ Pi-4B 8GB ] <-USB->[ Pi-Pico ] I have the USB serial enabled in the CMakeLists.txt file: pico_enable_stdio_uart(i2c_test_01 0) pico_enable_stdio_usb(i2c_test_01 1) yet I find there is no /dev/...
Farad'n's user avatar
  • 129
0 votes
0 answers
326 views

PICO ASM: Conversion between pioasm and adafruit_pioasm MOV command

I am running CircuitPython on a Raspberry Pi Pico and I am attempting to do some pioasm, which is different on CircuitPython than in MicroPython. According to the adafruit pioasm documentation: Major ...
Quintin Balsdon's user avatar
0 votes
1 answer
845 views

Cmake example for pi-pico

Does anyone have an example of a cmake config for pi-pico project?
Farad'n's user avatar
  • 129
2 votes
5 answers
9k views

Installing an executable or MicroPython script on a Pico to run without a computer attached

I've searched and not found an answer.. I'm proficient in C and Micro-python and developing and running programs is easy enough. However I can't figure out how I install a program I've written to ...
Simon Banks's user avatar
1 vote
0 answers
158 views

Raspberry Pi Pico interfacing Rpi4B / WinPC Thonny Python IDE Problem

I am new to Raspberry in general so I dont have a lot of experience with these devices. I recently bought the raspberry pi pico and downloaded the micropython file from raspberry´s website. Everyting ...
ANDRE_21's user avatar
1 vote
3 answers
4k views

RPI Pico: How to use ESP8266 (ESP-01S) as wifi modem?

I would like to use the Raspberry PI Pico to monitor exchange rates for crytpo currencies and inform me via SMS (using a SIM800l module) when certain prices are exceeded or fallen short of. I ...
meyer_mit_ai's user avatar
1 vote
0 answers
364 views

How can I make the Raspberry Pico not automount as USB storage while using Circuit Python

I am using Circuit Python on a Raspberry Pi Pico to give me hardware buttons for keyboard shortcuts. I am using Circuit Python as opposed to MicroPython because it has the USB_HID library. I don't ...
jsaispasmoi's user avatar
1 vote
1 answer
663 views

Problem copying Micropython from Rpi2 to Pico

I am following this page for instructions: https://www.raspberrypi.org/documentation/pico/getting-started/ I see the pico added as a drive when I hold sel button, and apply power with the usb cable. ...
joel goldstick's user avatar
0 votes
1 answer
2k views

Pico power management in micropython

I have one of those new Pi Picos, and as I understand great power savings can be had by putting the pico into sleep mode. I can see from the CPU spec sheet that this is possible, however I can't find ...
John Hunt's user avatar
  • 141
1 vote
1 answer
4k views

Did I just fry my Raspberry Pi Pico?

So, I recently bought a Rpi Pico and tried to make a Bluetooth remote control out from it. What I did: I used an HC-05 Bluetooth module (require 3.3V), 3 momentary button switch (powered from GPIO pin)...
Superman123's user avatar
3 votes
2 answers
3k views

Can you run a flask server on Raspberry Pi Pico?

Provided neither Nginx and Gunicorn are used, are the hardware specs of the Pico enough to handle a very simple flask app? Also, does the Pico's MicroPython support flask? If not, how can I simulate ...
Panagiotis Iatrou's user avatar
5 votes
1 answer
1k views

Rpi Pico Thonny Micropython Setting Up With Rpi4B/Windows PC Problem

I am currently using ESP-32 in Thonny using micropython. I know that Raspberry Pi pico also uses micro python But There is no option for Raspberry Pi Pico. I am using Thonny 3.2.7.
BeOpen's user avatar
  • 53
12 votes
7 answers
25k views

Not able to connect Raspberry Pi Pico

I am trying to connect to Raspberry Pi pico using Thonny. I am using Ubuntu 20.04. Giving Error Couldn't find the device automatically. Check the connection (making sure the device is not in ...
PSKP's user avatar
  • 328
1 vote
3 answers
3k views

How should I use headers on my Pi Pico?

I bought a couple of Pi Pico. The Pico is very wide and leaves little space on a breadboard -- I'd like to add headers on my Pi Pico, but I am not sure about the best way to arrange this.
Milliways's user avatar
  • 59.5k
7 votes
2 answers
7k views

DS18B20 and RPi Pico

I will be getting my Raspberry pi pico here in a few days and want to connect a DS18B20 and use MicroPython. I have a project the uses RPi zero w and Python3.9. Since obviously, the pico does not use ...
Kelby Criswell's user avatar
2 votes
3 answers
9k views

Import Error from MicroPython on Raspberry Pi Pico

I have set up my Raspberry Pi Pico and successfully run several MicroPython examples, however, I am now trying to run the 1306 OLED example from Appendix A of the Raspberry Pi Pico Python SDK. It ...
Steve Robillard's user avatar

1 2 3 4 5
6