Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Firmware part:

SF_InterfaceINIT() is not used will likely cause a hardware fault

global and local scope variables will cause the data used in the function, not the one That contains the actual data.

When using an array: PLZ put the index in a variable with a meaningful name; otherwise, the code is not maintainable.

The state machine is a loop so the last state will need to call the first state

When just cloning the ZP_Proto_Port from the git, we need to init the submodule.

The dshot wave needs to measure with the PWM signal by configuring the trigger mode.

Be extremely careful when using the oscilloscope to measure shot in run mode may have some reason to cause the STM32 to brick.

Hardware issue

The ESC has a VCC output which is 12v, this is of no use plus it may burn the Nucleo if connected to the pin

...

Burning a board may cause the burning of other related thingssensor and board, which is unfavourable.

Do NOT expose the connector and DO NOT short the board when power is ON during testing => this will directly lead to burning the board.

reference:

Brushless motor with ESC: https://howtomechatronics.com/how-it-works/how-brushless-motor-and-esc-work/