Main Menu

search

You are here

Arduino Teensy Operation

[last updated: 2024-09-12]
Arduino boards
Teensy home page
-----

  • Operation:
    • The Teensy Loader is an App that gets installed when you install the Teensy boards manager into your Arduino IDE.
      • AFAIK it can be functionally ignored.
      • It is run (ie. opened) whenever you click Verify or Upload in the Arduino IDE.
        You will see an icon that looks like a Teensy pcb in your task bar. If you click on the icon it will open a tiny window with an image telling you to press the PB on the Teensy to manually enter program mode.
      • At this time I don't know when or why you'd do that.
      • As I said, I ignore it.
      • That said, it does happen that a program will not upload until after you have pressed the Teensy PB.
        I have not dug in, taken enough notes, to understand when that happens.

    • On first powering on a new Teensy 4.0, the on-board orange LED (near the PB) should repeatedly blink, long blinks about every 2 sec.
      If it does not, try resetting the internal blink program:
        Press and hold the PB. After 15 seconds, the on-board red LED (near the USB connector) will flash quickly. Release the PB.
        The red LED will turn on bright when you release the PB, and will stay on about 12 sec, during which time the Teensy 4.0 will completely wipe its flash memory and restore the flash memory to a known-good copy of the LED blink program.
        When it finishes, the red LED will go out, and the orange LED should resume its proper 2-sec heartbeat blink program.

    • With IDE running, plug in Teensy.
      Select: Tools --> Board --> Teensy --> Teensy 4.0
      Confirm: Tools --> USB --> serial
    • Select: Tools --> Ports --> teensy ports --> select what's available
        If teensy ports is not listed as an option,
        it's possible your USB cable is "charging-only", ie. not a "data" cable.
    • After editing the program in the IDE if desired,
      click Upload in IDE.
        As noted above, the "Teensy loader" window will open.
        If this is a new, un-used Teensy, the loader window will flash:
          bootloader update, then
          reboot ok

      The program should then load and run.

    -------------------------------------------------------------------------------------

  • Serial monitor does not work like other boards...
    • Here's what worked:
      • Open IDE to desired program
      • Connect Teensy
      • Tools > Board > Teensy 4.0
      • Tools > Port
        Notice that two selections are possible here, one for the Teensy, and one for the Serial Port
        select the serial port
          [what if there are more than two??]
      • Tools > Serial Monitor
        I usually have to select this twice to get it to come on.
    • also:
      closing and re-opening the serial monitor does Not restart the Teensy, like it does on other Arduino boards
        [so how DO you restart/reset it??]

    • Serial monitor links:

    -------------------------------------------------------------------------------------

  • i2C:
    • 3 ports for I2C (signals SDA & SCL) are available. The Wire library is used for I2C. Each I2C chip connected to the same SDA/SCL wires needs a unique address. Multiple I2C ports allow you to easily use more than 1 chip with the same address.
    • All I2C ports support 100, 400, and 1000 kbit/sec speeds.

    -------------------------------------------------------------------------------------

  • Teensy RTC:

    -------------------------------------------------------------------------------------

  • EEPROM:
    • The Teensy 4.0 has 1080 bytes of EEPROM available.
    • Operation uses the Arduino EEPROM library, which is included in the IDE.
        #include <EEPROM.h>

      See link below for more information.

    • EEPROM LINK:
      https://www.pjrc.com/teensy/td_libs_EEPROM.html

    -------------------------------------------------------------------------------------

.

.

.

eof