I want to send string 50 to Arduino through serial port, the Arduino UNO seems it communicates with port COM25 but it doesnt receive the string properly:
import serial # if you have not already done so
ser = serial.Serial('COM25')
ser.baudrate = 9600
ser.write(b'50')
ser.close()
Btw Arduino code is correct I checked it with other serial com programs. How can I fix the above code?
serial.Serial()
resets Uno and it spends some time in bootloader after then. add a delay/sleep after serial.Serial