A simple I2C library for ESCs using the Blue Robotics version of SimonK's TGY firmware (https://github.com/bluerobotics/tgy). This library supports the BlueESC, but also the Afro Nfet 30A. I2C is an alternative interface for micro-controllers, rather than using PWM (as a servo) -- this provides some additional features like temperature level, RPM, etc.
Dependents: SimonK_I2C_ESC_Example
Example program here:
Import programSimonK_I2C_ESC_Example
Simple example for the SimonK_I2C_ESC. Tested on the FRDM K64F.
Additional guidance is provided in the Wiki
Diff: SimonK_I2C_ESC.h
- Revision:
- 4:014606ea57a3
- Parent:
- 3:d74e7df56379
--- a/SimonK_I2C_ESC.h Fri Apr 01 20:25:35 2016 +0000 +++ b/SimonK_I2C_ESC.h Sat Apr 02 11:44:14 2016 +0000 @@ -84,7 +84,7 @@ char _address; unsigned short _voltage_raw, _current_raw, _temp_raw; short _rpm; - unsigned short _rpmTimer; + int _rpmTimer; Timer mbed_rpm_timer; char _identifier; char _poleCount;