Skip to content

UCDFS/TEENSY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TEENSY VCU System

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.

Overview

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

Project Structure

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

Requirements

Getting Started

Installation

  1. Install Visual Studio Code
  2. Install the PlatformIO IDE extension
  3. Clone this repository:
    git clone https://github.com/UCDFS/TEENSY.git
    cd TEENSY

Building the Project

  1. Open the project folder in Visual Studio Code
  2. PlatformIO will automatically detect the project and install dependencies
  3. 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

Uploading to Teensy 4.1

  1. Connect your Teensy 4.1 board via USB
  2. 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

Serial Monitor

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

Development

Adding Libraries

Add library dependencies to platformio.ini under the lib_deps section:

[env:teensy41]
platform = teensy
board = teensy41
framework = arduino
lib_deps =
    # Add libraries here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors