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.

F28335 eZdsp™ and Simulink

Other Parts Discussed in Thread: TMS320F28335, CCSTUDIO

Greetings,

               I am a student of Technological institution of Piraeus, Automation department and my professor has asked me to find out more about your product, eZdsp™ F28335 board. We are interested in making a Maximum power point tracker project using Matlab's simulink, so we would like to ask you the following: Is it possible to create a PV array simulation using Simulink and run the output of the simulation as an input to eZdsp™ F28335 board and monitor the output to Simulink? I found out in Target support package 4 that eZdsp™ F28335 board is supported by simulink but I couldn't find out more details ( http://www.mathworks.com/products/target-package/ti-adaptor/ ) Also how many A/D converters and PWM does the TMS320F28335 have?Has anyone done something similar?

I would like to thank you for your time, Evangelos

  • I will need more information/clarification to answer all your questions - first of all I am not sure if PV simulations can be done in Simulink or not but I would guess yes - if you have a PV model then you will be able to create a Simulink block (if Simuling doesn't have a similar PV block already) for Simulation. Considering you have a simulink model for PV I am not sure what you meant by inputting that to eZdsp board? Are you planning to run the whole PV model in DSP itself? or will you be running the code on a different platform and will feed the output (current or voltage) to eZdsp board? Depending on the complication of your model running the whole PV simulation in DSP may get tricky but should be possible. Now, it will be simple if you want to input a singal (simulating PV) to eZdsp board. You can use an ADC channel for that purpose. Now monitoring output to Simulink is possible as Mathlab can have a UART interface with eZdsp board and the DSP can stream data over serial interface to Mathlab.

    For device feature lists and specification please check the appropriate datasheet.

    I believe a similar system for motor drive is implemented as demo and if I am not wrong a similar system for power conversion (DC/DC) has also been implemented. May be TI folks will provide you the correct references.

  • Evangelos,

    I know the Mathworks site is pretty hard to navigate. I found the following:

    MPPT: http://www.mathworks.com/industrial-automation-machinery/power-conversion-control.html

    several good topics for you here

    http://www.mathworks.com/industrial-automation-machinery/demos.html

    Also, I know their simulink and embedded target products interface directly to both our Renewable Energy and Resonant DC-DC kits (which may be of interest to you).  I just can't find any information on their website :(

    F28335 has a single 12-bit 12.5 MSPS ADC, 2 SH, 16-ch. There are 6 ePWM modules, with 12 outputs. 6 additional eCAP/aPWM.

    http://focus.ti.com/docs/prod/folders/print/tms320f28335.html

  • Mr. Mohammed thanks for the reply. In simulink it's possible to create a PV model using a equivalent circuit.What we would like to do is this: we would like to run the simulation( MATLAB ) of PV for different solar irradiance and the output of the simulation ( Voltage, Current ) would go as an input to eZdsp using the ADC channel but we would also like to design the MPPT algorithm using matlab. So we would like to use Matlab for Simulation and Programming purposes but throught eZdsp board. Is that possible?

  • Mr.Chris you can't be more right about the Mathworks site [:)]. Thank you very much for the links, I'll check them right away.

  • Hello - It sounds like you are mainly trying to download MPPT algo from Matlab to eZdsp. This should be possible but I am not sure what C2000 devices Mathlab currently support. If you find the proper mathlab package then in simulink you will have a system which will take an input (your PV output) and will implement MPPT and then will have an output. Now even if you dont have the proper package then another way is to have MPPT simulation in a regular Simulink and then create the fixed-point C code for your C2000 setup. This will be more work than having a downloadable version but will ceratinly provide you a flexible platform.

  • I found a list here with the supported packages: http://www.mathworks.co.uk/products/target-package/ti-adaptor/

    TMS320C2000™ Spectrum Digital/Texas Instruments F2808 eZdsp™, F28044 eZdsp™, F2812 eZdsp™, F28335 eZdsp™ TI's Code Composer Studio™

    but I also found a lot of people who had some issues while using simulink with eZdsp e.g.:

    Subject: Demo: "CAN-Based Control of PWM Duty Cycle" does not build!!!

    From: Melih Alkan

    Date: 4 Sep, 2009 13:14:02

    Message: 1 of 1

    I had a problem using the demo named "CAN-Based Control of PWM Duty Cycle". I build the demo, however I could not see any signal at the PWM output of F28335 eZdsp card. I could not understand why this happened.
     
    Should I do any configuration on F28335 eZdsp card or on configuration parameters under simulation menu before I build the demo? what can be the problem?

    Thank you very much in advance

    Thread Subject: F28335 with Simulink

    Subject: F28335 with Simulink

    From: Pawel

    Date: 17 Sep, 2009 08:40:20

    Message: 1 of 3

    Hi!
    I have some problems with programming F28335 chip by Simulink.
    I opened sample project for my processor: c28335pwmtest, but it doesen't work proper: on ePWM outputs I didn't get any signals. I changed this program: timer period is set by dialog (not by input port). I set up it for constant value 10000 and I set up initial value in CMPA for 5000, but CMPA source is set to input port. For this input port I have attached constant block with 8000 value (like in example project). I can download this program and run it, but I don't get proper working program: on scope in ePWM1a pin i get PWM signal, but with filling 50% (like initial value), I can change this value in program and I get other filling, but I should get filling from input port, not from initial value... When I change value in constant block - it don't make any results in program - it looks like ePWM is initialized by initial value and later it isn't updated any time. I was trying check all
    options in ePWM block, but I don't find any solution.
    Does anybody had similar problem? What am I doing wrong?
    About my software: I have Matlab R2008b, CCStudio 3.3 with SP12 and I have installed other updates (DSP/BIOS, CGTool etc)

    Best regards!
    Pawel

    http://www.mathworks.com/matlabcentral/newsreader/view_thread/261038#680788

    Thanks again Mr,Mohammed,Have a nice day

  • The key to making a Simulink model compile and run on a DSP is a product called  "Link for Code Composer Studio".  This product used to be sold by Mathworks, but is now bundled together into a single embedded target package (Embedded IDE link ). Last time I checked, the Mathworks product page says it works only with CCSv3.  I have not tested it myself in CCSv4. Good luck. Please let me know what you find. I used that package pretty religiously in graduate school.

    ~Grant

  • Hi Evangelos

    The PV model can be implemented with Simulink from the equivalent circuit with the equations. I am doing the same thing you want to do. The MPPT algorithm uses PV current and PV voltage as inputs. You use PV power and voltage in the algorithm. So if you want to use Sİmulink with eZdsp you should develop the MPPT algorithm. The output of MPPT will be the duty cycle or current data to bring the PV current or the voltage. So you will use ADC chanels for the inputs and GPIO pins for the output. I haven't finish my project but I am studying on it nowadays. I think you will not need the PV model for using the  eZdsp™ F28335 board. You will need this model for developing system simulation. If you will implement direct MPPT you will not use this PV model. I wish it is clear. HAvea nice day....

  • thats exactly what i want to do :) right now im working on the mathematical equations for the PV. Have u managed to do something similar with eZdsp? real time implementation?thank you very much.

  • Hello

    I have eZdsp 2812 in the school. I am at the beginning of the implementation in real time.I only changed the PWM. While I was trying the ADC channels I think I have damaged them unfortunately. I got snagged this problem. And if I damaged the DSP, I haven't got any other. And a sample can be after 25th December in Turkey. I have big problems in that subject  unfortunately :( I wish you can succes all of your problems.

    Meral  

  • Hi Evangelos .

    Im doing the same thing right now, im doing a project with PV and DC DC converters, trying to develop a MPPT algorithm and im triying to setup matlab with the CCS 3.3, now that i got the version that matlab asked me. the good part begins, i have the same F28335, but i dont know where to start, how it works or how matlab conects with my DSP.

    so , if you would be so kind and help me providing some documents or examples that you did or help you to understand this complex conection, maybe even the report of your project, i see that this post is from 2009 and i hope that you can see this post by now. and if someone is reading this and it can help as well please do so, my email is javiergg82@gmail.com

    Thanks



  • Hi Mr Evangelos,

    can i use ePWM block for the output instead of GPIO.

    thanks 

  • Hi Ehsan,

    You may be more likely to get a response if you create a new thread with a detailed description of what you are trying to accomplish.