This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/DRV8350S-EVM: Configuring DRV8350S-EVM for sensored mode

Part Number: DRV8350S-EVM
Other Parts Discussed in Thread: MSP430F5529

Tool/software: Code Composer Studio

Hello,

I'm currently working with DRV8350S-EVM and trying to operate it in sensored mode. In my setup I have downloaded the GUI and I'm giving 5 V supply to hall sensor using the on-board option available through the 3 pin header. When I start the GUI the driver-motor system is automatically configured as sensorless after COM port detection and enabling, after which the sensored option is not visible in the GUI.

I wanted to know whether there are any other hardware or software configuration that I'm missing in order for the EVM to work in sensored mode?

Regards,

Abhishek K Singh

  • Hello Abhishek,

    The GUI only works with sensorless FOC. You need to go to the EVM page and download the sensored FW. I'll provide the link here: 

    https://www.ti.com/lit/zip/slvc755

     

    Note, the firmware is not in a GUI type format. It uses Code Composer Studios and you will be modifying code the code directly to get it the motor to spin. Installation for CCS and the rest of the FW is found in the user guide, section 3: 

    https://www.ti.com/lit/ug/slvub78a/slvub78a.pdf

     

    More information about spinning the motor and the sensored FW is in the sensored software guide: 

    https://www.ti.com/lit/ug/slvub82/slvub82.pdf

     

    Best,

    -Cole

  • Hello Cole,

    Thank for replying to my query.

    1) In the GUI option for sensored mode is given for DRV8350S-EVM.

      

    2) I wanted to know if I can use GUI in Sensored mode somehow? Is it possible to if I upload sensored code to the MSP430 micro-controller through the firmware and then start the GUI?

    3) Also is it possible to operate in sensored mode use sensorless page of GUI e.g. can I use 1 x PWM mode in sensorless condition but the Hall sensor signal are going directly to DRV8350S motor driver? There are some resistors namely R46, R48 and R51 provided on board which are DNP and if 0 ohm resistor is populated at their place then the hall sensor signal will be directly connected to the motor driver. If I chose 1 x PWM mode and hall sensor signals are going directly to the motor driver then will this create any issues?

    4) In section 4.3 of DRV835x-EVM user guide it is mentioned that:

    "If using the sensored firmware on the MSP430F5529, connect a brushless DC motor Hall sensor inputs to hall sensor header and solder the unpopulated R82, R84, and R86 0 ohm resistors. If using sensorless firmware, this header can be left unconnected."

    I was unable to find R84 and R86 on my board and R82 was already connected. Do I have to consider this also when using sensored mode?

    Regards,

    Abhishek

  • Hello Cole,

    I found some errors in the sensored code when I was building the project "DRV8350X_MSP430F5529_Trapezoidal_Sensored_BLDC". I'm attaching the screenshot of error:

    I changed the identifier name to "sensoredTrapController" after which upon building this error was not being shown. Is what I gave done correct?

    Can you please send me the DRV8350X sensored project?

    Also after downloading the sensored code on the MSP430 using CCS can I use GUI in sensored mode? I saw a parameter called ALGO_ID which is used to identify the type of firmware on the MSP430, Is the GUI using this parameter to identify the EVM in sensorless mode automatically upon USB connection?

    Regards,

    Abhishek

  • Hello Abishek,

    I plan to give a better reply before 12/18/20.

    You're right, I am mixing up part numbers from the same family.

    If you're intent is to use the 1x PWM mode, feel free to populate the R46, R48 and R51 and note the PWM signal needed for INHA. The CCS firmware projects are used for more involved commutation.

    Best,

    -Cole

  • Hello Cole,

    Thank you the earlier reply, but can you elaborate on the issues which I had raised.

    Thank you,

    Abhishek

  • Hello Abhishek,

     

    Sorry for the delay.

    Here's a simple list of steps to help you (but mostly others) to use sensored FW with the EVM:

    1. Follow the Hardware set up in the EVM user guide. There is an error in documentation about the HW set up. So please ignore the note regarding “R82, R84, and R86” as they do not exist on the PCB.
      1. Schematic and other files can be found in design files: www.ti.com/.../slvc763
      2. (maybe you haven't done this yet)
    2. Download CCS,
      1. instructions in the EVM user guide
      2. (like you've already done)
    3. Download FW from product page
      1. Link as of 2020: www.ti.com/.../slvc755
      2. (like you've already done)
    4. Import the sensored project into CCS,
      1. instructions in the EVM user guide
      2. (you've already done)
    5. There are errors in the sensored FW. Specifically, change the SensorlessTrapController variable to SensoredTrapController in the Init.c file. Build the project, there should be no errors after that
      1. Image shown in this post and others on E2E
      2. (as I believe you've you already done)
    6. The sensored FW uses 6x PWM mode by (which means the hall sensors go to the MSP430) by default
      1. If you would like to change this to 1x PWM mode, populate resistors R46, R48, an R51 with 0 ohm resistors and change PWM_Mode variable in the Init.c file to 0b1 instead of 0b0
      2. If you are unsure, please leave it to 6x PWM by default

    7. Flash or run the sensored project onto the MSP430, some directions in the EVM user guide but all you needs is the USB cable
      1. (as I think you've alluded to but maybe not done yet)
    8. Opening the GUI should allow the Sensored part of the GUI to be loaded
    9. Further modifications to FW can be done directly in code composer studio
      1. Sensorless user guide: www.ti.com/.../slvub82

     

    This firmware only refers to the sensored trapezoidal commutation. This hardware does not support FOC. To reiterate, the DRV8350x does support FOC but the specific purchasable HW, DRV8350S-EVM, is not compatible.

     

    Best,

    -Cole

  • Hello Cole,

    Thank you for clearing my queries on DV8350S-EVM. I have followed the steps as given by you and I'm ale to access "sensored" mode of GUI after downloading sensored FW on the EVM.

    I tested the performance by trying to run a Hall sensored BLDC motor. But it was showing "hall sensor is invalid" in Fault detection on GUI. Then I tried calibrating the hall sensors by using "Motor calibration" option in GUI, but i required tuning of hall calibration parameters. I tried tuning but sometimes "over-current fault" and other times "calibration unsuccessful" was displayed in Fault detection. I tried searching any detail on hall calibration in the documentation of EVM but was unable to find one.

    Can you please send some documentation on Hall calibration in this EVM. 

    Regards,

    Abhishek 

  • Hello Abhishek,

    The team is out of office on 12/24 and 12/25 due to public holidays. Please expect a response on 12/28.

    Thanks,

    Matt

  • Hello Abhishek,

    Let's verify some hardware to start.

    Can you R45, R43, and R42 are populated with 1k ohm resistors? If they are populated, can you spin the rotor by hand when the board is powered and ensure hall A, B, and C toggle as expected? We're assuming the hall sensors are non-inverting outputs.

    After that can you verify that the phases are connected to the corresponding hall sensors correctly? We have an FAQ on the criteria, you just need an oscilloscope. 

    [FAQ] How to Ensure Correct Alignment of Hall Sensors and Your Motor - Motor drivers forum - Motor drivers...

    e2e.ti.com
    If your motor is spinning correctly in one direction and not the other, One cause might be that your hall sensors are not properly aligned on your motor. This causes
     

    The calibrate halls function essentially tries to align the motor by pulsing some current through it to make the rotor align to known position where expected hall signals will be known. If they do not match, the error will be thrown. 

    Best,

    -Cole

  • Hello Cole,

    Thank you for your help regarding DRV8350S-EVM

    Regards,

    Abhishek K SIngh