Skip to content

Instantly share code, notes, and snippets.

@willzhang05
Last active March 7, 2020 22:54
Show Gist options
  • Save willzhang05/efaa5ebf3ffa80b3db9746b08e624edd to your computer and use it in GitHub Desktop.
Save willzhang05/efaa5ebf3ffa80b3db9746b08e624edd to your computer and use it in GitHub Desktop.
PCBv3 Development Environment Setup

PCBv3 Development Environment Setup

The KiCAD PCB design files and the ECU code are located in the EmbeddedSystem repository.

Code Development

  • Install the Arduino IDE.
  • Install the Teensyduino add-on.
  • Go to the Teensyduino install location and delete the included version of FlexCAN.
    • On Linux, this is located at /usr/share/arduino/hardware/teensy/avr/libraries/FlexCAN.
  • Replace the FlexCAN folder by cloning the fork of the FlexCAN library by pawelsky into the same location.
  • To build the lights code, the Arduino "Chrono" library will need to be installed.
    • In the Arduino IDE, go to Tools > Manage Libraries.
    • Search for "Chronometer" and install the "Chrono" library by Thomas O Fredericks and Sofian Audry.
  • The ECU code is located inside the ECU folder of the main EmbeddedSystem repository.
  • Sample code in KLS.ino for testing the KLS motor controllers is in the KLS motor controller library.

PCB Design

  • Install KiCAD.
  • The KiCAD project is located inside the ECU_PCB folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment