forum:
used example code and changed the visible parameters for the infileon TLE9879QXA40 motor shield, motor only jolts,motor used: Turnigy Aerodrive SK3 3530-1460kv Brushless Outrunner Motor using arduino uno & infineon bldc motor shield with 6 poles connected to a 12volt battery or voltage supply in lab.
why? What parameters should i change?
#include "TLE9879_Group.h"
// Include the Shield library to your Arduino project
TLE9879_Group *shields;
// Declare Shield group object#
void setup()
{
shields = new TLE9879_Group(1);
//Initialize shield group as object for board 1.
shields->setMode(BEMF);
//Sets mode to BEMF on board 1.
shields->setMotorSpeed(900);
//Sets motor speed on board 1.
shields->setParameter(BEMF_POLE_PAIRS,6,BOARD1);
//Assigns number of pole pairs.
shields->setParameter(BEMF_SPEED_TEST_ENABLE,1,BOARD1);
shields->setMotorMode(START_MOTOR);
delay(5000);
shields->setMotorMode(STOP_MOTOR);
}
void loop()
{
}