Component: Relay (Grove 103020005) (103020005) (General Output)
From Flowcode Help
Jump to navigationJump to search
Author | Matrix Ltd |
Version | 1.2 |
Category | General Output |
Contents
Relay (Grove 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, green indiacator is on when the relay is active.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
SwitchOn |
Switch on the relay, connecting the common pin to the normally open pin. | |
![]() |
Return |
![]() |
SwitchOff |
Switch off the relay, disconnecting the common pin from the normally open pin. | |
![]() |
Return |
![]() |
GetAverageInt |
Function call to read the ADC as a full width average sample over time | |
![]() |
NumSamples |
![]() |
DelayUs |
Number of micro seconds in between taking each sample | |
![]() |
Return |
![]() |
GetVoltage |
Reads the ADC as a direct voltage | |
[[File:]] - | Return |
![]() |
GetInt |
Blocking call to read the ADC at full bit depth | |
![]() |
Return |
![]() |
GetByte |
Blocking call to read the ADC as a byte | |
![]() |
Return |
![]() |
Initialise |
Initialise the sensor configuration as set by the component properties. Sets the default intigration time and gain as well as enable the sensor. | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Control Pin |
![]() |
Connections |
![]() |
Simulations |