All Questions
93 questions
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
82
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
57
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
210
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 ...
0
votes
1
answer
406
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
277
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
510
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 ...
2
votes
0
answers
594
views
Sending an image captured using ov7670 using arduino and serially transmit it to python
I am working on using an ov7670 camera module with arduino uno,capturing the image frame wise and transmitting the image serially line by line of each frame to python for image processing, however i ...
1
vote
0
answers
127
views
Converting more strings from serial monitor to int arrays
I want to transfer 8 lists from a python script, via Serial Monitor to the Arduino. I can get the strings to Arduino and Arduino saves them as String array, but I can't change it to integer (it shows ...
1
vote
1
answer
1k
views
What is the best (fastest and most robust) way to send messages back and forth between Python on a PC and an Arduino, over serial?
I am trying to communicate between a PC running Python using PySerial and an Arduino. The Arduino itself has a CAN shield, and is responsible for interfacing with a motor. My goal is for the PC to ...
1
vote
1
answer
2k
views
Sending float values from Python to Arduino using Serial communication
I need to send an array of floating-point numbers from python to Arduino Mega. For that, I read many sources [this this this this this] this] and many more links for the same I referred. But unable to ...
0
votes
1
answer
82
views
Controlling Arduino through python
How to set the registers of Arduino through python code to vary the sampling rate of Arduino?
Can we control Arduino through python?
1
vote
1
answer
956
views
`time.sleep` in python script reading serial output causes erratic behavior
I am attempting to control the position of my computer's cursor using a potentiometer hooked up to my arduino nano. The arduino is running the following code:
int potPin = 3; // select the input ...
1
vote
0
answers
29
views
Serial communication between Python & Arduino: [duplicate]
I need to transfer information between pyton script and arduino.
Data is always built like this "wheelbase:1000"
wheelbase can be another word and 1000 can be another value, : is always the ...
2
votes
1
answer
262
views
Arduino randomly stops sending data to python over serial
I want to send commands to Arduino over USB Serial from my python program and Arduino should send back received command to make sure data wasn't lost. However Arduino randomly stops sending data back. ...