2. Teensy - iangohy/SUTDoggo GitHub Wiki

2.1 Preparing your computer

The code does not have a .ino file. Instead we use PlatformIO to compile all the code in the src and lib folders and upload it to the teensy. This guide assumes you are running Ubuntu 20.04.

2.1.1 Install VSCode

  1. Download and install official Microsoft Visual Studio Code. PlatformIO IDE is built on top of it.

2.1.2 Install PlatformIO

  1. Open VSCode Extension Marketplace.
  2. Search for PlatformIO IDE extension and install the PlatformIO VSCode Extension.

2.1.3 Download udev rules

  1. Open Linux udev rules (Other files > Linux udev rules).
  2. Save 00-teensy.rules to /etc/udev/rules.d.

2.2 Build and Upload

  1. Open .../SUTDoggo/Doggo in VSCode.
  2. Plug in the Teensy using a USB cable.
  3. Press Build (tick in the bottom left bar of VSCode).
  4. Press Upload (right arrow in the bottom left bar of VSCode).

Alternatively, run platformio run --target upload on the root Doggo folder (.../SUTDoggo/Doggo) that contains the platformio.ini file.

2.3 Teensy Connections

All connections to the Teensy are shown below for reference. Subsequent sections will show the connections of each component.

Teensy connections