Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

I'm trying to send data from PC to Raspberry Pi Pico. PC code: import serial import time # Define the serial port and baud rate (adjust as needed) serial_port = 'COM12' # Replace 'X' with the actual ...
Çağan Çelik's user avatar
-2 votes
1 answer
113 views

I am using a Raspberry Pi Pico-W with MicroPython to build a small temperature alarm. I have tried to build in some hysteresis however the output is using the upper value not the lower one. I.e. in ...
BDMan32's user avatar
  • 49
0 votes
4 answers
4k views

On a Raspberry Pi Pico I ran a looping script that blinks the onboard LED. It loops forever. I can’t reset it, stopping the power doesn’t work because it runs on startup and Thonny doesn’t even ...
Tomas Tkacik's user avatar
0 votes
1 answer
258 views

I can't get a response when trying to inference an Azure ML model deployment on a Raspberry Pi Pico W. I've successfully gotten responses using Python 3.10, but can't get it to work in MicroPython. ...
Jack Bernard's user avatar
3 votes
1 answer
643 views

I'm trying to send text between this to devices. One has a Python 3.11 (Server) and the other one a Micropython 1.20 (Client). Both devices have their own key and the server has a server-cert. Both ...
Philipp's user avatar
  • 53
0 votes
0 answers
166 views

programming language: micropython board: esp32 wroom hi, I have a zepto.min.js file on a esp32 and I use microwebsrv2 to build web server the frond end of web site is a simple html file. some where in ...
mehdi's user avatar
  • 1
1 vote
0 answers
1k views

So there is a module named usb_hid on CircuitPython but its not on MicroPython. Is there a way to get usb_hid on MicroPython? It isnt in the lib folder of CircuitPython. I even tried displaying all ...
supersonic5138 supersonic5138's user avatar
0 votes
0 answers
194 views

My Raspberry Pi Pico W and Inky Frame running MicroPython works when I execute it over USB via Thonny. I'm going to remove the USB and leave it on battery. I'd like my script every hour to update what ...
owenmelbz's user avatar
  • 6,606
0 votes
1 answer
477 views

I need a connection between an ESP32 and a Raspberry Pi Pico W to control an RC boat. The data transfer is too slow. Latency needs to be 0.1 seconds or less. My test was with 1 second delay, but the ...
PrismaHaken's user avatar
0 votes
1 answer
140 views

I am writing in MicroPython. Target is a servo-motor controlled by calls to device's IP-address. The Raspberry Pi Pico runs a server listening to incoming requests: http://192.168.178.22/servo/on ...
Hillbicks's user avatar
0 votes
1 answer
76 views

I'm trying to use the aiomqtt module ([https://github.com/sbtinstruments/aiomqtt]) in a micropython program on an ESP32-S3 system, but I get a syntax error on this statement in aiomqtt's client.py ...
Tom Ferrin's user avatar
0 votes
1 answer
1k views

My code: print("hello world") I want this file to run when I start the Raspberry Pi Pico. I named it main.py but when I unplugged and plugged the Raspberry Pi Pico into my computer the ...
Ibrahim Aslan's user avatar
2 votes
2 answers
2k views

Error: >>> %Run -c $EDITOR_CONTENT Traceback (most recent call last): File "<stdin>", line 5, in <module> File "/lib/ssd1306.py", line 110, in __init__ ...
Pinnache's user avatar
5 votes
4 answers
3k views

I am trying to create a uf2 file for a Raspberry Pi Pico for a swarm robot. I get: arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs': No such file or directory I installed the SDK: ...
Neil Patel's user avatar
0 votes
1 answer
77 views

I have some RGB LEDs, and I want to draw a gradient on to them. The gradient is stored as a list of tuples, each tuple containing the R G and B values for the LEDs. I iterate through the list, and add ...
Commodore 64's user avatar
0 votes
1 answer
205 views

I'm trying to implement a UART interrupt in MicroPython on an RP2040-based custom board loaded with Adafruit Feather MicroPython 1.2. While I'm aware this feature is typically available for WiPy ...
Aaditya Dengle's user avatar
0 votes
1 answer
264 views

