Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Problems_Serial1

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    4

    Problems_Serial1

    Hi,
    I was testing the serial1 teensy 3.0 with the following code:

    Code:
    void setup()
    {  Serial.begin(9600);
       Serial1.begin(9600);
       
    };
    void loop(){
    Serial.println("arduino");
    Serial1.println("arduino");
    
    delay(1000);
    };
    I used the trendnet TU-S9 to read the serial1 and get this:
    Click image for larger version. 

Name:	serial.png 
Views:	134 
Size:	10.4 KB 
ID:	844

    i dont understand why write that. I'm printing "arduino"

    Thanks for any help

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,922
    Teensy 3.0 has 3.3V TTL level signals.

    The TU-S9 has +/- 12V RS232 level signals.

    Are you using a MAX232 or similar TTL to RS-323 chip to convert Teensy's signals to the type needed for that RS232 cable? This serial monitor output looks like the small signal from Teensy3 is being received by the TU-S9, but the TTL level output uses the opposite polarity. Even just a logic-level inverter might do the trick, if you don't have a proper RS-232 driver chip.

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Posts
    4
    Thanks for the fast reply
    I will use your suggestions to solve the problem
    Ty

  4. #4
    Junior Member
    Join Date
    Apr 2019
    Posts
    1
    I am also this type of problem, shall i provide my string here
    Last edited by defragster; 04-16-2019 at 07:48 AM. Reason: removed link

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    8,337
    Quote Originally Posted by Brian14 View Post
    I am also this type of problem, shall i provide my string here
    Text and details can be posted here if not SPAM or bogus links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •