Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

Filter by
Sorted by
Tagged with
11 votes
7 answers
23k 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
  • 318
11 votes
2 answers
39k 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
7 votes
2 answers
6k 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
7 votes
2 answers
6k views

Emulator for RP2040?

I'm starting to explore RP2040/Raspberry Pi Pico, however, I was wondering about something: is there a "proper" emulator/simulator for RP2040? From earlier Atmel experience, Atmel Studio ...
sdbbs's user avatar
  • 207
6 votes
1 answer
4k views

Maximum power draw on Pi Pico 3.3V rail with USB power

The Pi Pico datasheet recommends a maximum power draw on the 3V3 pin (pin 36) of 300mA. However, the RT6154B datasheet indicates that up to 3A can be drawn when Vin > 3.6V, which is the case when ...
ma3oun's user avatar
  • 263
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
5 votes
1 answer
3k 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
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
4 votes
3 answers
1k views

LED light not turning on

I was following this tutorial on connecting an external LED to a Pico W, but I've had no luck getting it to work. This is the code I've been using: import machine from machine import Pin, Timer timer =...
Emu_of_Ubiquity's user avatar
4 votes
2 answers
6k 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
4 votes
1 answer
322 views

Why does introducing C++ to a Pico project result in "error: duplicate 'inline'" due to using wrong stdio.h version

I have a Raspberry Pi (3) with a Pico SDK freshly installed via the recommended script. I've added the pico-project-generator and created a project as follows: ./pico-project-generator/pico_project.py ...
Chris's user avatar
  • 181
3 votes
2 answers
3k views

Does a UART connection require shared ground?

I'm a novice with electronics but not Linux. This situation has had me scratching my head for two nights. I connected a Pi Pico to a Raspberry Pi 4 via UART, and managed to receive messages sent from ...
lowercasename'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
3 votes
3 answers
1k 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
  • 87
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
3 votes
2 answers
2k views

Using micropython on Raspberry Pi Zero W

I have found a library and sample code that seems to work very well on the Pico W, but I need a bit more power, so I'd like to use the same library on the Pi Zero W instead. Initially, I tried using ...
G.H.'s user avatar
  • 151
3 votes
2 answers
3k views

my raspberry pi pico oled display code is returning 'OSError: [Errno 5] EIO'

I've been trying to use an ssd1306 oled display with a raspberry pi pico but every time I run the code it returns an error. I don't know what the error means and can't really find anything online for ...
odog's user avatar
  • 31
3 votes
1 answer
463 views

is it possible to connect a USB microphone to Pi Pico

I am attempting to do some real-time audio processing using the Pi Pico. I know that a MEMS microphone can be connected and used for this purpose (see here and here). However, I need to use an analog ...
fishfinder's user avatar
3 votes
1 answer
2k views

How to do rising-edge detection on a Raspberry Pi Pico

Is there a non-polling way to detect when an input goes from OFF to ON with the Raspberry Pi Pico MicroController? I see the Raspberry Pi allows one to do something like below to detect rising edges ...
Vivek's user avatar
  • 131
3 votes
1 answer
749 views

Raspberry PI Pico W temperature reading

I have been playing with my newly acquired Raspberry Pi Pico W and reading the temperature. How much variation between the internal temperature sensor and an external TMP36 wired up to ADC2 should I ...
Alastair Montgomery's user avatar
3 votes
1 answer
615 views

How to protect wifi credentials on RP Pico W?

I'm trying out home automation using a Raspberry Pi Pico with Wifi. To connect to wifi I have to send SSID and password. Since the controller has no external interface other than the Wifi, how would ...
Andreas's user avatar
  • 163
3 votes
1 answer
13k 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
3 votes
1 answer
5k 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
  • 87
2 votes
5 answers
8k 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
2 votes
2 answers
6k views

Pi Pico W: what is the practical difference between RUN and 3V3_EN pins?

Pi Pico W datasheet states: 3V3_EN connects to the on-board SMPS enable pin, and is pulled high (to VSYS) via a 100kΩ resistor. To disable the 3.3V (which also de-powers the RP2040), short this pin ...
Vadim's user avatar
  • 547
2 votes
1 answer
1k views

DS18B20 OneWire Library with Raspberry Pi Pico W and Micropython

Good day, I am using a Raspberry Pi Pico W with a temperature sensor among other things. I tried finding code online to make the temperature sensor work and it returns the following error. Found DS ...
Pranav's user avatar
  • 23
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
2 votes
1 answer
3k views

upip is not installed

I'm new to the pico world and micropython. Needless to say, one of the first things anyone should learn is the ability to set up environments and know the structure of the pico. I have read the ...
Gabe Morris's user avatar
2 votes
1 answer
557 views

How to send Data from the Ras Pi Pico to Ras Pi 4.0?

I have a Ras Pi Pico which I am using for data collection due to the required sampling frequency. I would like to collect that data and send to the Ras Pi 4.0 so I can use the data elsewhere. Is this ...
Ben Watson's user avatar
2 votes
1 answer
366 views

How to make PIO for multi-pin protocol, e.g. 93LC46?

