View Single Post
  #4   Spotlight this post!  
Unread 05-04-2016, 18:44
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Serial Port Communication

Quote:
Originally Posted by Tyguy56 View Post

Code:
    import serial
    ser = serial.Serial(
        port='/dev/ttyS0',
        baudrate = 115200,
        parity=serial.PARITY_NONE
        stopbits=serial.STOPBITS_ONE,
        bytesize=serial.EIGHTBITS
        )
    if(ser.isOpen()):
        ser.close()
    ser.open()
    ser.write('hello'.encode('utf-8'))
Uhm your first post said 9600 baud.
Are you using 115200 to the Arduino but only 9600 between the Arduino and the Tegra?
Reply With Quote