Component: PIR Motion (Grove 101020020) (101020020) (Light)

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.0 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Author Matrix Ltd
Version 1.0
Category Light


PIR Motion (Grove 101020020) component

PIR motion sensor component for digital output sensors. Simulates range sensitivity and output hold.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

Fc9-comp-macro.png SampleSensor
Returns the state of the sensor. Activated if movement detected in the sensor range. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png Initialise
Configures the I/O ready for the sensor to be sampled. 
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-21-icon.png Sensitivity
Simulation range used to detect object 
Fc9-type-21-icon.png Holding Count
Number of calls to SampleSensor to repeat active state, once triggered 
Fc9-conn-icon.png Connections
Fc9-type-5-icon.png SIG Pin
Pin connected to the sensor element of the photo transistor 
Fc9-conn-icon.png Simulations
Fc9-type-16-icon.png Sim Mode