How does it work?
LightHz Click is based on the TSL230BR, a programmable light-to-frequency converter from ams. It combines a configurable silicon photodiode and a current-to-frequency converter and has a high-resolution conversion of light intensity with no external components. The sensor responds over the 320nm to 1050nm light range and is temperature compensated for the ultraviolet-to-visible light range of 320nm to 700nm. Device sensitivity is selectable in three ranges, providing two decades of adjustment, while the full-scale output frequency can be scaled by one of four preset values with 5% of absolute tolerance.
The LightHz Click uses its frequency output to communicate with the host MCU over the OUT pin of the mikroBUS™ socket. The board comes with four SMD jumpers labeled MCU ON-BRD, which allows you to choose the configuration of scaling and sensitivity to be controlled by the host MCU rather than the onboard jumper selection. The latter is set by default.
Using default MCU ON-BRD selection, the sensitivity is controlled by two logic inputs on S0 and S1 on the jumper labeled SENSITIVITY SELECTION. You can choose between 1x, 10, 100x, and power-down options by combining four available positions. The sensitivity of this sensor is adjusted using an electronic iris technique, similar to an aperture control. This way, it is possible to change the device’s response to a given amount of light and allows the device to be optimized to a given light level while preserving the output frequency range. The 100x option is set by default.
Using default MCU ON-BRD selection, the output frequency scaling is controlled by two logic inputs on S2 and S3 on the jumper labeled FREQUENCY SCALING. By a combination of four available positions, you can choose between 1, 2, 10, and 100 dividing values. The value 1 means no division as a direct output and is a fixed-pulse-width pulse train. The higher divider means lower frequency ranges for high-resolution measurement; the 100 value is set by default.
If your choice is to control the sensor by the host MCU by selecting the MCU ON-BRD jumpers to MCU, then the logic inputs for scaling and selection become available on the S0, S1, S2, and S3 pins of the mikroBUS™ socket. The combination tables are in our documentation section below.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the PWR SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Optical
Applications
Can be used for the development of applications based on the high-resolution conversion of light intensity to the frequency with no external components
On-board modules
TL2L30BR – programmable light-to-frequency converter from ams
Key Features
Absolute output frequency tolerance of 5%, all inputs, and the output are TTL compatible, four selectable options for sensitivity, four selectable options for scaling the frequency, a pulse train, or a square wave as an output, and more
Interface
GPIO
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on LightHz Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
– | PWR SEL | Down | Power Voltage Level Selection 3V3/5V: Up position 5V, Down position 3V3 |
S0-S3 SEL | MCU ON-BRD | Upper | Additional Jumpers for Frequency/Sensitivity Scaling Selection MCU/ON-BRD: Upper position ON-BRD, Lowerposition MCU |
S0-S1 | SENSITIVITY SELECTION | Right | Sensitivity Selection L/H: Left position L, Right position H |
S2-S3 | FREQUENCY SCALING | Left | Frequency Scaling Selection L/H: Left position H, Right position L |
LightHz Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Light Range | 320 | – | 1050 | nm |
Wavelength | – | 640 | – | nm |