Skip to content

Adaptation of the LTC2946 I2C library for Teensy 3.6

License

Notifications You must be signed in to change notification settings

Robotics68/Teensy-LTC2946

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teensy-LTC2946

Adaptation of the LTC2946 I2C library for Teensy 3.6

Update of the excellent example coding for the LTC2946 power monitor by the OEM. Modified to work with Teensy 3.6 from the original code for Leonardo.

-Relocated the majority of the functions required to access the LTC2946 into a class to isolate from main program. All I2C functions are now private. -Increased functionality on the Teensy 3.6, enabled use of all 4 I2C wires. -Removed the rather confusing I2C address selection of the original code. -Added conversions by experimental constants, where the constants are determined by comparison with a know meter according to the following equation: Measured value = LTC2946 Raw Value * Constant Note: Each property (VIN, Current, Power) uses a unique constant.

Current functionality: -Continuous reading has full functionality for VIN, Current, and Power measurment. -SnapShot reading has full functionality for VIN and Current.

TODO: -Finish incorporating SnapShot functionality into this library. -Incorporate limit functionality. -Incorporate non-ground referenced measurement functionality.

Note: Requires the upgraded wire library for the teensy, i2c_t3.h, to fully utilize.

About

Adaptation of the LTC2946 I2C library for Teensy 3.6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages