Component: Infrared (EBM020) (EBM Modules)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | EBM Modules |
Contents
Infrared component
The Infrared sensor board contains both an IR transmitter and receiver. The transmitter is enabled via a digital control signal and the receiver provides an analogue output. By enabling the transmitter and reading the variable voltage output of the receiver it is possible to measure the distance of a reflecting object in the region of 1cm to 10cm.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBM020v1.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBM020v1.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
![]() |
SetTxOff |
Turns off the IR Transmitter | |
![]() |
Return |
![]() |
SetTxOn |
Turns on the IR Transmitter | |
![]() |
Return |
![]() |
GetDistanceValue |
Returns the calculated distance for the given ADC reading | |
![]() |
adc |
![]() |
Return |
![]() |
GetADCValue |
Gets the raw ADC input value for the IR receiver | |
![]() |
Return |
![]() |
Initialise |
Initialise the component by loading the default calibration table | |
![]() |
Return |
Property reference
==Macro reference==
![]() |
SetTxOff |
Turns off the IR Transmitter | |
![]() |
Return |
![]() |
SetTxOn |
Turns on the IR Transmitter | |
![]() |
Return |
![]() |
GetDistanceValue |
Returns the calculated distance for the given ADC reading | |
![]() |
adc |
![]() |
Return |
![]() |
GetADCValue |
Gets the raw ADC input value for the IR receiver | |
![]() |
Return |
![]() |
Initialise |
Initialise the component by loading the default calibration table | |
![]() |
Return |
Property reference
==Macro reference==
![]() |
SetTxOff |
Turns off the IR Transmitter | |
![]() |
Return |
![]() |
SetTxOn |
Turns on the IR Transmitter | |
![]() |
Return |
![]() |
GetDistanceValue |
Returns the calculated distance for the given ADC reading | |
![]() |
adc |
![]() |
Return |
![]() |
GetADCValue |
Gets the raw ADC input value for the IR receiver | |
![]() |
Return |
![]() |
Initialise |
Initialise the component by loading the default calibration table | |
![]() |
Return |
Property reference
==Macro reference==
![]() |
SetTxOff |
Turns off the IR Transmitter | |
![]() |
Return |
![]() |
SetTxOn |
Turns on the IR Transmitter | |
![]() |
Return |
![]() |
GetDistanceValue |
Returns the calculated distance for the given ADC reading | |
![]() |
adc |
![]() |
Return |
![]() |
GetADCValue |
Gets the raw ADC input value for the IR receiver | |
![]() |
Return |
![]() |
Initialise |
Initialise the component by loading the default calibration table | |
![]() |
Return |