Questions tagged [python]
Python is a programming language. Use this tag for questions regarding how to use Python with your Arduino, or on using of pySerial or such software. Also consider using [programming] and other specific tags.
192 questions
0
votes
2
answers
117
views
problem with scripts in Arduino Lab for MicroPython
I am trying to set up an Arduino Nano ESP32 so that I can code in MicroPython. I successfully installed Arduino Lab for MicroPython and flashed the firmware onto the device, but when I try to run the ...
2
votes
1
answer
243
views
Connecting Arduino Mega 2560 to Python with PyFirmata
I am currently controlling two servos using the Arduino IDE, but now need to integrate my Arduino code into a Python script. I read about how to use PyFirmata and went through the process of uploading ...
1
vote
1
answer
96
views
Reading JSON from Arduino via Serial Missing Parts of Message
I have a project (Digital Dashboard for a Motorhome) in Pi that reads JSON data from an Arduino board and sends it via Serial.
The Pi gets the JSON data, makes some adjustments and then sends it to an ...
-1
votes
1
answer
209
views
Error in Compiling for Seeed Xiao nRF52840 [closed]
I am using Arduino IDE 2.3.4 to program a XIAO nRF52840 Sense. I added the board using the instructions on the official getting started page.
After installing the board in Arduino IDE, I open up the ...
-1
votes
1
answer
101
views
Looking for a library to operate LEDs using FastLED via serial communication from another device running Python
I have an LED display connected to a Teensy microcontroller using the FastLED library, which is connected to a Raspberry Pi Zero running Python via a USB hub.
I am looking for an existing library that ...
0
votes
1
answer
2k
views
How to program Arduino LCD shield with Python?
I want to run an Arduino LCD shield with Python code. After having done some research on the internet, I can not find any tutorial, some just give some basic code with LED.
And one things that how can ...
0
votes
1
answer
317
views
CircuitPython - how to connect Adafruit esp32 AirLift with Adafuit HttpServer? Incompatible socket object
I am building a CircuitPython weather station based on Adafruit M4 board stacked with Adafruit ESP32 AirLift module.
Both work fine together when it comes to making http calls (via the ...
0
votes
1
answer
352
views
Xiao ESP32-C6 in CircuitPython
So I recently bought two Xiao ESP32-C6 from SeeedStudio; they work with Arduino code out of the box. Now I want to flash the CircuitPython bootloader from here https://circuitpython.org/board/...
0
votes
1
answer
59
views
Problems sending data to my Arduino from Python using pySerial
I'm trying to send a '1' or a '0' to my Arduino in Python using pySerial so that from my Arduino I can read whatever the Python program sends and then turn a relay on and off depending on what it ...
-1
votes
1
answer
235
views
Reading serial data from Arduino in Python continually
Using a stepper motor and a range finder (TFLuna), I am trying to build a "Lidar" (like a Radar, but with light). Here is the algorithm:
Turn motor one step, calculate angle, measure ...
2
votes
1
answer
133
views
Micropython installation on Arduino nano
I am currently trying to use micropython on an arduino Nano 33 BLE using MacOS. Following the instructions from arduino website I was able to complete steps 1-3. At step 4, I can find the bossac file ...
5
votes
1
answer
1k
views
ESP32 SocketIO Client is not connecting to Flask-SocketIO Server
I'm trying to connect a ESP32 client using SocketIO with a Flask-SocketIO server and it's not getting connected.
The server uses SSL. The local server address is https://192.168.1.137:3000.Is the ...
0
votes
1
answer
421
views
Python script cannot connect to serial port
I want to control the LEDs with my hand, for this I used the repository https://github.com/paveldat/finger_counter/tree/main. I want to control the LEDs with my hand, for this I used the repository. ...
0
votes
1
answer
294
views
How to fix UnicodeDecodeError when using Serial.println
I am using an Arduino Uno R3 to send instructions to a serial monitor in a Python program with Serial.println. But when I send a specific line, I get a a UnicodeDecodeError.
The line in the Arduino ...
3
votes
1
answer
530
views
How to ignore garbage values in serial communication between arduino and python
I have arduino uno. I am trying to send and receive serial data from arduino to python. I have usb to uart converter. I have connected its tx to rx of Arduino and rx to tx of Arduino and gnd is ...