Component: Relay (Grove 103020005) (103020005) (General Output)

From Flowcode Help
Revision as of 19:47, 16 November 2021 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.2 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Author Matrix Ltd
Version 1.2
Category General Output


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

Fc9-comp-macro.png SwitchOn
Switch on the relay, connecting the common pin to the normally open pin. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png SwitchOff
Switch off the relay, disconnecting the common pin from the normally open pin. 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png GetAverageInt
Function call to read the ADC as a full width average sample over time  
Fc9-u8-icon.png - BYTE NumSamples
 
Fc9-u8-icon.png - BYTE DelayUs
Number of micro seconds in between taking each sample 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png GetVoltage
Reads the ADC as a direct voltage 
[[File:]] - Return


Fc9-comp-macro.png GetInt
Blocking call to read the ADC at full bit depth  
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png GetByte
Blocking call to read the ADC as a byte  
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png Initialise
Initialise the sensor configuration as set by the component properties. Sets the default intigration time and gain as well as enable the sensor. 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-5-icon.png Control Pin
 
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations