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

SPDT Switches with a Raspberry Pi Pico

Basically I'm just trying to figure out how an spdt switch would work with a raspberry pi pico. When I search for information on how to interface a switch with a pico, all I get is info on button switches. Does the spdt switch act like a closed…
tylerst
  • 45
  • 6
0
votes
1 answer

How to retrieve a value by using get method ( /get ) on Micropython Webserver?

On Webserver, basically, I would like to take a value from the user and process it in the programme. I use Micropython on Thonny IDE with a Raspberry Pi Pico. TCP/IP communication protocol is used with a W5500 chip. I used /get format to take…
0
votes
2 answers

Setting up Raspberry Pi Pico (No module named 'Machine')

I'm trying to set up a raspberry pi pico for the first time. I've got micropython installed, and got my environment set up in Pycharm. I wrote a simple program to test my setup, and I'm getting this error: Traceback (most recent call last): File…
tylerst
  • 45
  • 6
0
votes
0 answers

undefined reference in c++ trying to get i2c working

I am trying to put a i2c controller onto a Raspberry Pi pico using c++ in VScode on Ubuntu I have a couple of errors that doesn't make sense. undefined reference to `i2c_init' and undefined reference to `i2c1_inst' my main function calls an…
0
votes
0 answers

I can't build cmake

I was doing it referring to the following site1 but when I built it with the following procedure, an error occurred. If anyone knows the cause, please let me know. 1 vi .vscode/settings.json 2 I will also attach an image.2 { …
surume
  • 1
  • 3
0
votes
0 answers

LCD to OLED conversion

I am new to coding. I have this project that I want to get done, so this is daunting. I had someone else write this, but my LCD was DOA, so I want to switch to an OLED. Can anyone help me transcribe this code from LCD display to OLED? I made some…
0
votes
0 answers

Open filedialog when pluggin in pi pico

I want to execute my script in a specific folder of my pc, there is something in micropython that can open filedialog to choose that when the script start?
0
votes
1 answer

TypeError: object with buffer protocol required - trying to write to SMBus

I'm using a raspberry pi pico to read data from a SHT3x sensor using the I2C protocol. I'm quite new to (micro)python so I used this example. This example is for a regular Raspberry Pi since I didn't find any for the Pico. However, the SMBus library…
Bas de Jong
  • 13
  • 2
  • 4
0
votes
1 answer

Failing to build R Pi Pico "Hello World" program

I'm attempting to get started with the R Pi Pico. I'm unable to build the introductory "Hello World" program using the command line tools. The nmake command fails, reporting that the C compiler cl.exe is not able to compile a simple test…
0
votes
0 answers

Make flask app visible outside my own network on ubuntu

so im developing my own flask APP and I want to make it be visible to everyone outside my network since by setting host to "0.0.0.0" my website can only be accessed on every device in my network but not with people that is out of my network, Is…
0
votes
1 answer

I2C communication between RP2040 and adxl357 accelerometer ( C/C++ SDK )

I need to communicate via I2C to the adxl357 accelerometer and a few questions have arisen. Looking at the RP2040 sdk documentation I see that there is a special method to send data to a certain address, such as i2c_write_blocking(). Its arguments…
lasb3tas
  • 75
  • 1
  • 9
0
votes
0 answers

Debugger stepping through assembly code instead of source code

I'm developing a program for the raspberry pi pico in C++, I'm using Visual Studio Code for my IDE and GCC to compile the source code. Normally when using breakpoints, execution stops at source code and I can debug as usual. But sometimes when…
0
votes
1 answer

Raspberry Pi pico script exeucte kill

I wrote a script with the while loop command and I executed it on my Raspberry Pi, however I didn't put a break in it, so it won't stop. I tried to interrupt it, but the script is still being executed. I used thonny Python and I tried to exit it,…
0
votes
1 answer

Trouble using I2C in CircuitPython (working MicroPython example)

I'm trying to write some code to run on a Pi Pico to interface with a SNES Mini controller & provide a normal gamepad output (HID device style). So I finished the following MicroPython code before realising MicroPython (on the Pico) can't do any…
0
votes
1 answer

NMake .PHONY not compiling

I'm having an issue when trying to compile simple C code for my raspberry pi pico. I am using VSCode (this is reproducible in PS as well). I have set up everything correctly as far as I'm aware. I have tried doing this only in PS and it gives me the…