Ambient Light Bricklet 2.0

Features

  • Measures ambient light up to 64000lux
  • Full dynamic range from 0.01lux to 64000lux
  • Output in 0.01lux steps (16bit effective resolution)

Description

The Ambient Light Bricklet 2.0 can be used to extend the features of Bricks with the capability to measure ambient light. It is the successor of the Ambient Light Bricklet with an about 70x bigger measurement range. The measured illuminance can be read out in lux. With configurable events it is possible to react on changing illuminance without polling.

Typical applications are illuminance dependent switching of backlights, motors etc.

Technical Specifications

Property Value
Sensor LTR329ALS
Current Consumption < 5mW (< 1mA at 5V)
   
Illumination 0lux - 64000lux in 0.01lux steps, 16bit resolution
   
Dimensions (W x D x H) 25 x 15 x 5mm (0.98 x 0.59 x 0.19")
Weight 2g

Resources

Test your Ambient Light Bricklet 2.0

To test a Ambient Light Bricklet 2.0 you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.

Connect the Ambient Light Bricklet 2.0 to a Brick with a Bricklet Cable.

If you connect the Brick to the PC over USB, you should see a new tab named "Ambient Light Bricklet 2.0" in the Brick Viewer after a moment. Select this tab. If everything went as expected you can now see the illuminance in lux, a graphical representation of the illuminance and a graph that shows the illuminance over time.

A good test for the sensor is to darken the room and slowly move a flashlight over the sensor, the graph should then look approximately as in the screenshot shown below.

Ambient Light Bricklet 2.0 in Brick Viewer

After this test you can go on with writing your own application. See the Programming Interface section for the API of the Ambient Light Bricklet 2.0 and examples in different programming languages.

Case

A laser-cut case for the Ambient Light Bricklet 2.0 is available.

Case for Ambient Light Bricklet 2.0

The assembly is easiest if you follow the following steps:

  • Screw spacers to the Bricklet,
  • screw bottom plate to bottom spacers,
  • build up side plates,
  • plug side plates into bottom plate and
  • screw top plate to top spacers.

Below you can see an exploded assembly drawing of the Ambient Light Bricklet 2.0 case:

Exploded assembly drawing for Ambient Light Bricklet 2.0

Hint: There is a protective film on both sides of the plates, you have to remove it before assembly.

Programming Interface

See Programming Interface for a detailed description.

Language API Examples Installation
C/C++ API Examples Installation
C# API Examples Installation
Delphi/Lazarus API Examples Installation
Java API Examples Installation
JavaScript API Examples Installation
LabVIEW API Examples Installation
Mathematica API Examples Installation
MATLAB/Octave API Examples Installation
Perl API Examples Installation
PHP API Examples Installation
Python API Examples Installation
Ruby API Examples Installation
Shell API Examples Installation
Visual Basic .NET API Examples Installation
TCP/IP API    
Modbus API