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

Thread: Serial communication between instrument and PC through teensy 3.6

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

    Serial communication between instrument and PC through teensy 3.6

    Hello everyone,

    I am fairly new to this world and need some guidance for a project I have. The current setup I have might seem dumb but it's not permanent. It's just a step for me to learn how to establish communication between an instrument, a teensy board and my laptop.

    Here's the setup... I have an optical particle counter with a 3 pin rs232 serial port sending data at a 9600 baud rate. I have connected this port to a max3232 transceiver breakout (for rs232 to ttl conversion) which is then in turn connected to the serial port #2 on my teensy (pins 9 and 10). The teensy is then connected to my laptop with the USB cable.

    I have looked at different examples and the serial library but I am a bit lost at the moment. How do I make my teensy read the incoming data on serial port 2 and then send it directly to my computer so I can read it on the serial monitor?

    I hope my explanation is clear. Thank you very much for any help!

    Cheers,
    Roman

  2. #2
    Senior Member
    Join Date
    Oct 2015
    Location
    Roma (IT, EU)
    Posts
    339
    Assuming you're using Arduino IDE 1.8.12 with Teensyduino 1.52 installed, you could use the example:

    "Examples->04.Communication->Serial.passthrough"

    as a base, replacing "Serial1" with "Serial2".

  3. #3
    Junior Member
    Join Date
    Jun 2020
    Posts
    4
    Thank you very much XFer!

    It worked perfectly!

Posting Permissions

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