Jump to content

GPIO Uart on Tinkerboard


Tyler Vaught

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Important Information

Terms of Use - Privacy Policy - Guidelines