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.

DRV8301 rev D First bare bone project issues.

Other Parts Discussed in Thread: MOTORWARE, DRV8301

Hello,

I am trying to setup a new bare bone project based on lab05d example. My motor is a 2KW 12 Slots/14 poles outrunner. My power source is a 3S (11.1V ) or 6S (22.2V) 2500mAH Lipo battery.  InstaSpin Motion webapp identifies the motor perfectly every single time with the following parameters :


Rs                           0.0744825
Ls_d                       0.0001708761
Ls_q                       0.0001708761
RATED_FLUX       0.03257458

inertia 0.207

friction  0.97

Using webapp operation is smooth and manually changing Kp_iq and Kp_id from 0.3527 to ~4.0 it is even smoother and noise free. I can clearly see using my scope and current probes the 3d harmonic injected current waveforms in all 3 phases. 

I started my own project using a copy of lab05d and modifing user.h adding my motor parameters block. The code seems to identify the motor extracting the same parameters but motor spinning is very "rough" and noisy. I can see in my scope the heavily distorted current waveforms (they are not even same in every phase). I tried to go through all labs again and again but all projects have the same behaviour.  It is definitely not a hardware fault since webapp works perfectly with the same setup.  Here is a copy of my user.h file.

4786.user.h

Any ideas ?

  • I've just downloaded a fresh copy of the latest Motorware 1_01_00_10 in a separate dir in order to do a fresh start, but results are exactly the same. So I doubt that it is something regarding my user.h file. Gui composer still runs smoothly with my setup. Are there any differences between the libs used in Guicomposer and the libs in Motorware ? Why Gui composer is able to run my motor smoothly while examples and labs cannot ?

    Thanks in advance,

    Angelo

  • I would suggest the following changes to your user.h:

    1. Match the USER_IQ_FULL_SCALE_VOLTAGE_V to your DC bus, so if you are running on a 24 V power supply, set this to 24:

    #define USER_IQ_FULL_SCALE_VOLTAGE_V       (24.0)

    2. Run the interrupts at a faster rate, so 20 kHz PWM (as you already have it) and:

    #define USER_NUM_PWM_TICKS_PER_ISR_TICK        (1)

    This would give you a tighter current and speed control, as well as a more accurate estimation of angle and speed.

    -Jorge

  • Thanks for your reply,

    I ll try your suggestions although I played already a lot with these parameters. But how do you explain that not even a single lab works as it should be except gui composer web app ??

    All labs have their original configuration from TI.

    Any thoughts ?

  • Which CCS and compiler are being used? It sounds like perhaps you have one of the previous compilers with a bug and not the latest 6.2.3. 

    Are you working out of the MotorWare directory directly, insuring you are using the drv8301_revd directory, or did you attempt to create an entirely new structure and project?

    I'm glad the GUI is working on your hard war with your motor, but that compiled binary is fixed. When you build your 5d something is going wrong. Directory contents, user.h settings, or the compiler. 

  • Jorge I tried your suggestions but there is no improvement. 

    Chris, I am not sure about compiler version but I am quite sure that it is fresh. In project properties there are two fields : Compiler version TI v6.2.3 and Effective compiler version TI v6.2.0. What's the difference between them ?

    About your second question : I attempted to create a separate directory and project and I had the described results. After that I tried a BRAND new freshly installed motorware directory. I've just tried once more the very basic Lab02b example out of this Motorware dir. It behaves just like my project.

    Here is my modified user.h file:

    5658.user.h

    Any suggestions ??

  • Angelo,

    Effective is what you are using.  Upgrade your compiler to 6.2.3

     

  • Problem finally solved. I've just upgraded to the latest 6.2.3 and all issues are gone.

    Thanks a lot guys.