Hi there,
I want to write a code, which starts my BLDC. I want to set a voltage and a frequency as two desired values. With the PWM the motor should start from zero to the desired values like a ramp function. The code should work like a frequency converter.
For the code I toke the lab 11 and added some lines. When I choose a small voltage (3 volts) and a small frequency (10 Hz) the motor starts spinning. But the code should work with every frequency and voltage.
I hope there is someone with an helpful idea.