You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What it does really is it checks which direction the pendulum is moving `sign(pendulum.getVelocity())` and sets the very high voltage value `motor.voltage_power_supply*0.4` in the opposite direction (`-`).
228
228
It means that the algorithm is going to try to accelerate the movement of the pendulum (because the pendulum acceleration is caused as the reaction of the motor acceleration, but inverse direction).
@@ -268,7 +268,7 @@ And that is it guys we can read our pendulum angle, we can control the motor, an
268
268
// BLDC motor init
269
269
BLDCMotor motor = BLDCMotor(11);
270
270
// define BLDC driver
271
-
BLDCDriver3PWM motor = BLDCDriver3PWM(9, 10, 11, 8);
<blockquoteclass="info"><pclass="heading">Pin 13 or pin 11</p> We advise you to try first with the pin 13 configured and then with pin 11 if this does not work. Tested boards are Nucleo-F401RE - pin 13 works / pin 11 doesn't and Nucleo-F466RE pin 11 works/ pin 13 doesnt.</blockquote>
0 commit comments