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.

ENERGIA: Programming Sensored BLDC Motor via Energia using DRV8323RS + MSP430F5529 MCU

Part Number: ENERGIA
Other Parts Discussed in Thread: MSP430F5529, , BOOSTXL-DRV8323RS, DRV8323R

Hi,

I am currently working on  a project to develop a motor driver for sensored BLDC motor.

I was recommended DRV8323RS evaluation board to be used together with MSP430F5529 MCU.

I found out about Energia and since I do have experience programming in Arduino, I decided to use Energia to write the codes instead of CCS which I am unfamiliar with.

Using these boards, I was able to get the hall sensor out 001, 010, 110, etc using digitalRead. With that, it suppose to give PWM signals to 2 of the phases to get the motor running. However, the motor is not rotating.

I double checked on the motor timing algorithm to send PWM and it seems fine. I checked the gate headers in DR8323RS and it out giving out LOW (0V). I was using 6xPWM control type

I guess the control logic is not sent successfully to the board.

Question:

1) Do I need to declare any variable for SPI communication in Energia in order to get the motor to receive the control logic?

2) If yes, can provide an example on how to do so?

I am quite new to programming a BLDC sensored motor driver and not sure about SPI communication using DRV8323RS EVM board.

appreciate any help. :)

Thanks,

Thena

  • Hey Thenagharan,

    I just took a quick look ath the BOOSTXL-DRV8323RS EVM and User's Guide. It looks like the MSP430F5529 would need to generate a PWM signal and possibly do some configuration via the SPI. There is an example project walkthrough in section 3 of the User's guide (although it doesn't use Energia.) Have you tried running that example just to see it working?

    For your code project, it sounds like you checked the PWM signals. Are they working as you expect?

    As for the SPI communication, are you having trouble setting it up in Energia or are you asking what to send to the DRV8323R driver? If the latter, I would refer to the User's Guide.

    Thanks,
    JD
  • Hey Thenagharan,

    Were you able to get this working?

    Thanks,
    JD