Tyler Vaught Posted July 1, 2017 Share 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. Link to comment Share on other sites More sharing options...
TonyMac32 Posted July 1, 2017 Share Posted July 1, 2017 Yes, they are enabled, UART2 is the terminal. Link to comment Share on other sites More sharing options...
Tyler Vaught Posted July 3, 2017 Author Share Posted July 3, 2017 Awesome thanks. Link to comment Share on other sites More sharing options...
Yuvaram Singh Posted February 23, 2018 Share 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 Link to comment Share on other sites More sharing options...
Yuvaram Singh Posted February 23, 2018 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts