Industrial Digital In 4 Bricklet – Tinkerforge

- Getting Started
  - Primer
  - Tutorials
  - FAQ
- Hardware
  - Bricks
  - Bricklets
    - Ambient Light Bricklet
    - Analog In Bricklet
    - Analog Out Bricklet
    - Barometer Bricklet
    - Breakout Bricklet
    - Color Bricklet
    - Current12 Bricklet
    - Current25 Bricklet
    - Distance IR Bricklet
    - Distance US Bricklet
    - Dual Button Bricklet
    - Dual Relay Bricklet
    - GPS Bricklet
    - Hall Effect Bricklet
    - Humidity Bricklet
    - Industrial Digital In 4 Bricklet
      - Features
      - Description
      - Technical Specifications
      - Resources
      - Connectivity
      - Test your Industrial Digital In 4 Bricklet
      - Case
      - Programming Interface
    - Industrial Digital Out 4 Bricklet
    - Industrial Dual 0-20mA Bricklet
    - Industrial Quad Relay Bricklet
    - IO-16 Bricklet
    - IO-4 Bricklet
    - Joystick Bricklet
    - LCD 16x2 Bricklet
    - LCD 20x4 Bricklet
    - LED Strip Bricklet
    - Line Bricklet
    - Linear Poti Bricklet
    - Moisture Bricklet
    - Motion Detector Bricklet
    - Multi Touch Bricklet
    - NFC/RFID Bricklet
    - Piezo Buzzer Bricklet
    - Piezo Speaker Bricklet
    - PTC Bricklet
    - Remote Switch Bricklet
    - Rotary Encoder Bricklet
    - Rotary Poti Bricklet
    - Segment Display 4x7 Bricklet
    - Solid State Relay Bricklet
    - Sound Intensity Bricklet
    - Temperature Bricklet
    - Temperature IR Bricklet
    - Tilt Bricklet
    - Voltage Bricklet
    - Voltage/Current Bricklet
  - Master Extensions
  - Power Supplies
  - Accessories
  - Timeline
- Software
  - Brick Daemon (brickd)
  - Brick Viewer (brickv)
  - API Bindings
  - Firmwares and Plugins
  - Device Identifier
  - Source Code and Bug Tracking
  - Programming Interface
- Starter Kits
  - Weather Station
  - Hardware Hacking
  - Server Room Monitoring
  - Blinkenlights
  - Internet of Things
  - Camera Slider
- Embedded Boards
  - Raspberry Pi
- Specifications
  - Technical Data
  - TCP/IP Protocol
  - Modbus Protocol
  - Wireshark Dissector

In Shop

# Industrial Digital In 4 Bricklet

{% from "macros.html" import tfdocstart, tfdocimg, tfdocend %} {{ tfdocstart("Bricklets/bricklet_industrial_digital_in_4_tilted_350.jpg", "Bricklets/bricklet_industrial_digital_in_4_tilted_600.jpg", "Industrial Digital In 4 Bricklet") }} {{ tfdocimg("Bricklets/bricklet_industrial_digital_in_4_vertical_100.jpg", "Bricklets/bricklet_industrial_digital_in_4_vertical_600.jpg", "Industrial Digital In 4 Bricklet") }} {{ tfdocimg("Bricklets/bricklet_industrial_digital_in_4_horizontal_100.jpg", "Bricklets/bricklet_industrial_digital_in_4_horizontal_600.jpg", "Industrial Digital In 4 Bricklet") }} {{ tfdocimg("Bricklets/bricklet_industrial_digital_in_4_setup_100.jpg", "Bricklets/bricklet_industrial_digital_in_4_setup_600.jpg", "Industrial Digital In 4 Bricklet setup") }} {{ tfdocimg("Cases/bricklet_industrial_case_100.jpg", "Cases/bricklet_industrial_case_600.jpg", "Industrial Digital In 4 Bricklet in Case") }} {{ tfdocimg("Bricklets/bricklet_industrial_digital_in_4_brickv_100.jpg", "Bricklets/bricklet_industrial_digital_in_4_brickv.jpg", "Industrial Digital In 4 Bricklet in Brick Viewer") }} {{ tfdocimg("Dimensions/industrial_digital_in_4_bricklet_dimensions_100.png", "Dimensions/industrial_digital_in_4_bricklet_dimensions_600.png", "Outline and drilling plan") }} {{ tfdocend() }}

## Features

- 4 channel digital input
- Input voltages up to 36V (DC)
- Galvanically isolated
- Groupable

## Description

The Industrial Digital In 4 Bricklet can be used to extend Bricks by four galvanically isolated digital inputs. The input voltage can be up to 36 volts (DC).

Input isolation permits the usage without a direct electrical connection, such that ground loops can be prevented and an additional degree of safety is added.

Typical applications are the interfacing of industrial controllers, such as PLC's or frequency converters, or the usage in environments were electrical ground levels can not be connected.

If you need more then four inputs, you can add another Industrial Digital In 4 Bricklet and group these together. If you do this, you have eight inputs which can read simultaneously in contrast to read both Bricklets successively. Grouping is only possible for Bricklets connected to one Brick. Thus you can group up to four Industrial Bricklets on a Master Brick or two on other Bricks.

## Technical Specifications

Property | Value
--- | ---
Current Consumption | 1mA
Input Type | Four optocoupled inputs (including 4.7kΩ series resistor)
Input Current | Depending on input voltage, ca. 1mA/5V, ca. 5mA/24V
Maximum Input Voltage | 36V (DC)
Low Level Voltage | 0-2V
High Level Voltage | 3-36V
Isolation | 5000Vrms (optocoupler value)
Dimensions (W x D x H) | 40 x 40 x 11mm (1.57 x 1.57 x 0.43")
Weight | 8g

## Resources

- Schematic (Download)
- Outline and drilling plan (Download)
- Source code and design files (Download)

## Connectivity

The Industrial Digital In 4 Bricklet has an 8 pole terminal. With it you can access the four inputs. Each input is connected to one LED inside the optocoupler.

To use one input connect it as depicted below:

## Test your Industrial Digital In 4 Bricklet

To test a Industrial Digital In 4 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 Industrial Digital In 4 Bricklet to a Brick with a Bricklet Cable. Additionally connect a voltage source to one of the Bricklet inputs. For testing purposes we have connected a battery (see picture below).

If you connect the Brick to the PC over USB, you should see a new tab named "Industrial Digital In 4 Bricklet" in the Brick Viewer after a moment. Select this tab.

If everything went as expected you can change the state of the input channel by connecting and disconnecting the battery.

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

## Case

A laser-cut case for the Industrial Digital In 4 Bricklet is available.

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 Industrial Digital In 4 Bricklet case:

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
--- | --- | --- | ---
Modbus | API |  |
TCP/IP | API |  |
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

The content of this page is licensed under Creative Commons Attribution 3.0 Unported License.