Motion Detector Bricklet 2.0

Features

  • Passive Infrared Motion Sensor

  • Detects motion in distances of up to 12m (sensitivity configurable)

  • High sensing angle (120°)

  • Fresnel lens has controllable backlight

Description

The Motion Detector Bricklet is equipped with a passive infrared (PIR) sensor. It can be used to extend Bricks to sense movement of people and animals. It has a configurable detection range of up to 12m with a sensing angle of 120°.

By using configurable events it is possible to react on detected motion without polling.

The fresnel lens has a blue backlight with controllable intensity. The backlight can be used as an indicator for detected motion or as a general purpose indication light.

Backlight in action:

Technical Specifications

Property

Value

Current Consumption (LEDs off)

37mW

Sensing Range

up to 12m

Sensing Angle

120°

Dimensions (W x D x H)

25 x 45 x 30mm (0.98 x 1.78 x 1.18")

Weight

6g

Resources

Test your Motion Detector Bricklet 2.0

To test a Motion Detector 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 Motion Detector 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 "Motion Detector Bricklet 2.0" in the Brick Viewer after a moment. Select this tab. If everything went as expected you can now see when a motion is detected.

Motion Detector 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 Motion Detector Bricklet 2.0 and examples in different programming languages.

Case

A laser-cut case for the Motion Detector Bricklet 2.0 is available.

Case for Motion Detector 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 Motion Detector Bricklet 2.0 case:

Exploded assembly drawing for Motion Detector 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/C++ for Microcontrollers

API

Examples

Installation

C#

API

Examples

Installation

Delphi/Lazarus

API

Examples

Installation

Go

API

Examples

Installation

Java

API

Examples

Installation

JavaScript

API

Examples

Installation

LabVIEW

API

Examples

Installation

Mathematica

API

Examples

Installation

MATLAB/Octave

API

Examples

Installation

MQTT

API

Examples

Installation

openHAB

API

Examples

Installation

Perl

API

Examples

Installation

PHP

API

Examples

Installation

Python

API

Examples

Installation

Ruby

API

Examples

Installation

Rust

API

Examples

Installation

Shell

API

Examples

Installation

Visual Basic .NET

API

Examples

Installation

TCP/IP

API

Modbus

API