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.

IWR6843ISK-ODS: GPIO control using gestures

Part Number: IWR6843ISK-ODS
Other Parts Discussed in Thread: MMWAVEICBOOST,

Hi,

I need to control a GPIO (toggle an LED) using gestures on the IWR6843ISK-ODS and MMWAVEICBOOST. I want to modify the Gesture with Machine Learning demo code to control a GPIO. 

What are the GPIOs that are available and how should I go about modifying the demo code? 

Regards,

Purvi

  • Hi Purvi, 

    If you have not already, I recommend taking a look at the GPIO driver documentation ({MMWAVE_SDK_3.x}/packages/ti/drivers/gpio/docs/doxygen/html/index.html). You can also reference the test code as an example ({MMWAVE_SDK_3.x}\packages\ti\drivers\gpio\test\xwr68xx). GPIO[2] (RADAR_GPIO_2) should be available for controlling LED. Please see the schematic. 

    Best Regards, 

    Josh

  • Hi Josh,

    Where are the gestures being read so I can condition them to toggle the GPIO? GPIO_2 turns on as soon as the sensor starts sensing.

    Regards,

    Purvi

  • Hi Purvi, 

    In main.c, within MmwDemo_DPC_ObjectDetection_dpmTask() you can see a function call to FindGesture(). This function processes the raw probabilities for each class (gesture) output by the neural network. You could modify this function to toggle the GPIO or you could add the functionality somewhere else, after this function has been run. The current gesture detected for that frame is stored in the global variable gfeatures (gfeatures.currFramegesture). 

    Best Regards, 

    Josh

  • Thank you Josh! It is working.