MikroKopter

I2C bus protocol for BL-Ctrl

This describes the I2C-Protocol for the brushless controller

The I2C-protocol is compatible to BL-Versions 2&3

Setpoint

BL-addresses

reading

If you read from the BLs:

Read from BL-addresses (0x51, 0x53, 0x55, ...) -> the lower bit means: read now

The data comes in this order

current

unsigned int BL3_Current(unsigned char who) // in 0,1A 
{
 if(Motor[who].Current == 255) return(0); // invalid
 if(Motor[who].Current <= 200) return(Motor[who].Current); else return(200 + 10 * ((unsigned int)Motor[who].Current-200));
}

state

For the state:

{i} note: the Status is sometimes also called "MaxPWM" in the sourcecodes

MikroKopter: BlCtrlProtocol (zuletzt geändert am 01.02.2019 12:05 durch HolgerB)