Component: Ambient Light (BH1750FVI) (Light): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 93: | Line 93: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ChangeMeasurementTime''' | ||
|- | |- | ||
| colspan="2" | Adjusts the measurement result to counteract influence of the optical window. | | colspan="2" | Adjusts the measurement result to counteract influence of the optical window. | ||
| Line 112: | Line 112: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ContinuousMeasurement''' | ||
|- | |- | ||
| colspan="2" | Powers up and starts the continous measurement mode. Delays in between measurements readings must be provided by the user, | | colspan="2" | Powers up and starts the continous measurement mode. Delays in between measurements readings must be provided by the user, | ||
| Line 131: | Line 131: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Stes up the I2C bus and initialises the termperature sensor ready for use. | | colspan="2" | Stes up the I2C bus and initialises the termperature sensor ready for use. | ||
| Line 145: | Line 145: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneTimeMeasurement''' | ||
|- | |- | ||
| colspan="2" | Powers up and starts a single measurement before returning to power down mode. Waits for the measurement to be ready and returns the value. | | colspan="2" | Powers up and starts a single measurement before returning to power down mode. Waits for the measurement to be ready and returns the value. | ||
| Line 164: | Line 164: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''PowerDown''' | ||
|- | |- | ||
| colspan="2" | Power Down the Device | | colspan="2" | Power Down the Device | ||
| Line 178: | Line 178: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadMeasurement''' | ||
|- | |- | ||
| colspan="2" | Reads data from the Light Sensor as a 16-bit value. | | colspan="2" | Reads data from the Light Sensor as a 16-bit value. | ||
| Line 192: | Line 192: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ResetMeasurement''' | ||
|- | |- | ||
| colspan="2" | Resets the device measurement register, Must be in the powered up state to do this. | | colspan="2" | Resets the device measurement register, Must be in the powered up state to do this. | ||
| Line 207: | Line 207: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Light |
Ambient Light component
A small PCB surface mount ambient light sensor with a I2C bus interface. Spectral responsibility is approximately human eye response. Wide range and High resolution. ( 1 - 65535 lx )
Component Source Code
Please click here to download the component source project: FC_Comp_Source_AmbientLight_BH1750FVI.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_AmbientLight_BH1750FVI.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ChangeMeasurementTime
| ChangeMeasurementTime | |
| Adjusts the measurement result to counteract influence of the optical window. | |
| Sensitvity | |
| Range: 31-254 / Default: 69 | |
| Return | |
ContinuousMeasurement
Initialise
| Initialise | |
| Stes up the I2C bus and initialises the termperature sensor ready for use. | |
| Return | |
OneTimeMeasurement
PowerDown
| PowerDown | |
| Power Down the Device | |
| Return | |
ReadMeasurement
| ReadMeasurement | |
| Reads data from the Light Sensor as a 16-bit value. | |
| Return | |
ResetMeasurement
| ResetMeasurement | |
| Resets the device measurement register, Must be in the powered up state to do this. | |
| Return | |