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.

LPSTK-CC1352R: How to enable a GPIO pin that controls a relay module in switching a water pump ON and OFF

Part Number: LPSTK-CC1352R
Other Parts Discussed in Thread: CC1352R

Hello!

Still new to SimpleLink devices. I have a CC1352R1 Launchpad and CC1352R LaunchPad SensorTag, 12V 1 Channel Relay Module SPDT, a 2V 5W Peristaltic Liquid Pump, a DC-DC 12V to 3.3V 5V 12V Power Module Multi Output Voltage Conversion.

The gist of the connection is that:

Power supply supplying Power Module -> Power Module connected to Pump -> and Microcontroller which will command the relay module to switch the pump ON or OFF (breaking connection).

I am working on a project that will flash an image to the SensorTag generated from Contiki-NG makefile since I'm using the Contiki-NG platform for my project for an IoT smart hydroponics system. I need guidance on how to set any GPIO pin of my SensorTag such that it will command the relay to ON or OFF maybe by pressing the sensortag's left button and such (the further step of my project would be to receive a command from a border router which will be the signal for the microcontroller to switch on/off the relay module), but for now, I need help in setting a GPIO pin, probably in CCS.

Thanks,

Hannaah