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.

Creating an I2C motor controller

I am looking to create a low cost DC motor controller that communicates over I2C. From this I want to have two pwm outputs, in-phase, that will go to an H-bridge and possibly a single digital input for the speed feedback. All of this would receive speed requests from the master I2C controller and feed back the current speed. Is this possible with the MSP430 Series and how would I get started?

Thanks

-Chris

  • I think, the first step is to check if the same thing has already be done, which will spare you a lot of time and it is no sens to do and redo the same things all the time, juste have a look on the app notes; for example: SLAA120.pdf.

    Another step is to define is the two PWM is on the same frequency or not (same frequency = 1 timer with 3 CCR, different frequency = 2 timers), which will tell youyour hardware requirements. After that you could select a msp430, I2C + 2 PWM output + 1 input (finterruption?) + low cost + how may flash + ... With those data I'll select a MSP430F21xx. Perhaps with a good defined clock on timer input you could use only 2 CCR which let you use F20xx or even G22xx.

    Then, buy an developpment board of the selected uC and validate your analogical circuit not using external command, PWM is quite simple to set, and there is lot of information about it. And then define the custom I2C protocol, what command you send and when, and programm it.

    There is a lot of way for doing things.

  • Hi Chris,

     

    TI has an excellent Application Note on Stepper Motor Control with an MSP430; find it here: http://focus.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=slaa223&docCategoryId=1&familyId=342 .

    Chris, befor you start coding and/or develop your hardware you should have a look at the product range of trinamic (www.trinamic.com). The have a great range of integrated stepper motor controllers with I2C interface: http://www.trinamic.com/tmc/render.php?sess_pid=152.

    Rgds
    aBUGSworstnightmare

     

**Attention** This is a public forum