I'm just learning about Pico Programmable IO (PIO). The examples I see cover only single pin communication. I'm wondering whether PIO can handle multi-pin communication (like I2C having one pin each ...
Andreas's user avatar
  • 163
2 votes
1 answer
4k views

Power Pi Pico by applying 5 V to VSYS—any experiences with or thoughts on additional safety measures?

The official Pico datasheet chapter 4.5 suggests using either a Schottky diode or a P-channel MOSFET (P-FET; or a combination of both) when powering the Pico from an external power source (at least if ...
Manuel Popp's user avatar
2 votes
2 answers
364 views

Controlling 5 DC motors with Pi Pico

I have a robotic arm which I want to control using Pico W. The issue is the arm has 5 motors but I was only able to find driver boards which can handle up to 4 DC motors using I2C. Are there boards ...
Alexander Vorobiev's user avatar
2 votes
2 answers
149 views

Is it possible (and wise) to use RPi Pico W to control an atomiser which has 5V operating voltage?

I’m working on a project which uses Grove Water Atomiser which has 5V operating voltage. I’ve used it with Arduino nano and it has 3 pins: Vcc (5V), Gnd and a control pin which receives the signal ...
Ivan Novikov's user avatar
2 votes
2 answers
441 views

Is the waveshare 2.7 e-paper HAT ink display the right display for a pico?

I'm very new to programming on raspberry pi's and I haven't coded anything in about 5 years so bear with me. My company is asking me to connect a 2.7 e-paper hat INK display to a raspberry pi pico. I'...
anon512's user avatar
  • 31
2 votes
2 answers
2k views

Full speed of Pico ADC faster than USB -- how to capture? SPI? Compression?

I am using a few Picos (connected together via I2C -- but I will switch soon to SPI) as a single USB peripheral connected to a computer and they are working ok. The computer obviously sees only one of ...
Davide'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
71 views

Does Raspberry Pi Pico C/C++ SDK Setup Script work on Raspberry Pi Desktop installed on a PC?

The Raspberry Pi Pico documentation indicates "if you are intending to develop for Pico on a Raspberry Pi, then you can set up the C/C++ toolchain quickly by running our setup script from the ...
Steven Clark's user avatar
2 votes
1 answer
340 views

Pico Arduino DS18B20 OneWire

I am failing to read a DS18B20 with a RaspberryPi Pico programmed with Arduino. I found several examples using MicroPython, however I want to do it with Arduino using the 'Raspberry Pi Pico/RP2040' ...
qubit's user avatar
  • 129
2 votes
2 answers
1k views

How to connect OV7670 cam to Raspberry Pi Pico

I have a raspberry pi pico and OV7670 cam. I want to connect them and get a camera output as a video, So I can use image recognition to identify objects (tennis balls) to collect them using a setup ...
Kuganeshwaran R.'s user avatar
2 votes
1 answer
166 views

Which are the pin choices for powering and driving an audio amplifier with signal and power on raspberry pico pi

I am using an audio amplifier,PAM8302A from adafruit link, to power a 8ohm 1W speaker (small speaker) that is being driven by a raspberry pi pico. The amplifier has A+ for the signal/audio input (not ...
Vass's user avatar
  • 133
2 votes
1 answer
971 views

High Impedance (Hi-Z) state for Pico GPIO

Using a Pico [RP2040], I wish to interface to a data bus which is (already) pulled high. (Based on the contents of the address bus) I want to put data on the data bus [ie. "memory mapped i/o"...
BlueChip's user avatar
2 votes
1 answer
1k views

Raspberry Pi Pico mic and speaker

Id like to connect a microphone, a speaker and a usb memory stick to the Pico. But as I understand both analog mic(https://www.adafruit.com/product/1713) and audio shield(https://thepihut.com/products/...
options666's user avatar
2 votes
1 answer
2k views

How to store an array in flash memory (only) using the pico sdk?

The RP2040 on my board (Seeeduino XIAO) comes with 2MB of flash ram. How can I store an array that is too large to fit into RAM in flash, using C and the pico sdk? As the array exceeds a certain size, ...
Evgeniy Berezovsky's user avatar
2 votes
1 answer
851 views

Raspberry Pi Pico (RP2040) - wrong order of printf arguments?

I've just started working with RPi Pico (RP2040), and I tried the following simple program: #include <stdio.h> #include "pico/stdlib.h" volatile int chars_rxed = 0; int main() { ...
sdbbs's user avatar
  • 207
2 votes
1 answer
285 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
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
2 votes
2 answers
132 views

Cannot use global variable in pio function

I am working on a project in which I need to control a brushless motor with a microcontroller. I have chosen the Pico as I already have some on hand and there is a high chance of it being completely ...
lpinfinity's user avatar
2 votes
1 answer
427 views

I accidentaly lightly hit my bread board with my pi pico and ili9341 on it now the ili9341 is just white

So i was in my chair and i clicked run script and when i got up i tripped and lightly hit my breadboard and then the screen (ili9341) went white. Before i hit it, it was working but not anymore. I ...
PythonKid's user avatar
2 votes
0 answers
122 views

Pi-Pico reading data from UART0 working while powered via USB but receiving garbage when powered via VSYS or VBUS

When I power the pico by usb (either from my pc or a powerbank) and run my micropython script to read from UART0, it reads the incoming data (NMEA sentences) perfectly fine. However, if I power the ...
Ryan Jennings's user avatar

1
2 3 4 5 6