Component: Relay (103020005) (Grove)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd
Version 1.2 (Development)
Category Grove


Image Relay (103020005) component

The Relay is a digital normally open switch capable of switching much higher voltages and currents than your normal Microcontroller outputs. When set to HIGH, the LED will light up and the relay will close allowing current to flow. The peak voltage capability is 250V at 10 amps. Simulated component is shaded green when the relay is active.

Examples

No additional examples


Downloadable macro reference

SwitchOn

Switch on the relay, connecting the common pin to the normally open pin.

Parameters

This macro has no parameters


Return value

This call does not return a value


SwitchOff

Switch off the relay, disconnecting the common pin from the normally open pin.

Parameters

This macro has no parameters


Return value

This call does not return a value


Simulation macro reference

This component does not contain any simulation macros


Property reference

Control Pin

This property is of type Single digital pin and can be referenced with the variable name Control.

No additional information