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
- Download and install official Microsoft Visual Studio Code. PlatformIO IDE is built on top of it.
2.1.2 Install PlatformIO
- Open VSCode Extension Marketplace.
- Search for
PlatformIO IDE
extension and install the PlatformIO VSCode Extension.
2.1.3 Download udev rules
- Open Linux udev rules (Other files > Linux udev rules).
- Save
00-teensy.rules
to/etc/udev/rules.d
.
2.2 Build and Upload
- Open
.../SUTDoggo/Doggo
in VSCode. - Plug in the Teensy using a USB cable.
- Press Build (tick in the bottom left bar of VSCode).
- 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 theplatformio.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.