Analog In Bricklet

Note

The Analog In Bricklet is discontinued and is no longer sold. The Analog In Bricklet 2.0 is the recommended replacement.

Features

  • Measures voltages up to 45V (DC)
  • Output in 1mV steps (12bit resolution)
  • High resolution up to 1.48mV

Description

The Analog In Bricklet can be used to extend the features of Bricks by the capability to measure voltages. The voltage can be read out in Volt directly without conversions necessary. The device has 4 different measurement ranges. Each range is measured with 12bit resolution such that lower voltages can be measured more accurate than larger voltages (see technical specifications below). The device switches between these ranges automatically. With configurable events it is possible to react on changing voltages without polling.

Technical Specifications

Property Value
Sensor Automatically switched voltage divider
Current Consumption 1mA
   
Voltage 0V - 45V (DC) in 1mV steps, 12bit resolution
Measurement Range

Automatically switched

  • 0V - 6.05V, ~1.48mV resolution
  • 0V - 10.32V, ~2.52mV resolution
  • 0V - 36.30V, ~8.86mV resolution
  • 0V - 45.00V, ~11.25mV resolution

In addition, manually selectable

  • 0V - 3.30V, ~0.81mV resolution
Maximum Output Current 150mA (3.3V), 150mA (5V)
   
Dimensions (W x D x H) 30 x 25 x 14mm (1.18 x 0.98 x 0.55")
Weight 6g

Resources

Connectivity

The Analog In Bricklet has four terminals. With these terminals you can access the following output signals: 5V, 3.3V as well as GND. The voltage you want to measure can be applied between the VIN and the GND terminal. See picture below.

Analog In Bricklet Terminals

Test your Analog In Bricklet

To test a Analog In Bricklet 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 Analog In Bricklet to a Brick with a Bricklet Cable. Additionally connect a DC voltage you want to measure to the Bricklet. For testing purposes the positive pole of a battery can be connected to the VIN terminal and the negative pole to the GND terminal.

Analog In Bricklet connected to Master Brick

If you connect the Brick to the PC over USB, you should see a new tab named "Analog In Bricklet" in the Brick Viewer after a moment. Select this tab. If everything went as expected you can now see the voltage in Volt and a graph that shows the voltage over time.

Analog In Bricklet 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 Analog In Bricklet and examples in different programming languages.

Case

A laser-cut case for the Analog In Bricklet was available, but is not sold any longer.

Case for Analog In Bricklet

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 Analog In Bricklet case:

Exploded assembly drawing for Analog In Bricklet

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