Questions tagged [pi-pico]
Questions regarding the Raspberry Pi Pico.
279
questions
1
vote
1
answer
334
views
PiPico Quad Spi library to controll NOR flash modules
I need to use quad SPI NOR flash modules (W25Q128JV) for a project and I bought a Pi Pico as a simple way of validating the design before moving to an FPGA for the final project (the project is real-...
1
vote
1
answer
251
views
raspberry pico, circuitpython and how to receive mqtt feeds reliably while showing time on pico
I am building a clock using rpi pico, max7219 and wiznet5k.
I am trying to incorporate mqtt functionality, in order to show important short messages to the max7219 every now and then.
I have run into ...
1
vote
2
answers
4k
views
What is the power consumption of Pico W and competitors for wireless IoT devices?
Does someone have numbers on the power consumption of the Pico W, i.e. the new version of the Pico with Wifi capabilities (and maybe how it compares to competing platforms such as ESP, Arduino etc.)?
...
2
votes
1
answer
125
views
Trouble with RPI Pico and Waveshare SIM868 Module
I need some help with SIM868 GSM/GPRS/GNSS Module for Raspberry Pi Pico. A few months ago I bought SIM868 module and RPI Pico, and it works just fine together.
But recently I bought another pair of ...
1
vote
1
answer
75
views
Debugging using raspberry debug probe fails with SWD error
I am trying to debug some code on a Raspberry Pi Pico W. I'm using PlatformIO. After some Issues with the OpenOCD version shipped with PlatformIO (Access Violations), which I fixed by replacing the ...
2
votes
1
answer
208
views
Debuging Pico W
I have followed the instructions for using openocd to debug an program, but the output I get from openocd is:
Info : Hardware thread awareness created
Info : Hardware thread awareness created
Info : ...
2
votes
1
answer
949
views
Raspberry Pi Pico doesn't create tty file
I've been using Raspberry Pi Pico for some time already and I'm using minicom for serial communication. But one day Pico stopped generating tty/ATCM0 when connected to USB port. Before this everything ...
1
vote
1
answer
64
views
Display same content on 2 I2C LCD modules
I am trying to build a motorized head of puppet/animatronics and for the eyes, I am using 2 LCD LED Module SSD1306 (1 per eye).
I am using a Raspberry Pi pico. I got the code working to display ...
1
vote
1
answer
483
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 ...
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 ...
-3
votes
0
answers
44
views
Again Raspberry Pi Pico W and Sim800l
A few months ago, I asked how I could send messages with Raspberry Pi Pico W and Sim800l, but there was no full answer, and I couldn't do it either. Please can you help?
1
vote
1
answer
341
views
Code not running on RPI Pico
I have the following code on the RPi Pico W:
include "pico/stdlib.h"
#define LED 25
int main()
{
gpio_init(LED);
gpio_set_dir(LED, GPIO_OUT);
while (true)
{
...
1
vote
1
answer
1k
views
PN532 with Raspberry Pi Pico
I have PN532 NFC Module that looks like this
I am trying to connect this NFC Module with Pico, but I have no luck in finding library that allows me this. What can I do to control it? Can you ...
1
vote
0
answers
26
views
Can't download file from Raspberry Pi Pico to MacBook Pro
I'm using a Raspberry Pi Pico to control a coffee machine. As part of tuning the PID controller, I'm writing to a data.csv file on the pico, then downloading that to my MacBook Pro Silicon running ...
0
votes
1
answer
487
views
How to set SPI master on RPI Pico to some exact frequency?
I want to have SPI master on my RPI Pico, and I require it to have exactly 4.8 MHz clock. But I don't know how to set it up properly, since SPI clock doesn't allow every value. I read about peripheral ...
1
vote
2
answers
321
views
nrf24l01 not Working with Raspberry Pi Pico W
I can use the nrf24l01 wireless module just fine with a Raspberry Pi Pico, but when I try to compile the same code on the Raspberry Pi Pico W, it fails to recognize the device. I am using this library,...
1
vote
1
answer
57
views
Powering a pico with a lipo battery charged by a bike dynamo
So, I am building a gps tracker build on raspberry pico and a neo 6m gps module.
Now, I want to power this project with a lithium battery that can offer some autonomy.
I was thinking of using a , ...
1
vote
1
answer
262
views
RpiZero and RpiPico communication through nrf24l01 not receiving packages
I am trying to implement a wireless communication between RpiZero and RpiPico through NRF24l01 modules.
Pico is the receiver, and Zero is the transmitter.
I have successfully started the Pico ...
0
votes
0
answers
28
views
Connect Raspberry Pi Pico to 93C46 trought Microwire (3-wire Protocol)
i searched to know if someone did that before, but i didn't find anything, some C code to read and write using Arduino, but when i try to convert it i failed because i'm new at MicroPython and ...
0
votes
1
answer
288
views
Use raspberry pi pico to open programs on host PC
I have both a raspberry pi pico and pico w, and am attempting to connect either one to a toggle switch, and use the input of said switch to either open or close an application on the host PC (...
0
votes
1
answer
75
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 ...
0
votes
2
answers
2k
views
How to control 5V fan speed using Raspberry Pi Pico PWM and MicroPython?
I dont if this is the correct place to ask this. Please give me feedback any kind will do.
How can I control fan speed using PWM on Raspberry Pico ?
Lets say if I have 5V fan, and a Raspberry Pico. ...
0
votes
1
answer
42
views
Pico Disconnects from Thonny when a relay is activated
Apologies if this is not a pico question, not sure where the problem lies...
I have a small hobby motor (5v) mounted with a hobby fan:
that is connected to Normally Open on a relay and 5V Wall Power ...
0
votes
1
answer
64
views
How to use PIO one bit shift to FIFO on Pico in micropython?
I'm trying to port the Pico C/C++ SDK example on PIO FIFOs into micropython. I'm unable to get the out() instruction to work as intended. I've tested the generic micropython pio_blink.py sample, ...
0
votes
0
answers
34
views
Where does Pico micropython print go with main.py?
If you load a main.py file onto the Pico with micropython firmware running, it will run on startup. I can tell that this is working because I observe GPIO outputs changing, etc.
However, I'm not sure ...
0
votes
1
answer
177
views
SIM800L with Raspberry Pi Pico takes too much time to make http request
I am using a Raspberry Pi Pico with SIM800l and NEO6M to make a GPS tracker. But it takes about 8s (from recording the GPS signal) to make a http request to the the server.
I'm using this library as a ...
1
vote
1
answer
377
views
missing libusb-1.x to install openOcd to use picoprobe
I am trying to set up a picoprobe in order to program my rp pico using only wires (using another rp pico). I am following these instructions in Appendix A. I have windows 11 at the moment.
When i try ...
1
vote
2
answers
188
views
One time timer interrupt? (Pico W, C/C++)
Is there a way to set a one time timer interrupt on the Raspberry Pi Pico? I.e. in code, I would be able to tell the hardware timer to interrupt me in a specified period of time. Example pseudocode ...
0
votes
1
answer
48
views
Pico Pi giving synthax error on pillow library
I am running a main.py file on the Pico Pi that imports a test file in a SD card that is connected by a module. The test.py file then imports PIL from the same directory as the file. I believe this ...
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 ...
1
vote
1
answer
236
views
RPi pico W problem importing modules from subdirectory
My directory structure on RPi:
/
firmware
__init__.py
functions.py
main.py
__init__.py is empty, in my main.py, I have:
import firmware
print(current_version)
while functions.py contains just:...
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 ...
0
votes
1
answer
210
views
How to send data between two already configured HC-05 modules
I'm new to electronics and microcontrollers, and I'm building an small project in which I'd like to send information from a master HC-05 bluetooth module to an slave one, I've already synced them ...
0
votes
1
answer
144
views
Detecting connections between non-GPIO and GPIO pins in Pico?
XY-problem
I have a keyboard that consists of two halves. Each half uses 16 pins. The pins in each half are aligned in a 8x8 matrix yielding 64 key presses that can be detected, and two times 64=128 ...
0
votes
2
answers
65
views
Shorted power to ground through resistor (Raspberry Pi Pico)
I have a similar question to this post:
Shorted Raspberry Pi Pico 3v3 pin to GND
I have shorted pin 36 to 38 through a 1.5k resistor.
I assume that because of the resistor there should have been ...
1
vote
1
answer
1k
views
How can I connect my Raspberry Pi Pico W to an Eduroam WiFi access point (WPA authentication)?
For a teaching demo about autonomy in scientific research, it will likely be a major blocker if students cannot connect the Pico W to their school's WiFi.
Someone suggested MAC spoofing, and I agree ...
0
votes
0
answers
98
views
Why does 5V make this relay not work properly vs 3.3 V on the pi pico?
I have a small hobby motor (5v) mounted with a hobby fan that is connected to Normally Open on the Relay (pic) and 5V Wall Power supply (via a barrel/terminal block adapter.)
On the input side, the ...
0
votes
1
answer
47
views
Controlling multiple electromagnets from one Raspberry Pi
I have a need to build a spring mounted table, 12" square solid top in red, springs in blue and bottom in green, as in the diagram
I need to place a solid ball on the top board so it rolls ...
0
votes
1
answer
508
views
How to setup and use a UART serial interrupt on the RPI PIco?
I have a data logging pico and want to add an interrupt on the serial port that can take in a string and report back the right amount of data stored on the SD card. I was looking at UART.irq but that ...
0
votes
1
answer
104
views
Playing audio on a Waveshare audio module
I've bought a Pico Audio module - assuming, maybe incorrectly, that being built to fit the Pico, speakers included etc it would be reasonably straightforward to get it working.
https://thepihut.com/...
0
votes
2
answers
475
views
Improving sampling frequency of Raspberry Pi Pico's ADC pin to sample at frequency of 48 KHz
I am trying to use Raspberry Pi pico to sample signal of frequency of around 24 KHz and store the values in an array. From Nyquist criteria, the sampling frequency should be 48 KHz. But I can properly ...
0
votes
0
answers
19
views
Use external power supply
I'm a newbie
I have a circuit which requires 12v to drive some ESCs that go to brushless motors and 5V that goes to pin 39 of a raspberry pi pico, they share a neutral / negative to complete the ...
0
votes
2
answers
321
views
Pico providing power to PIR sensor and relay module from gpio pins
I am trying to power (not at the same time) a pir sensor, and a relay board, via pico's gpio pins. The project is a camera that is turned on when the sensor is triggered. I am using the relay board to ...
1
vote
1
answer
298
views
Identify the Pico core at runtime
Using the C/C++ Pico SDK, how can I find out which core my code is running on?
(Specifically, I'd like to use lwIP's LWIP_ASSERT_CORE_LOCKED, which requires a thread or core identifier to determine ...
0
votes
1
answer
701
views
ModuleNotFoundError: No module named 'digitalio' HELP
I have been following a YouTube tutorial on how to setup the Raspberry Pi Pico H as a midi device. While programming, I came accross an error ModuleNotFoundError: No module named 'digitalio'. I'm ...
0
votes
2
answers
26
views
Where to find LED values of the Raspberry Pi Pico MicroPython Learning Kit?
I am getting started with a pico and I got the Raspberry Pi Pico MicroPython Learning Kit from waveshare (https://thepihut.com/products/raspberry-pi-pico-micropython-learning-kit-pico-included)
It ...
1
vote
1
answer
929
views
Loading firmware into RP2040 SRAM via SWD
I have to upload a new firmware in the Raspbery PI PICO external flash via SWD from a different microcontroller (an ESP32) connected via UART and SWD lines (I asked here a previous question).
I ...
0
votes
1
answer
1k
views
Is it possible to overwrite scripts? (OTA Update)
I'm having a hard time finding information about remote updates on PICO W. I watched a bunch of videos demonstrating how MicroPython can be used to manipulate the flash storage - so would it be ...
0
votes
1
answer
698
views
raspberry pico and circuitpython with ethernet and ntp server sync
I am trying to built a clock with rpi pico and circuitpython.
For iot connection I use a WIZNET5K module and so I used the adafruit_wiznet5k library. It connects alright.
The next step is to sync the ...
1
vote
1
answer
401
views
umqtt.simple returning Error: [Errno 103] ECONNABORTED when publishing to mosquitto broker on windows 10 [closed]
My problem:
When attempting to send sensor data from Pico W using umqtt.simple to a Windows machine on my network running mosquitto, I can connect to the network but not to the mosquitto broker. I ...