Skip to content
Code for interfacing with KLS motor controllers using Teensy 3.6 for the UVA Solar Car project
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
photos
shield
translator
.gitignore
KLS.cpp
KLS.h
KLS.ino
README.md
pindef.h

README.md

KLS

Code for interfacing with KLS motor controllers using Teensy 3.6 for the UVA Solar Car project.

Contents of this repository

  • "kls.h" contains the class definition for KLS
  • WIP

KLS Motor Controller Library

Miscellaneous Notes

Some things we've learned:

  • Bit stuffing: for synchronization purposes, if there are 5 bits of the same value sent consecutively, then a bit of opposite value is inserted ("stuffed") after those 5 bits
    • See photos>bit_stuffing.PNG
  • Connecting Teensy 3.6 to MCP 2562 Transceiver:
    • See photos>Transceiver_Teensy_Connections.PNG
    • do not forget to ground the STBY pin

Some resources we've found helpful:

  • General CAN background (lower-level info starting around 11 minutes in)
  • Orion BMS Wiring information: Solar Car Google Drive: Orion BMS Main IO Connector, Orion BMS Wiring Guide
  • Orion BMS CAN information: Solar Car Google Drive: operational_manual.pdf, Orion BMS Software Utility
  • MCP 2562 Datasheet
  • Software for Orion BMS: Orion BMS Utility
You can’t perform that action at this time.