Tyler Vaught Posted July 1, 2017 Posted July 1, 2017 Are the are UART Gpio pins enabled by default? If not, how do I enable them? Sorry but I'm a linux noob.
Yuvaram Singh Posted February 23, 2018 Posted February 23, 2018 (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 February 23, 2018 by Yuvaram Singh
Yuvaram Singh Posted February 23, 2018 Posted February 23, 2018 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
Recommended Posts