Need help with L298N driver

So it’s been a while since I have done anything but I made some progress on my motor. I have been able to set up the hall sensors and get them work. so now I have been working on getting the L298N to work but when I run the code it just twitches. The scraped to gather code I have been trying to run is
#include <SimpleFOC.h>

// Hall sensor instance
// HallSensor(int hallA, int hallB , int cpr, int index)
// - hallA, hallB, hallC - HallSensor A, B and C pins
// - pp - pole pairs
HallSensor sensor = HallSensor(15, 16, 17, 10);

BLDCMotor motor = BLDCMotor(15);
// BLDCDriver3PWM driver = BLDCDriver3PWM(pwmA, pwmB, pwmC, Enable(optional));
BLDCDriver3PWM driver = BLDCDriver3PWM(21, 22, 23);

// Interrupt routine initialization
// channel A and B callbacks
void doA(){sensor.handleA();}
void doB(){sensor.handleB();}
void doC(){sensor.handleC();}

void setup() {
// put your setup code here, to run once:

sensor.init();
// hardware interrupt enable
sensor.enableInterrupts(doA, doB, doC);

// driver config
// power supply voltage [V]
driver.voltage_power_supply = 12;
driver.init();
// link the motor and the driver
motor.linkDriver(&driver);

// limiting motor movements
motor.voltage_limit = 12; // [V]
motor.velocity_limit = 5; // [rad/s] cca 50rpm

// open loop control config
motor.controller = MotionControlType::velocity_openloop;

// init motor hardware
motor.init();

}

void loop() {

motor.move(4);
Serial.print(sensor.getAngle());
Serial.print("\t");
Serial.println(sensor.getVelocity());
}
'So I don’t know what I’m doing wrong so any help would be appreciated.
thank you for reading :slightly_smiling_face:

Hey, is it the motor from the pictures here?
https://community.simplefoc.com/t/3d-printed-bldc-out-runner-motor/726

From the pictures it looks to me like it has 9 pole pairs, not 15?

Which MCU are you using, the UNO?