Using usb as serial port and for uploading code

Status
Not open for further replies.

alan856

Well-known member
I'm sure this is explained somewhere here - but haven't found it yet!

My project will be with a Teensy3.5 and I'd like to use the USB connector with which code is uploaded as a serial port for the sketch the chip is running. I currently use a CP2104 to get usb/serial data from a Processing sketch on a PC to an Arduino - but it seems with the Teensy I could skip the CP2104.

So if the Teensy is running my sketch, and I want to reload a new version - how do I switch the context of the USB connector?

Tks!

=A. :confused:
 
Strictly speaking a Teensy is completely different from how a standard USB to UART adapter works, you can program it to do the same function however. To program a Teensy you don’t have to put it into any kind of special mode, all of that is handled by the boot loader which in most cases gets activated when you click upload on Arduino through the Teensyduino addon. However in situations where your Teensy is either frozen or you have some other code that bypasses the auto detect for the boot loader there is a program button on board that you can press to put into programming mode.
 
You can also run your whole processing sketch on the Teensy instead of just forwarding the messages to a separate Arduino.
 
Thanks for those details. I’m just beginning to “get” the wonders of the Teensy world. Wish I’d woken up to it about 3years ago... would have saved a lot of grief… LOL!

Strictly speaking a Teensy is completely different from how a standard USB to UART adapter works, you can program it to do the same function however. To program a Teensy you don’t have to put it into any kind of special mode, all of that is handled by the boot loader which in most cases gets activated when you click upload on Arduino through the Teensyduino addon. However in situations where your Teensy is either frozen or you have some other code that bypasses the auto detect for the boot loader there is a program button on board that you can press to put into programming mode.
 
I didn’t understand what Processing was, now that I do, I meant you could run your Arduino sketch on the Teensy instead of using the Teensy to transmit the serial messages to an Arduino. Which is probably already what you were trying to do in the first place by switching to Teensy.
 
Status
Not open for further replies.
Back
Top