Re:Relay on/off

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi how to write code to on and off relays ,other than IO004_ResetPin(RELAY1), IO004_SetPin(RELAY2),with other dave apps how we can On/off relays for xmc1100



Thanks&Regards

PC
0 Likes
4 Replies
Not applicable
Hi prathibha,

You never specify how you want the relay to turn on/off or even how your relay can be turn on.
Your question is too general and did not clearly explain what you really want.
I think this is very hard for anyone who would like to help you.

Nevertheless, since you can turn on and off your relay with toggle IO pin, you can also use PWM to turn on and off the relay.
If you are looking for DAVE Apps, you might want to look at PWMSP001.
0 Likes
Not applicable
Thank ROU,
I want to on relays through GPIOS,i am using IO004_set to on relay.IO004_Reset to off relay other than this is their any dave apps are their to turn on/off relays using
GPIOS.

Best regards
Prathibha
0 Likes
Not applicable
Hi prathibha,

IO004 is the only app to directly control the GPIO.
If you want to turn on/off the relay with PWM, you could try Rou suggestion by using PWMSP001 app and connect the PWM output pin to your relay.
0 Likes
Not applicable
thank you Jackson

Best Regards
Prathibha
0 Likes