In this repository, I will share the code related controlling the speed controlling aspects of BLDC motor. I will give the details to calculate the speed of BLDC motor and control the speed variable in real time with the basic microcontrollers.
For controlling the BLDC motor speed, I developed some code for microcontrollers the devices ATSAM3X8E and Atmega2560.
Connections for Arduino Due:
The connection for the gate driver board is.
The Rotary Encoder signals are connected as
Connections for Arduino Mega: