Questions tagged [pi-pico]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
10 views

Transmitting and Receiving messages through RF433 using Raspberry Pico

I'm currently working in a new DIY project, where I need to send a message through RF from Raspberry Pico, and receive it in an other Raspberry Pico through RF. I have bought some common RF433 ...
0
votes
0answers
17 views

What is the PICO max SPI frequency?

What is the raspberry pi pico maximum SPI frequency? I wwould like to know the theoretical maximum given no overclocking and the maximum that is stable,
0
votes
0answers
17 views

Error "usb_hid module not found" on Raspberry Pi Pico

I'm trying to create a USB Rubber Ducky as seen in NetworkChuck's video, and the very first line of dbisu's script includes an import usb_hid, but when the script is run, I get an error stating ...
0
votes
1answer
24 views

Does GPIO27 need special handling when used as digital input?

I have three rotary encoders (with switch) connected to GPIOs (16,17,18), (19,20,21), (22,26,27). For quick testing of working I/O, I put all of them to input mode, with internal pull-up, and watch ...
1
vote
1answer
89 views

UART communication Raspberry Pi Pico to Raspberry Pi

*Update, new main.py for pico and read_serial for RPI 4. *I am having the same problem with uart.write(), see below. I am trying to communicate with a raspberry pi pico with my raspberry pi 4 over ...
0
votes
0answers
27 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'...
1
vote
0answers
32 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 ...
0
votes
1answer
33 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 ...
-1
votes
1answer
57 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 ...
1
vote
1answer
40 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 ...
0
votes
1answer
51 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 ...
1
vote
0answers
53 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 ...
-1
votes
1answer
33 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\...
0
votes
0answers
56 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 ...
0
votes
0answers
30 views

thonny OSError: 28

edit: SOLVED. I do not know what started the problem, but "nuking the flash" seems to have fixed it. I cant find much info online about "thonny OSError: 28". Whenever I try to save ...
1
vote
1answer
64 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 ...
0
votes
1answer
41 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 ...
0
votes
0answers
47 views

Raspberry Pi Pico TCP/IP via USB using Circuit Python

As the title suggests, I was wondering if anyone knows a way to use TCP/IP over USB with Circuit Python and the Raspberry Pi Pico. TCP/IP over USB is possible with the C/C+ SDK however I would prefer ...
0
votes
1answer
31 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?
0
votes
1answer
54 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. ...
1
vote
1answer
254 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 ...
0
votes
2answers
89 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 ...
0
votes
1answer
28 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.
3
votes
2answers
2k 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?
-1
votes
2answers
138 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 ...
0
votes
0answers
29 views

Interfacing a camera (HM01B0) with RPi Pico

I want to build an image classifier and plan to use use it on Raspberry Pi Pico. Therefore I need to connect the Pico to a camera. I've got a HM01B0 camera module from Sparkfun here (https://www....
3
votes
1answer
402 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....
0
votes
0answers
49 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 ...
1
vote
0answers
1k 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. ...
1
vote
1answer
80 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 ...
1
vote
1answer
87 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. ...
0
votes
0answers
73 views

Reading usb stick using Pico

I want to read files from the USB stick (preferably FAT, Ext3, Ext4, and NTFS, but if that's too complicated, then I'll stick with FAT32) Is it possible without external modules (like CH376 for ...
0
votes
1answer
567 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 ...
0
votes
1answer
97 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 ...
0
votes
0answers
553 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 ...
1
vote
0answers
54 views

Raspberry pi pico socket module error when trying to use modbus in micropython

I wan't 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 ...
2
votes
1answer
1k views

Rpi pico micropython ssd1306 OSError: 5

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,...
-1
votes
1answer
51 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 ...
0
votes
1answer
66 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 ...
1
vote
2answers
443 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 ...
0
votes
0answers
39 views

Performing Rshell Commands using Python

I want to excecute rshell commands with python to code my Raspberry pi Pico using python itself. I need to automate few commands to make rshell micropython codes easily. Do you have any idea to run ...
1
vote
0answers
250 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, ...
0
votes
0answers
121 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/...
0
votes
0answers
130 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 ...
-1
votes
1answer
303 views

Cmake example for pi-pico

Does anyone have an example of a cmake config for pi-pico project?
2
votes
2answers
1k views

Installing an executable or MicroPython script on a Pico to run on boot 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 ...
1
vote
0answers
115 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 ...
1
vote
2answers
2k 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 ...
1
vote
0answers
117 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 ...
1
vote
1answer
167 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. ...