When I run my code to blink a LED, Thonny runs it well. But on the Raspberry Pi Pico itself the LED is not blinking: from machine import Pin from time import sleep led = Pin(25, Pin.OUT) while True: ...
The Riddler's user avatar
0 votes
0 answers
605 views

I am using Pico W as web server to control relays to switch on and off switches. I am able to connect pico w to wifi router. Web server works fine. After some idle time like 2-3 hrs, Pico stops ...
Rohan Arora's user avatar
0 votes
1 answer
774 views

I'm trying to connect a lego ev3 with micropython to a raspberry pi via bluetooth. Installed bluez and blueman on raspberry. I made the lego address trusted and connected it via the command line using ...
oleg's user avatar
  • 1
0 votes
1 answer
983 views

The error: Traceback (most recent call last): File C:\Users\jobsa\Downloads\lcd.py, line 1, in module import machine ModuleNotFoundError: No module named 'machine' I am trying to make an LCD ...
Job Sanjose's user avatar
0 votes
1 answer
537 views

I am trying to install machine module. The error says: Collecting machine Using cached machine-0.0.1-py2.py3-none-any.whl (4.2 kB) Collecting pycrypto (from machine) Using cached pycrypto-2.6.1....
Peque Softwares's user avatar
0 votes
1 answer
561 views

I am using an ESP8266 board with micropython. I tried to use asyncio, but it doesn't work and says me that : Traceback (most recent call last): File "<stdin>", line 10, in <module&...
Kaki In's user avatar
  • 94
1 vote
0 answers
265 views

I'm trying to have a Raspberry Pi Pico W read temp and other measurements and send via web socket to a server, which is a Raspberry Pi 4). The server, at this point, just prints the data out on the ...
gb101's user avatar
  • 11
0 votes
1 answer
790 views

Using PySerial I was successful in sending data from Raspberry Pi Pico to Windows PC but not the other way around. Windows PC code: import serial # Configure the serial connection port = "COM5&...
HEL's user avatar
  • 43
1 vote
0 answers
289 views

i just want connect esp32 bluetooth to IOS this code can connect with android only I got this code from this Github and i use two code i used ble_advertising.py and ble_uart_peripheral.py https://...
TaHaRock's user avatar
0 votes
1 answer
135 views

I'm using ulab micropython on ESP32. I can't find logical and operation. I am new to micropython. Kindly help me how do I take logical and between two numpy arrays from ulab import numpy as np arr1 = ...
Hamza_712's user avatar
0 votes
1 answer
582 views

I wrote a program using the ESP32 board, sim800l and micropython to send a message to my phone, but it doesn't work, maybe there is a problem with my code and also the flashing light blinks once every ...
Mr.Programmer's user avatar
2 votes
1 answer
3k views

Based on the official peripheral sensor example, I need to also receive data. Here is what I tried: from micropython import const import uasyncio as asyncio import bluetooth import aioble import ...
Damien's user avatar
  • 1,734
0 votes
2 answers
653 views

I am trying to write a script that can create a Python file from multiple inputs and upload it to a Raspberry Pi Pico that has MicroPython installed. I tried rshell: import subprocess cmds = 'python -...
Chickpeaplane's user avatar
0 votes
0 answers
89 views

I'm trying to create several int constants for my module, initialized from the hex values. Pylance keeps complaining about the type conversion errors, but I don't see why and how. Consider the ...
Draco-S's user avatar
  • 101
1 vote
0 answers
1k views

I'm trying to expose the AttitudeEngine quaternion on the QMIi8658 mentioned in the documentation. It's part of the WaveShare RP2040-Touch-LCD-1.28 module. Their original demo sketch exposes the ...
Victor Lazaro's user avatar
-1 votes
2 answers
537 views

I have a Raspberry Pi Pico. When I upload a new program onto it the previous program is still running. What should I do? For example I write code to blink pin22, but when I change it to pin21, pin22 ...
Taha Farshbaf's user avatar
0 votes
1 answer
881 views

I am trying to connect a Raspberry Pi Pico W to a virtual machine which runs a MQTT broker and Node-RED server. MQTT broker is password protected. I added MQTT broker IP in the MQTT node on Node-RED ...
Magnus Bane's user avatar
0 votes
1 answer
275 views

