Reading an int value from Arduino with pySerial

I'm also facing the same problem. Sending an int value from arduino to raspberrpi3. But it showing some garbage hex value like /xc8 for value 200.

import serial import time ser = serial.Serial("/dev/ttyAMA0",baudrate = 9600) time.sleep(1) while 1: x = ser.read(1) * 256 x = x + ser.read(1) if x>100 : print ("data",x)

Please solve this..............

This Thread has been dead for 5 years - leave it Rest In Peace.

Have a look at this Python - Arduino demo

...R