Code to controll an Brushless DC Motor with the mcu ATMEGA328p.
The code includes possibilities to detect if the BLDC Motor gets stuck and then it stops(does not work 100%). It is possible to rotate the motor in 2 different directions. Communication with the bldc controller happens through i2c.