This code demonstrates sensorless commutation of a brushless dc motor, as well as twi bus communication and current limiting (emergency shutdown).
It's been designed to work with the "mikrokopter" motor control hardware, which can be obtained from http://www.mikrokopter.de/.
(In particular, the TWI communication is compatible with the communication protocol employed by the flight control used on mikrokopters, and the microcontroller is assumed to be an atmel atmega8)
Source code