Firmware Settings

This page outlines the SPI configurations for the DRV gate driver, and the component selections for the circuitry surrounding the MCU

Phase VSENSE Feedback:

Dead Time Settings:

  • Under the conditions specified in the table below, those are the rise, fall, and delay times for the chosen power MOSFET.

  • When selecting a dead time, we must ensure that it is greater than the sum of the turn-off time and fall time of the HS FET, and then turn-on time and rise time of the LS FET, or vice versa. When adding the times together we get 22.6ns

image-20240713-225845.png
  • When setting the dead time for the gate driver over SPI, a value of either 50ns or 100ns seems to be good. We do not want to set this value too high or else we will have no current in our motor windings for too long as it can affect our commutation timing, our power efficiency, our response time, and our heat generation

image-20240713-230820.png

 

FOC Archive

Current Sense (Only used for FOC):

  • For the SPI version of the IC that we have, you do not use a resistor to set the gain, instead you set a bit in the chip:

  • To select a current sense resistor, we need to consider the power loss throough the resistor and make sure it’s rated for it, as well as the voltage drop across the resistor that will be sent to the CSA so that we know we are making the most out of our 0 to 3.3V range.

  • 2mohm 5W: WSLF25122L000FEB | DigiKey Electronics

 

STM MCU Clock:

  • In the STM Motor Control Workbench software, we are configuring our MCU to be using an external oscillator with a frequency of 8MHz.

  • IC: