Skip to main content

All Questions

0 votes
1 answer
431 views

Raspberry Pi Pico stops working after I send data via USB

I want to turn on an LED for a while when my Raspberry Pi Pico receives some data from USB. Here is the code I'm using for the Raspberry Pi Pico: import select import sys import machine poll_obj = ...
cichyvx's user avatar
  • 28
0 votes
1 answer
702 views

Raspberry pi pico communication Permission Error

I try to send a Serial from PC: import serial import time port = "COM9" baud_rate = 115200 ser = serial.Serial(port, baud_rate) data = "test\n" ser.write(data.encode()) ser....
Thale's user avatar
  • 1
0 votes
1 answer
247 views

Automating Micropython REPL Control for Pyboard Firmware Updates

I'm working with a Pyboard (D-Series) and need to automate the process of preparing it for firmware updates (boot mode). Specifically, I want to programmatically control the Micropython REPL (Read-...
ra_re's user avatar
  • 1
0 votes
1 answer
1k views

Sending and receiving data over USB using serial

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
1 vote
0 answers
70 views

"Access denied" in python serial library

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
130 views

Inconsistent behavior of pyserial and rshell when executed in a .py file

I am trying to program my lego mindstorms inventor robot using python and this pypi package. It basically uses rshell to communicate with the lego robot that is running micropython. Here is the code ...
Kyrylo Kalashnikov's user avatar
-1 votes
1 answer
537 views

How to send the contents of a variable to Micropython repl [duplicate]

I am trying to create a file in an ESP32 named "PassWord" containing a password, using Micropython Serial. The code below works with a "hardwired" password, but I would like to be ...
user1530405's user avatar
0 votes
0 answers
384 views

Serial Communication between MATLAB and STM running Micropython

Was hoping I could get some pointers on how to setup communications between MATLAB and an STM32L476 Nucleo-64. The idea behind this is to essentially navigate some pre generated terrain, using the ...
Ashloz's user avatar
  • 1
2 votes
1 answer
313 views

Why can't I access my ESP3288 USB after detaching REPL from UART0?

What I put into my otherwise mostly empty main function was basically: import uos uos.dupterm(None, 1) I uploaded this code to my microcontroller and it stopped being able to connect to my computer. ...
Okan Zagor A.'s user avatar