All Questions
5 questions
1
vote
1
answer
869
views
Can not receive data from Python code
I want to send 4 float numbers from Python code to an Arduino; I was trying to send it via serial and I have some problems.
here is my Python code:
import time
import serial
import struct
data = ...
0
votes
1
answer
246
views
Can't display the two float values correctly from pyserial on Arduino's LCD
I transported two float values with pyserial to COM3 and Arduino accepted the values.
But it displayed the first value correctly on LCD, the second value can't be read and showed "nan" on LCD.
...
1
vote
2
answers
9k
views
Sending Float values from Python to Arduino via serial communication
I want to Control the current flowing through a circuit using an Arduino. I have trained a PID controller for this purpose. I am using a current sensor to determine the error. It runs successful on my ...
0
votes
1
answer
306
views
Serial, Numbers sent as Floating Point and Characters are different at 1e-8 level
I have some code that generates random numbers on the Arduino, it then sends these random numbers firstly, using Serial.print(float data,int lenght) and as a floating point number using the following ...
0
votes
2
answers
8k
views
Sending a floating point number from python to arduino
I am trying to send a floating point number from a python script to an Arduino. I am not sure how to do this, especially in a pythonic way.
A little bit of research brought me to this very similar ...