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

rpi pico: How to detect that sys.stdout is connected

I am using a rpi pico to collect temperature measurements which are saved to a local file. I additionally want,when the pico is connected via usb to PC, to output them on stdout. I have tried this: f=open('temps.txt','a+') while True: …
NameOfTheRose
  • 819
  • 1
  • 8
  • 18
0
votes
1 answer

Raspberry Pi Pico I2C pins not working (MicroPython)

I have connected an ssd1306 OLED and BME280 to my Pico. Everything works like a charm when connected to Pin 0 (sda) and 1 (scl) i2c pins. But due to my very bad planning, I have to switch to any other i2c pins. Once connected I cannot get it to…
imagine
  • 1
  • 1
  • 2
0
votes
0 answers

Issue packing / unpacking message for UART between ESP-01S and Raspberry Pi Pico

My end goal is to set up a Raspberry Pi Pico with an ESP-01S to enable wifi. The Pico will periodically check in with the server and put the ESP to sleep when not in use. Communication between the two is over UART. I want to support both a GET and…
Sean O'Rourke
  • 182
  • 1
  • 2
  • 11
0
votes
0 answers

My code works but it's slow. Apart from using framebuf and writing my own driver for pico-unicorn how can I make it faster? Best practices?

I'm a beginner in python but wanted to create a simple hardware reminder to put correct bin out. And maybe learn a bit during the process. My setup is Raspberry Pico and Pico-Unicorn hat from Pimoroni. Goal was to have a scrolling reminder every…
0
votes
3 answers

Raspberry Pi Pico Keeps Ejecting

I've just gotten my Raspberry Pi Pico and am trying to get it ready to accept code. I've tried dragging and dropping MicroPython from the webpage and using Thonny to handle it automatically, but when I do either, it ejects itself and nothing has…
blitzkrieg
  • 11
  • 1
0
votes
1 answer

Component that can create a hex value?

TLDR: Is there a way to create a hex value between 0x20 and 0x7E with 5 volts? Is there a cheap component on the market or circuit logic that can achieve this? I'm not sure what the proper terminology for this is, but here's what I'm trying to do: I…
zapshe
  • 228
  • 1
  • 8
0
votes
1 answer

Raspberry Pi Pico sending LoRa messages

I'm using two functions from this pico tracker code: setup_lora(433.0, 1, "CODEBRANE"); ... SendLoRaPacket(loraBuffer, 16, 0); and I'm not sure whether it's sending anything. I have an ESP32 receiving on another SX1278 board and I've tested both…
codebrane
  • 4,290
  • 2
  • 18
  • 27
0
votes
1 answer

E-paper display and Raspberry Pi Pico

We have been working on a project to get e-paper displays work with Raspberry Pi Pico board. We already managed to get everything working with ESP8266-board, but for power consuming reasons we would like to use Pico. E-paper display what we use is…
avaa.tech
  • 1
  • 2
0
votes
0 answers

Pi Pico Micropython Loop seems to get stuck

I am using a Pico as part of my dissertation along with an Arduino Due for a low cost fully autonomous UAV. Anyway to the point, the code was working before I added the GPS part but now even if I take it out the ultrasonics won't work correctly.…
0
votes
1 answer

How to solve sleep error in Raspberry Pi Pico?

I bought Raspberry Pi Pico and set everything up. It worked flawlessly but now sometimes i have error near sleep(0.001) sometimes it works, sometimes it doesn't. I have two 7-segment displays and i want to turn them on and off accordingly.…
L1RG0
  • 17
  • 4
0
votes
1 answer

How to use Raspberry Pi Pico with DAC with SPI to generate sine wave of 1 kHz with 20 k samples per cycle

I have a DAC which can be used with a 50MHz SPI interface.Its a 16 bit DAC with 8 bit address,hence i require to send 24 bits data. I want to use Pico to send data to DAC so as to produce a sine wave of 1 kHz with 20 sample (hence sampling rate not…
0
votes
0 answers

Raspbery Pi Pico not connecting to the PC /Raspberry Pi 4

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 was going great but when I turned my raspberry…
ANDRE_21
  • 1
  • 2
0
votes
4 answers

Raspberry pico cannot compile due to Nmake error

I was trying setup enviorment to develop some program for new PICO, but only compile one time, after I haved this error: [main] Building folder: pico-examples [build] Starting build [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE"…
0
votes
2 answers

Raspberry Pi Pico - Nanosecond Timer

I'm new to Micropython and microcontrollers in general. I'm trying to create a script to run on a Raspberry Pi Pico that takes two time variables time1 = utime.time_ns() and time2 = utime.time_ns() and then subtracts time2 from time1 to give me the…
Cam32
  • 9
  • 1
  • 2
0
votes
1 answer

Raspberry Pi Pico - Flashing program using Macbook

I am trying to load a program on a Raspberry Pi Pico. Have loaded the standard blink program on it using USB connected to my Macbook and used Thonny to run and stop the program. However if I disconnect the Raspberry Pi Pico, from the USB, the…
Raj Oberoi
  • 654
  • 1
  • 7
  • 18