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.

new Instant spin user, need some basic compiled code (with GUI and without GUI) - to spin 3D motor

Other Parts Discussed in Thread: CONTROLSUITE, DRV8301, BOOSTXL-DRV8301, LAUNCHXL-F28027, LAUNCHXL-F28027F, MOTORWARE, TMS320F28027F, TMS320F28027

posted on another forum, and moved here:

Now another question please, the motorware GUI is working now.

However I have one board C2000 - F28027 (without the ROM that have all features)

I have understood that I have also files in this version that can run 3-phase motor sensorless.

I would like to get a working example - in which I define very simple inputs, and the SW will run DRV8301 according to this input (e.g. RPM, Accelaration etc.)

Do I have somewhere a working example (that compiled clean) ?

Also about GUI - do I have tools for GUI ready - so I can transfer data through a GUI that I am building as inputs for the CPU?

Also another example that just make the correct PWM (for 3-phase motor, usning TI ready sensorless libraries) for mosfet (without DRV8301) - meaning just GPIO out, with TI instant-Spin technology?

Thanks,

Roee

  • Roee Bloch43 said:

    However I have one board C2000 - F28027 (without the ROM that have all features)

    I have understood that I have also files in this version that can run 3-phase motor sensorless.

    I would like to get a working example - in which I define very simple inputs, and the SW will run DRV8301 according to this input (e.g. RPM, Accelaration etc.)

    There is not a ready example that works in this configuration or with the features all implemented. That is the job of you, the embedded engineer.

    if you want to use our standard sensorless FOC that is include in controlSUITE with an example that runs on F28035 MCU with DRV8301 EVM

    C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\PM_Sensorless

    you have to add your own interface in how you want to get input commands from the user/master: UART, JTAG, POT, I/O, etc.

    Roee Bloch43 said:
    Also about GUI - do I have tools for GUI ready - so I can transfer data through a GUI that I am building as inputs for the CPU?

    GUI Composer is included in CCSv5 and is available from the App Store in CCSv6. This is what we use to build the latest GUIs (you'll see some GUIs in controlSUITE from a tool called Crosshairs Embedded, they are no longer in business)

  • Hi,

    I don't need all the features!

    I need some very basic example that can active 3-phase motor with a fix RPM, using DRV8301 board.

    I don't even know how to start - I need just very basic code that will implement the PWM for DRV8301 board

    Any example that compile and works will be helpfull

    Thanks,

    Roee

  • Roee,

    There is NOT a software example for

    LAUNCHXL-F28027 + BOOSTXL-DRV8301

    The easiest path forward for you is to purchase instead

    LAUNCHXL-F28027F and plug-in to your existing BOOSTXL-DRV8301

    This board is enabled with InstaSPIN-FOC version of the MCU. You can then run the MotorWare projects, ID the parameters of the motor, and tune the speed controller, and have a wonderful sensorless motor control system that you can communicate to through USB-JTAG in about 10 minutes (half day max if you work throught the labs slowly).

  • Ok,

    So here is next questions:

    1. Is it possible to build sensorless control to 3-phase motor using F28027 (without the F) with inside feature of this chip? (meaning other open coded blocks that I can use)

    2. With the F version - how can I control the motor without GUI  - like some header file that defined the GUI paramaters -> so the system may work fine without connecting it to computer?

    ---

    I think that TI should put some example for this chip!

    Thanks,

    Roee

  • Roee Bloch43 said:
    1. Is it possible to build sensorless control to 3-phase motor using F28027 (without the F) with inside feature of this chip? (meaning other open coded blocks that I can use)

    yes

    you can use the examples we give in controlSUITE, all of which are based on the big brother part F28035

    the changes to run on F28027 are minor

    Roee Bloch43 said:
    2. With the F version - how can I control the motor without GUI  - like some header file that defined the GUI paramaters -> so the system may work fine without connecting it to computer?

    you have to add that code. Are you using a POT? A serial port from another processor/computer?  Push buttons.

    Roee Bloch43 said:
    I think that TI should put some example for this chip!

    There are plenty of examples on the F28035

    Almost all new examples focus on InstaSPIN-FOC and -MOTION because they are far superior solutions to anything "open" in controlSUITE.

  • yes I will use push-buttons for:

    1. Speed up

    2. Speed down

    3. Run stop

    how to start search for the changes between F28035 and F28027?

    Is it Pins-out? or also registers changes and bits ?

    Is there any comparasion table - that might help me do the changes?

    Thanks,

    Roee

  • let's step back and talk about what you are trying to do with your motor. Let's focus on the motor control part first and then decide the best path forward.

    What are the motor control care abouts? Is there already a specific motor you are using? What is the motion / application profile for speeds (or torque)?

  • Hi,

    The motor is 3-phase Segway motor.

    I am going to use it for a small car.

    The RPM - can move between 100-2000 RPM - this is what I need from my control system.

    you can see the motor here:

    http://www.youtube.com/watch?v=m2OlMlo70vk

    I have controlled it with the ready version of TMS320F28027F version with the ready GUI - which I don't want to use

    Also I want to use it at version TMS320F28027

    I will need to run 2 motors - seen that there are 8 PWM's this is enough - since I need only 3 for one motor

    But first thing I want to see one motor running (may be it will be good enough) with DRV8301 board

    Thanks,

    Roee

  • Roee,

    This confuses me...you already ran the motor very well with the F28027F and InstaSPIN-FOC....why would you revert to another control technique?  Do you understand how challenging the control portion is?  Maybe not...

    We don't support another control technique with the BOOSTXL-DRV8301 because frankly there is no reason to....if someone has control experience they will bring that experience to the project. If they don't, they will get best/easiest performance from using InstaSPIN-FOC (and it is MUCH easier for us to create and support for a wide variety of motors).

    Roee Bloch43 said:
    I will need to run 2 motors - seen that there are 8 PWM's this is enough - since I need only 3 for one motor

    No, you need 6 PWM outputs (from 3 ePWM modules) to control each 3-ph inverter if using the DRV8301.

    It's not just about PWM channels either. You need to analog feedback from each inverter.  And there is also a MIPS / cycle count consumption issues.  And the fact that with the 28027F the library doesn't even support 2 motors from the same chip.

    Lastly, if you are trying to control two of these motors in tandem to produce traction force you are going to run into some major challenges doing this sensorlessly:

    1. speed/torque synchronization of two wheels....you have to be nearly perfectly in synch or the vehicle will have terrible torque perturbations (jerk, go of course, etc)

    2. start-up process in a traction application will often be under a very high load, requiring very high torque generation under SMOOTH rotation. This is extremely challenging for a standard sensorless solution (why we are working on additional algorithms to enhance this capability)

    If this is for a hobby project I recommend either using motors with rotor sensors or using a single motor with a gear box that provides rotation to both axis.