MikroElektronika Relay Click Element
The relay click element is used to control the flow of power between terminals via two mini-relays. This element is for using the MikroElektronika Relay Click board.
The relay click is a sensor element that can be imported into the Element Toolbox through the Add Element button located in the toolbox from the Embedded tab.
Properties
The following properties can be changed for the relay click element:
Name
The name of the element.
GPIO Driver Instance
The GPIO driver instance number to use.
Relay 1 GPIO Pin
The GPIO pin the element is connected to for relay 1 on the click board.
Relay 1 GPIO Pin
The GPIO pin the element is connected to for relay 2 on the click board.
Triggers
The following triggers are available to execute events from within the relay click element:
Triggered
Execute an event when the source element connected to the relay click triggers.
Relay 1 Set On
Execute an event when relay 1 is set to on.
Relay 1 Set Off
Execute an event when relay 1 is set to off.
Relay 2 Set On
Execute an event when relay 2 is set to on.
Relay 2 Set Off
Execute an event when relay 2 is set to off.
Relay 1 Toggled
Execute an event when the state of relay 1 is toggled.
Relay 2 Toggled
Execute an event when the state of relay 2 is toggled.
Both Relays Set On
Execute an event when both relays are set to on.
Both Relays Set Off
Execute an event when both relays are set to off.
Both Relays Toggled
Execute an event when the state of both relays are toggled.
Abilities
The following abilities are available for the relay click element when its source element triggers:
Trigger
Trigger the element(s) that follow the relay click element.
Set Relay 1 On
Set relay 1 to on. This means that current is flowing between its two terminals.
Set Relay 1 Off
Set relay 1 to off.
Set Relay 2 On
Set relay 2 to on. This means that current is flowing between its two terminals.
Set Relay 2 Off
Set relay 2 to off.
Toggle Relay 1
Toggle the state of relay 1 between on and off.
Toggle Relay 2
Toggle the state of relay 2 between on and off.
Set Both Relays On
Set both relays to on.
Set Both Relays Off
Set both relays to off.
Toggle Both Relays
Toggle the state of both relays between on and off.