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

Thread: Serial2 show up on Serial Monitor for Teensy 3.0

  1. #1

    Serial2 show up on Serial Monitor for Teensy 3.0

    Hi,

    I am new to the teensy 3.0 and I had a question about the three UART ports on the teensy 3.0. I know that if I were to write Serial.begin('baud rate') I would be able to see the serial data on my serial monitor. However, I don't know how to do this when utilizing multiple serial pots on the teensy. Currently I have a GPS communicating on the RX lines of Serial1, and a openlog which records all sensor data through Serial2. Is there any way I can view this data that is being recorded while the program is running, like the serial monitor, instead of taking out my microSD and checking the data after I run the program for a couple seconds? It would be sooooo much easier to debug my code and make sure I am on the right track.


    Any advice is appreciated.

    Thanks!

    -Anthony

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,108
    If you are writing ascii strings to the Serial2 log, can't you just write them to Serial as well until the code is debugged?

    Pete

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,171
    You can use another Teensy running the example from File > Examples > Teensy > USB_Serial > USBtoSerial. Just connect the RX pin on that other Teensy to the serial line you want to monitor, and then run a terminal emulator (Hyperterminal, Teraterm, Seyon, Minicom, etc) or even Arduino's Serial Monitor (you can run 2 separate copies of Arduino if you like) to view the data from the 2nd Teensy.

    You can also use one of these cables, which is a USB-serial converter. But they're more expensive than another Teensy, and not nearly as useful for reusing when you want to do something else.

    http://www.digikey.com/product-detai...id=PLA_1836393

  4. #4
    Junior Member
    Join Date
    Jun 2014
    Location
    Japan
    Posts
    16
    Anthony,

    I am trying to setup Openlog for recording radiation data for Safecast (http://blog.safecast.org). We have a FIO running fine, but we would like to move to a Teensy system. Do you have a sample file I can use for setting up OpenLog with a teensy?

    regards
    rob

Tags for this Thread

Posting Permissions

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