Jump to content

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)
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

SampleSensor
Returns the state of the sensor. Activated if movement detected in the sensor range. 
- BYTE Return


Initialise
Configures the I/O ready for the sensor to be sampled. 
- VOID Return


GetAverageInt
Function call to read the ADC as a full width average sample over time  
- BYTE NumSamples
 
- BYTE DelayUs
Number of micro seconds in between taking each sample 
- UINT Return


GetVoltage
Reads the ADC as a direct voltage 
[[File:]] - Return


GetInt
Blocking call to read the ADC at full bit depth  
- UINT Return


GetByte
Blocking call to read the ADC as a byte  
- 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. 
- VOID Return



Property reference

Properties
Sensitivity
Simulation range used to detect object 
Holding Count
Number of calls to SampleSensor to repeat active state, once triggered 
Connections
SIG Pin
Pin connected to the sensor element of the photo transistor 
Simulations
Sim Mode