Hi,
I thought it will be a simple test, but nothing works.
I want to test the simplefoc mini driver with an uno and a bldc motor. All of the components worked before in a simplefoc setup, but now I need to test another motor. Before connecting the new motor I want to be sure, everything is workin in the setup.
So I made a test with just a simplefoc mini, a standalone driver test, but not working.
Here is the code from the simplefoc website:
#include <SimpleFOC.h>
// BLDC driver instance
BLDCDriver3PWM driver = BLDCDriver3PWM(11, 10, 9, 8);
void setup() {
// pwm frequency to be used [Hz]
driver.pwm_frequency = 20000;
// power supply voltage [V]
driver.voltage_power_supply = 12;
// Max DC voltage allowed - default voltage_power_supply
driver.voltage_limit = 12;
// driver init
driver.init();
// enable driver
driver.enable();
_delay(1000);
}
void loop() {
// setting pwm (A: 3V, B: 1V, C: 5V)
driver.setPwm(6,6,6);
}
The board is powered by 12V.
All the pins are correct.
What could be the problem?