I’m trying to use 3PWM mode with the DRV83053QPHPRQ1, but whenever I use the example code, my power supply running at 12V, says the chip is only using 0.05A. Either none of the mosfets are turning on, or all the low side mosfets are conducting to ground. The BLDC motor I am using is the irotor 5010-360kv.
The code I used is here:
#include <SimpleFOC.h>
// BLDCDriver3PWM(pwmA, pwmB, pwmC, (en optional))
BLDCDriver3PWM driver = BLDCDriver3PWM(3, 10, 6, 4);
void setup() {
// use monitoring with serial
Serial.begin(115200);
// enable more verbose output for debugging
// comment out if not needed
SimpleFOCDebug::enable(&Serial);
// power supply voltage [V]
driver.voltage_power_supply = 12;
// Max DC voltage allowed - default voltage_power_supply
driver.voltage_limit = 12;
// driver init
if (!driver.init()){
Serial.println("Driver init failed!");
return;
}
// enable driver
driver.enable();
Serial.println("Driver ready!");
_delay(1000);
}
void loop() {
// setting pwm
// phase A: 3V
// phase B: 6V
// phase C: 5V
driver.setPwm(3,6,5);
}
I’ve attached the schematic for my PCB here.