im trying to use my qik 2s12v10 qith my raspberry pi 3b and its not working on.I have used before with arduino and it’s working. I think that its no receiving what im trying to send by the serial port. Here is the code.
ser = serial.Serial(’/dev/ttyS0’, 115200, timeout=0.5) # open serial port
arr = bytes(a1, ‘utf-8’)
arr1 = bytes(a4, ‘utf-8’)
ser.write(arr1) # motor 0 speed to 0
The physical conections are right. These are in the same way that are mentions in preview reviews.
I have use other code before:
s = serial.Serial("/dev/ttyS0", 115200, timeout=0.5)
s.write( chr(0xAA) + chr(0x09) + chr(0x0A) + chr(0x7F) ) # motor 0 full speed reverse
s.write( chr(0xAA) + chr(0x09) + chr(0x0A) + chr(0x00) ) # motor 0 stop
But I obtain this error