there is a raspberry pi pico that I want to configure as a temperature sensor, and output data to zabbix raspberry pi pico I have, connected to a computer with ubuntu 22.04 via usb, I have a code for ...
Леонид's user avatar
0 votes
0 answers
175 views

import machine import utime import _thread from rotary_encoder_classes import * clock_pin = machine.Pin(25, machine.Pin.OUT) frequency = 1 def clock(frequency): while True: clock_pin....
riyasach189's user avatar
1 vote
1 answer
255 views

I use MicroPython on my Raspberry Pi Pico and try to display a BLOB coming from an HTTP API on a Waveshare ePaper display. This is my code: epd = EPD_7in5_B() epd.Clear() while(True): response = ...
mu88's user avatar
  • 5,699
0 votes
2 answers
882 views

I'm running MicroPython on my Raspberry Pi Pico and trying to connect it to my WiFi with the following code: wifi = network.WLAN(network.STA_IF) wifi.active(True) print(wifi.isconnected()) wifi....
mu88's user avatar
  • 5,699
0 votes
1 answer
204 views

So I am trying to make an rc plane with the pi pico, so to make it remote controlled, i decided to have it host a little web server, just simply with the controls. And I got that to work. But then I ...
benji bon's user avatar
0 votes
1 answer
665 views

I tried up to day to get requests working on micropython, tried installing libraries and everything. I use thonny IDE. what can i do? Error: Traceback (most recent call last): File "<stdin&...
sev3333's user avatar
0 votes
0 answers
468 views

I have a Raspberry Pi Pico W with code on it that lights up the onboard LED once it has successfully connected to WiFi, otherwise the onboard LED will blink. Most times upon start up however, (I have ...
harryt's user avatar
  • 1
0 votes
1 answer
353 views

I am trying to autostart a pico W program. I can get it to flash LEDs, but when I add my logic about temp sensor and network, it doesn't autostart anymore. I save this program to main.py. The program ...
Alexis Baker's user avatar
-1 votes
1 answer
713 views

I've built an HTTP API returning an image (HTTP GET http://myRaspi/api/latestImage → returns image with content-type image/jpeg). On my Raspberry Pi Pico, I loading the image with the urequests ...
mu88's user avatar
  • 5,699
0 votes
0 answers
24 views

I was trying to use a function from my own class and it gave me this error: Traceback (most recent call last): File "/home/robot/MyBlocks/main.py", line 134, in <module> File "...
paxq's user avatar
  • 1
1 vote
0 answers
72 views

Hello I am new at coding the microcontrolers and I dont know what I am doing wrong. Could someone help me. I get the access denied. I checked everything the port, baudrate, drivers and still get this ...
ROM3K's user avatar
  • 15
0 votes
1 answer
2k views

I´m currently programming an esp32 with micropython. It runs a bigger project for university and I have a problem with the following code. import urequests as request def readWebsiteData(): ...
Fab_ME's user avatar
  • 55
0 votes
0 answers
190 views

Using MicroPython on a Raspberry Pi Pico I receive a pulse wave (~17ms on, ~3ms off) then output relating to that. When garbage collector kicks in it messes up my output for about 6ms (too long for ...
Jack's user avatar
  • 161
0 votes
1 answer
101 views

I'm building a microcontroller project which is programmed in MicroPython, and I'm struggling to find a sensible way to extend my code to support multiple operating modes. Currently it looks like this:...
sandyscott's user avatar
0 votes
2 answers
225 views

Just to summarise my issue I've been trying to clear the screen of a text that is displayed on a built in OLED display from my ESP8266EX board. I have uploaded the script to the board that includes ...
Alejo_Correa's user avatar
0 votes
1 answer
197 views

Why does my highscore saving output "TypeError: unsupported types for ge: 'int', 'list'" in micropython? I tried making my Tetris game on my RaspberryPi Pico be able to save highscores, but ...
SCP-999's user avatar
0 votes
1 answer
2k views

I am trying to install umqtt.simple onto my Thonny IDE using Micropython. I have a Raspberry Pi Pico W with Micropython already installed on both the device and Thonny, and Micropython is the selected ...
harryt's user avatar
  • 1

1
3 4
5
6 7
23