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

I want to turn ON and OFF an LED with one button (micropython raspberry pi pico)

Guys Hi could you please help me with my project: I want to turn on an LED with 2 modes: 1-with button one it should starts and after 5 second it should tun off 2-with button two, it should turn on and stays ON and then if I push Button 2 I want it…
Ebiram88
  • 3
  • 3
0
votes
1 answer

How to make an LED on, in micropython by adding 5 seconds each time you press a push button

could you please help me : I want to make an LED ON by pressing a button it Should stays ON for 5 seconds, but I want it to, if I push the button while it's ON, it will stay ON as long as the time added up. for example: when the LED is On and I push…
Ebiram88
  • 3
  • 3
0
votes
1 answer

Use microphone in Raspberry Pi Pico (Micropython)

How can i use micropython firmware alongside a Max9814? I have written the code below but cant hear clear voice in audacity... from machine import Pin, ADC import ustruct , time analog_value = machine.ADC(26) conversion_factor =3.3/(65536) samples…
0
votes
1 answer

Raspberry pi PICO ADC reading

Why not get zero when taking ADC readings on Raspberry Pi Pico? Even though I ground the ADC pin, the analog reading always fluctuates between 10 to 20. How can analog reading be reduced to zero?
Sreelesh
  • 21
  • 1
  • 4
0
votes
1 answer

I cant display a temp on a lcd display. Because it wont let me put the part where it updates the lcd and displays it the temp

When I try to run the code it comes up with this error. Traceback (most recent call last): File "", line 35, in TypeError: can't convert 'float' object to str implicitly Here's the code that I'm trying to run. import…
reet66
  • 3
  • 3
0
votes
1 answer

Rust Multi-threading Memory Allocation on the RP Pico/RP2040

I'm working with the Raspberry PI Pico to perform the basic task of reading data from a UART signal, modifying it, and writing it back out to a different UART address. However, I need to simultaneously be constantly monitoring an on-board sensor and…
tufelkinder
  • 1,176
  • 1
  • 15
  • 37
0
votes
1 answer

Pico failure after powering over gpio

My pi pico didn't respond to bootsel and main.py also didn't work. It also don't appear as an device in thonny. Is my pi frayed to death? I was trying to power it via gpio. The voltages on vbus and vsys are right. I tryed picoreg and it sead: Can't…
asollo
  • 3
  • 1
0
votes
1 answer

Raspberry Pi Pico Analog to Digital Timing in C++

According to numerous online sources, the Raspberry Pi Pico can perform 500,000 A to D reads a second, i.e., 2 microseconds per read. I am programming in C++ using the Arduino IDE and cannot get better than 7.7 microseconds. Given a clock speed of…
John Buckwell
  • 111
  • 2
  • 9
0
votes
0 answers

No blink in dummy morse code with rasp pi

I have the following code. Experimenting with it, but the led turns on and stays on until the end. Not sure why. import machine import utime letterMapping = {"h" : "ssss", "e" : "s", "l" : "slss", …
0
votes
1 answer

MicroPython PyCharm 2021.3.3 plugin permission error

I was trying to set up MicroPython on PyCharm 2021.3.3, unfortunately I was not able to successfully connect my board to IDE. I'm getting trying to use tools>>MicroPython>>MicroPython REPL: Found the device, but could not connect via port 'COM4':…
0
votes
3 answers

Raspberry Pi Pico ImportError: no module named 'machine'

I am running the following blink program on my raspberry pi pico. I am using circuit python. from machine import Pin import time led = Pin(13, Pin.OUT) while True: led(1) time.sleep(1) led(0) time.sleep(1) When I run it though it…
0
votes
1 answer

uPY uart not communicating correctly with EG25-G

I had a motor controller connected to GP0 and GP1 so I know they work, however I cant seem to get a response from the SIM controller. Without the pico attached to the board, I can get it to work, but when I add the pico it seems like it wont send AT…
Kashutu
  • 11
  • 4
0
votes
1 answer

Problem transferring sensor data with LoRa sx1262 + Raspberry Pi Pico

I am new to the micro-controller game and I ran into some issues trying to send data from one Pi Pico to another one using the SX1262 LoRa module by Waveshare. Basically what I eventually want to do is make a sensor network and send all the data…
0
votes
2 answers

Raspberry Pi Pico locks up when I try to use interrupts

I'm trying to use encoders to track the movement of three wheels on a robot, but as soon as any of the motors move the robot "locks up", it stops responding to commands, stops printing to the serial monitor, and just keeps spinning its wheels until…
0
votes
1 answer

Detecting modifier keys pressed on host computer from circuitpython

I have a Raspberry Pi Pico running CircuitPython. Is it possible for the python code on this board to detect if a modifier key is pressed on the host computer's keyboard when the board is connected to the host over USB? My knowledge of USB protocols…