Yeah, just add one of those cheap Chinese USB serial dongles, and wire it to one of the serial ports on the Teensy.
Beware that, for that setup, making sure the baud rate matches up is actually necessary!
For the SerialUSB connection, the baud rate configured doesn't matter, because USB always runs its own communication at full speed.
So, if you set the serial port on the PC to 115200 bps:
Code:
# stty 115200 < /dev/ttyUSB0
# dd if=/dev/ttyUSB0 bs=1
then you write to it on the Teensy like so:
Code:
Serial2.begin(115200);
Serial2.println("hello, world");
This is assuming that you wire the USB serial dongle to the RX2/TX2 pins on the Teensy.
Bookmarks