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

implicit declaration of function 'clock' [-Wimplicit-function-declaration] GCC

I am trying to build my code by keep running into this error. I am trying to use the MPU-6050 with a rasberry pi pico and take 1000 reading and see how long it takes to do that but i keep running into the error above. I am currently unsure what to…
Chris22
  • 21
  • 3
0
votes
0 answers

response delay on esp8266 conncted to raspberry pi pico

I've connected an ESP8266 module to my raspberry pi pico the second i connect my raspberry pi pico to my computer and it has power it connects to wifi BUT when I'm trying to send a get request to the API i made it takes about 5 seconds to get the…
0
votes
1 answer

I keep getting "TypeError: function missing 1 required positional arguments" but the argument is provided (I think its 'Pin')

#Below is the feedback that I keep getting back, may someone please help, I am using Thonny, Raspberry Pi Pico w, everything is up to date Connecting to My Phone Connected to @@@@@@@@@ mac = @@@@@@@@@@@@ Current time is 19/03/2023 03:32:01 Count =…
0
votes
0 answers

import error for usocket module on raspberry pi pico

I have been having a problem where I try to import the usocket module or the socket module and I am getting import errors. I am trying give a pico some client code and connect to a server using one of those modules. Here is my code import usocket as…
0
votes
1 answer

Button Inputs and polling I2C data in While loop

How can I handle button inputs in a while loop and at the same time refresh i2c data in a timely manner? A while loop that watches for changes on the button pins can be run very quickly so that it is responsive, but I also want to update the i2c…
em-steven
  • 5
  • 1
0
votes
0 answers

How to include header file in Raspberry pi pico project using cmake

I am trying to add PIO I2C to my project. It compiles successfully but has a linking issue. This is my error: [main] Building folder: Ghidorah [build] Starting build [proc] Executing command: /usr/bin/cmake --build…
0
votes
1 answer

Debugging Application in Raspberry Pico

I'm using pico with VSCode & picoProbe & openOcd as it's described in getting-started-with-pico.pdf for Windows. It works nice (build & debug) when the application runs from the beginning of internal flash (0x10000000). But when I move the…
wahoo
  • 59
  • 1
  • 5
0
votes
0 answers

ERROR code in micropython Thonny for rasberry pi pico with SSD1306

I run this code from machine import Pin, I2C from ssd1306 import SSD1306_I2C import framebuf i2c=I2C(0, scl=Pin(17), sda=Pin(16), freq=200000) oled=SSD1306_I2C(128, 64, i2c) oled.fill(0) oled.text("hello world", 0, 0) oled.show() and I get…
0
votes
1 answer

ImportError: no module named 'mpu9250'

I try to connect a IMU (MPU-9250) using the Raspberry Pi Pico W with Pyhton (MicroPython) and I wrote the code in VSC. But when I try to pass the code to the microcontroller the system says ImportError: no module named 'mpu9250' I used pip to…
0
votes
0 answers

How to set up a web server on the Raspberry Pi Pico W using CircuitPython?

I have a soft access point (hotspot) without internet connection set up on my Raspberry Pi Pico W see the code below: # import wifi module import wifi # set access point credentials ap_ssid = "myAP" ap_password = "password123" # You may also need…
0
votes
0 answers

How can I display bytearray array on screen?

I am using a ST7789 coded oled screen and raspberry pi pico board for a project. After a long struggle, I understood some things. But I couldn't find how to print the bytearray array to the screen. I'm having a hard time because the library is…
0
votes
0 answers

Using a Raspberry Pi Pico, MCP 2515 and Micropython to transmit frames over CAN

I'm trying to use a Raspberry Pi Pico and MCP 2515 to transmit frames over CAN. For this I'm using CAN bus Module (B) for Raspberry Pi Pico (https://www.waveshare.com/wiki/Pico-CAN-B) and demo code for micropython from the same page (code…
0
votes
1 answer

Micropython Raspberry Pico Error "No module named 'ssd1306'?

I have to make a small video games console for this uni thing i'm doing, it is designed to play pong, I have wired it up correctly and the usb is in my pc, I followed all of their instructions they sent me and I am getting this error: ImportError:…
0
votes
0 answers

MicroPython socket not serving iPhone safari browser on Raspberry Pi Pico W

I am running a simple server on a Raspberry Pi Pico W, and I can connect to the server just fine using Firefox on Windows. However, when trying to connect from my iPhone using Safari or Firefox neither works. The request is received, and it actually…
icicl
  • 3
  • 2
0
votes
0 answers

Is it possible to move a DC motor by degrees using Raspberry Pi Pico?

So I have A dc motor connected to my pico through L293D. The motor can rotate horizontally 360 degrees. I activate it by allowing voltage through the pico's legs. Like that: DC_motor = Machine.Pin(19, Machine.Pin.OUT) DC_motor.Value(1) # By setting…
David
  • 85
  • 8