Tool/software: Code Composer Studio
Hello,
I would like to know if there is a way to activate the MMWAVEICBOOST GPIO signals from Matlab. If it's possible, how could I do that?
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.
Tool/software: Code Composer Studio
Hello,
I would like to know if there is a way to activate the MMWAVEICBOOST GPIO signals from Matlab. If it's possible, how could I do that?
Hello.
I am not sure if I understand your setup. Are you referring to programming of GPIOs on the TI mm-wave device or the GPIOs on the host running the matlab application.
Thanks
Yogesh
Hi Yogesh,
Tahnk you four your answer.
My idea was just to switch on a LED with the information we get in the Matlab Area Scanner application, as you can see in this video (https://www.youtube.com/watch?v=1w_N1l0FMyw).
First approach was to edit the Matlab program in order to switch on the LED by activating a MMWAVEICBOOST GPIO output.
Finally I have decided to use Python and try to adapt the area scanner demo to Python code. Do you suggest me to continue with this approach? What would you do?
Hello,
There will be too much lag if you have to first process the data at host side and then try to send command to configure the GPIO on IWR device.
You can directly modify the area scanner demo to program the GPIO based on tracker output. Something like this in mss_main.c:
if((pGuiMonSel->detectedObjects == 1) && (result->numTargets > 0)) {
/* Point cloud */
tl[tlvIdx].type = MMWDEMO_OUTPUT_MSG_TRACKERPROC_OUTPUT_TARGET_LIST;
tl[tlvIdx].length = sizeof(trackerProc_Target) * result->numTargets;
packetLen += sizeof(MmwDemo_output_message_tl) + tl[tlvIdx].length;
tlvIdx++;
/* Pull-up the GPIO Red */
GPIO_write (gMmwMssMCB.cfg.platformCfg.GPIORed, 1U);
GPIO_write (gMmwMssMCB.cfg.platformCfg.GPIOGreen, 0U);
}
else
{
/* Pull-up the GPIO Green */
GPIO_write (gMmwMssMCB.cfg.platformCfg.GPIOGreen, 1U);
GPIO_write (gMmwMssMCB.cfg.platformCfg.GPIORed, 0U);
}
Please note "GPIOGreen" and "GPIORed" is just for reference.
Thanks
Yogesh
Hello Yogesh,
Thanks again for the answer. I managed to switch on the GPIO 2 LED every time the sensor detects a person, but now I would like to connect an external LED to the MMWAVEICBOOST. Where can I connect it? Can I use the J5 and J6 on the back? How can I configure it to work?
Hello,
Yes you can connect external LED to J5/J6 GPIOs. Please refer to the following mmwaveicboost user guide for switch setting and GPIO:
http://www.ti.com/lit/ug/swru546c/swru546c.pdf
Turn S1.10 to off to get the GPIO signals on J5/J6.
Thanks
Yogesh
Thank you Yogesh.
One last question. Which is the maximum current that could go through the pins?
Hello,
We have not instrumented the same but if you are planning to connect 20mA(MAX) LED, you should be fine.
Thanks
Yogesh