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.

DLPNIRNANOEVM: Custom patterns

Part Number: DLPNIRNANOEVM
Other Parts Discussed in Thread: DLPC150

Hi,

was wondering if anyone could point towards the correct direction for me to code/add custom patterns for the Micromirror array, or give a hint where to look so that I get a better understanding how to do it (such as libraries).

Thanks.

  • Hello John,

    If you have downloaded the source code for the Tiva microcontroller from http://www.ti.com/lit/zip/tidcaj9,

    In Tiva code, when a scan config is selected, Display_GenScanPatterns() function is executed which in turn calls the spectrum library function dlpspec_scan_genPatterns() to generate the patterns corresponding to the given configuration. These patterns are streamed from Tiva to DLPC150 during a scan. You will have to replace this dlpspec_scan_genPatterns() with your own function to generate custom pattern.

    Best Regards,

    Sreeram

  • Thank you very much for the reply. I'll look into it and return if further questions appear. 

  • Hello again,

    I kind of understand what you are saying, but this raised more questions.

    This is what the location of my Qt project directory looks like. ( I am using Qt because when following the instructions for using code composer, there happened to be some missing files and overall couldn't properly use or understand how to use it). Simple1 is where the actual Qt project is located. (It's a simplified & modified version of the original one which is easier to understand for beginners and easier for debugging)

    The whole point of my project is to make custom patterns for micromirror array.

    Basically what I'm wondering now, would the location for customizing it be in: /DLPSpectrumLibrary_2.0.3/src/dlpspec_scan.c ?

    If not, could you please let me know where should I be writing it in? 

    P.S. Also, the link you provided didn't seem to work. 

  • Please download the package highlighted below from http://www.ti.com/tool/DLPNIRNANOEVM

    Once you install the above package, display.c shown below is the file you need to modify.

    In display.c, go to function Display_GenScanPatterns(). Then you need to replace the following lines with your own functions to draw custom patterns. Please note that you need to set up code composer studio in order to rebuild the code after you modify it.

    Nano_eeprom_GetcalibCoeffs(&calib_coeffs);
        numPatterns = dlpspec_scan_genPatterns(pCfg, &calib_coeffs, &fb);
    #ifndef NO_PATTERN_BENDING
        if(dlpspec_scan_bendPatterns(&fb, &calib_coeffs, numPatterns) != PASS)
            return -1;
    #endif