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
1
vote
1 answer

How can I connect a buzzer to the raspberry pi pico using C/Rust?

I have a raspberry pi pico and a buzzer which I connected to GPIO15. I can get it to buzz and play a few notes using MicroPython and Thony like this: from machine import Pin, PWM from utime import sleep buzzer = PWM(Pin(15)) tones = { "C5":…
NaniNoni
  • 155
  • 11
1
vote
0 answers

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 worked perfectly fine. I can still upload…
Omicron
  • 365
  • 4
  • 9
1
vote
2 answers

How to make this work in parallel with _thread on a pico w and micropython?

So, im trying to make a webserver and processing data with a pico in parallel, my goal is to reach the pico from my browser using the local network ip to see in what step the pico is working and what data is on the current loop, however i have two…
Bararto
  • 11
  • 2
1
vote
2 answers

Raspberry Pi Pico script stops after a while, how to do logging?

I've got a script running on my Raspberry Pi Pico W that works fine, until it doesn't. It has worked for a few days without a problem and now seems to just stop sometimes. It is hard to find out what goes wrong without logging. Is there a best…
1
vote
1 answer

How can I put python files on a raspberry pi pico without using software like thonny

Is there a way for me to put python files (micropython to be specific) on the raspberry pi pico without using software like thonny where it does it for you, Is there a way to do it with bootsel?
Luke
  • 21
  • 8
1
vote
1 answer

Problems using the DHT20 with Raspberrypi pico

I'm new to the raspberry Pi Pico. I've been programming my Pico in micropython to use a DHT20 temperature and humidity sensor, using the library given in the seeedwiki I can't get it to work using the code they give me as seen below: from machine…
Daan Bos
  • 27
  • 3
1
vote
1 answer

How can I send and receive data between two PiPicos using LEDs?

How can I code two Pi Picos to send/receive data accurately to 10 milliseconds a bit using LED/Photodiode pairs? I am trying to send data from one PiPico to another wirelessly. I am on a bit of a time crunch and have unsuccessfully tried getting my…
1
vote
1 answer

Issue with char array, contains garbage

I'm trying to run one of examples delivered by Raspberry for Raspberry Pi Pico. It is an example to read data from GPS module via I2C. Raw data from GPS should be stored in a variable char numcommand[max_read], but instead of data from GPS, there is…
Dominik
  • 25
  • 5
1
vote
0 answers

Pi Pico I2C communication using the Arduino IDE

I want to communicate between 2 Pi Pico's using I2C. I want to do program these with the Arduino IDE. I have tried using Wire.h and some examples I found online. However, they don't seem to be able to connect to each other. This is my Master…
joshuagws
  • 21
  • 3
1
vote
1 answer

Is it possible to create a delay of less than 0.001 seconds using circuitpython?

hardware: raspberry pi pico language: adafruit-circuitpython TL;DR: 0.001 sec is the maximum precision that time.sleep() can perform. how can we get over it, using circuitpython? The 'utime' library works only on micropython... The long story: look…
1
vote
2 answers

Is there a way to convert a string into bits in MicroPython?

While using MicroPython, I recently copied my "toBits()" function from python. My code is this: def tobits(s): bits = "" for c in s: bits2 = ''.join(format(ord(i), '08b') for i in c) bits = bits + bits2 return…
1
vote
1 answer

How to fix pulseio module error in circuitpython on raspberry pi Pico?

Hello i use a raspberry pi Pico with RP2-80 20/34 P64M15.00 TTT chip with circuitpython 7.3.1 programing language and when i try to use pulseio module to capture a signal from a IR sensor i get that error,how can i fix this? This is my code: import…
1
vote
1 answer

How to send data via bluetooth to Pi pico

I need a way to send data to and from my pi pico via bluetooth. Here is the program I'm running on my pc. Note: Everything on the pi is working correctly (tested with a bt serial terminal) import bluetooth as bt print("Scanning Bluetooth…
Jake A
  • 83
  • 1
  • 8
1
vote
0 answers

binascii hexlify decode TypeError: object with buffer protocol required if I use a list with bytes

So, I got this wired thing when using list with bytes inside on a Raspberry Pi Pico and MicroPython. If I use binascii.hexlify(data_raw[0]).decode() I got the error TypeError: object with buffer protocol required The list is like below: [b'\x02',…
NicoCaldo
  • 1,171
  • 13
  • 25
1
vote
1 answer

Strange problem with PIO state machine of RapsberryPi-Pico

I try to implement TFT control using PIO. I have written 4 PIO state machines for every sync signal of my TFT (CLOCK, DE, HSYNC, VSYNC). 3 of them work seamless, but if I add the VSYNC module, the whole Pico freezes. It doesn't change pins and…