This repository contains the Vehicle Control Unit (VCU) software for the University College Dublin Formula SAE team, designed to run on the Teensy 4.1 microcontroller.
This is the new repository for our VCU system. We are migrating to the Teensy 4.1 platform for improved performance and capabilities. The Teensy 4.1 provides:
- 600 MHz ARM Cortex-M7 processor
- 8 MB Flash memory
- 1 MB RAM
- Multiple CAN bus interfaces
- High-speed serial communication
- Built-in Ethernet support
TEENSY/
├── src/ # Source code files
│ └── main.cpp # Main application entry point
├── include/ # Header files
├── lib/ # Project-specific libraries
├── test/ # Unit tests
├── platformio.ini # PlatformIO configuration
└── README.md # This file
- PlatformIO - Cross-platform build system
- Visual Studio Code (recommended) with PlatformIO IDE extension
- Teensy 4.1 board
- Install Visual Studio Code
- Install the PlatformIO IDE extension
- Clone this repository:
git clone https://github.com/UCDFS/TEENSY.git cd TEENSY
- Open the project folder in Visual Studio Code
- PlatformIO will automatically detect the project and install dependencies
- Build the project using one of these methods:
- Click the checkmark (✓) icon in the PlatformIO toolbar
- Use the command palette:
PlatformIO: Build - Run in terminal:
pio run
- Connect your Teensy 4.1 board via USB
- Upload using one of these methods:
- Click the right arrow (→) icon in the PlatformIO toolbar
- Use the command palette:
PlatformIO: Upload - Run in terminal:
pio run --target upload
To view serial output from the Teensy:
- Click the plug icon in the PlatformIO toolbar
- Use the command palette:
PlatformIO: Serial Monitor - Run in terminal:
pio device monitor
Add library dependencies to platformio.ini under the lib_deps section:
[env:teensy41]
platform = teensy
board = teensy41
framework = arduino
lib_deps =
# Add libraries here