Jump to content

Recommended Posts

Posted (edited)

hi , how to access the uart pin on the tinker board through python code . i am not sure on how to find the uart port name (something like USBtty ....) for the tx rx pins on the board . how to find the name and how to access it . should we do some other steps before using it .

 

 

 

something like 

 

import serial

ser = serial.Serial('USBtty0',9600)

Edited by Yuvaram Singh
Posted

i got a basic solution to connect UART of arduino to tinker UART1 (8,10) on armbian os through python . this might not be a correct one .but,simple .we can use '/dev/ttyS1' to access the UART1 tx and rx pin

 

python

import serial

ser = serial.Serial('/dev/ttyS1',9600)

ser.write('hello'.encoder()) # to write data

ser.readline() # to read data

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines