Serial communication between instrument and PC through teensy 3.6

Status
Not open for further replies.

RomanP

Member
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
 
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".
 
Status
Not open for further replies.
Back
Top