Colibri DIU

From Stm32World Wiki
Jump to navigation Jump to search
Colibri DIU revision C
Colibri diu-rev C bot render.png

Colibri DIU is an I/O module with four non-isolated digital inputs for potential-free contacts and open-collector outputs, measured by its own STM32C071: per input its state, frequency, duty cycle and a pulse count.

Specifications

Revision C.

Item Value
Inputs 4, non-isolated, referenced to GND
Input type potential-free contact or open collector to GND (the module pulls each input up to +12 V through 10 kΩ, about 1.2 mA); a voltage input up to about 36 V also works
Measurement STM32C071 (Cortex-M0+): state, frequency, duty cycle and a 32-bit pulse count per input
Indicators one LED per input
Host interface the slot's SPI (~CS0) and I2C, programmed through the slot's SWD pins
Supply from the slot +3.3 V, +12 V (works with an AC or a DC carrier supply)
I2C addresses EEPROM (M24M01) 0x50-0x51
Size 22 x 42 mm, Colibri Form Factor

Terminals

Terminal Function
a DI1
b DI2
c DI3
d DI4

In Hakkas

The module's channels appear in the environment named per slot, e.g. for a module in slot 2:

Port Direction Type Unit Range
slot2-di[1] … slot2-di[4] sensor bool input state
slot2-freq[1] … slot2-freq[4] sensor number Hz 0-10000
slot2-duty[1] … slot2-duty[4] sensor number % 0-100
slot2-count[1] … slot2-count[4] sensor number pulses, 32-bit, rolls over

How it works

Each input is pulled up to +12 V through 10 kΩ and drives, through a 10 kΩ / 10 kΩ divider, a 2N7002 whose drain is the STM32C071's input (pulled up to +3.3 V), so the microcontroller never sees the field voltage. A second 2N7002 lights the input's LED. A closed contact (input pulled to GND) reads as active.

Notes

  • The module's firmware and the host driver are in development.

I2C Addresses

 M24M01  = 0x50-0x51

EEPROM

See the Colibri EEPROM Layout page for the full layout. The module descriptor in the EEPROM describes the module's channels to the firmware (and to Hakkas).

Test Report

Work in progress. Not available in product if ordered now.

Schematics

Revision C.

Colibri diu-rev C-schematics.svg

Gallery

Documentation