Master Brick

Features

  • Up to four Bricklets usable over USB
  • Is the basis to build stacks
  • Usable with cable based and wireless Master Extensions

Description

The Master Brick can be used for two purposes: First of all it has four Bricklet ports and therefore is ideally suited for applications where a many Bricklets are used. These can be directly controlled over the USB interface of the Master Brick. This way USB sensors, like temperature or humidity sensors, or USB actors, like relays, can be created according to your individual needs.

Secondly, the Master Brick can be used for communication purposes. When building a stack the lowermost Master Brick acts as the master of the stack and routes all communication between the boards of the stack and the controlling device. Other Master Bricks in the stack detect that are not the lowermost Master and will only provide their attached Bricklets. This way only one USB connection, the one to the lowermost Master Brick, is necessary.

The USB connection of the Master Brick can be changed with Master Extensions. There are Master Extensions for cable based interfaces (RS485, Ethernet) or wireless interfaces (WIFI). Master Extensions have to be plugged on top of a Master Brick and will be detected as new interfaces. This way Bricks and Bricklets can be directly controlled from devices inside a network (WIFI or Ethernet) or can be interconnected over large distances (RS485).

The maximum stack consists of (bottom to top): 1x Step-Down Power Supply, 1x Master Brick, 8x arbitrary Bricks, 2x Master Extensions. With all Bricks being Master Bricks in a stack up to 9 Master Bricks x 4 Bricklets each = 36 Bricklets can be connected to a single stack.

Technical Specifications

Property Value
Bricklet Ports 4
Dimensions (W x D x H) 40 x 40 x 19mm (1.57 x 1.57 x 0.75")
Weight 12g
Current Consumption 410mW (82mA at 5V)

Resources

Connectivity

The following picture depicts the different connection possibilities of the Master Brick.

Master Brick with caption

Test your Master Brick

To test a Master Brick 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.

Now connect the Brick to the PC over USB, you should see a new tab named "Master Brick" in the Brick Viewer after a moment. Select this tab.

Master Brick in Brick Viewer

You should see that the Master Brick isn't measuring any stack voltages or currents. This is because you have not attached a Power Supply. When attaching such a board you should see the voltage applied to your stack and the current flowing in.

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

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