Skip to main content

About Sensor Module

Sensor Module with a five-pole pluggable terminal block for the universal inputs and outputs

The Sensor Module features up to four universal inputs or outputs on a pluggable terminal block with 1-Wire bus master support. The terminals can be used as both analog and digital input/output. For example, you can connect various external digital, analog or resistive sensors. Also, you can communicate with other devices on a 1-Wire bus.

The terminals are connected to the HARDWARIO TOWER header signals. A is P4/A4/DAC0, B is P5/A5/DAC1 and C is P7/A6.

tip

On Sensor Module R1.1, the VDD pin in the middle of the terminal block is controlled by software: it can supply 3 V to the connected sensors.

Features​

  • Configurable terminal modes:
    • Analog input or output
    • Digital input or output
    • Pull-up resistor none/4.7 kΩ/56 Ω
  • Examples interfaces:
    • Digital temperature sensor on a 1-Wire bus (DS18B20)
    • Resistance temperature sensor (Pt 100, Pt 1000, etc.)
    • Analog temperature sensor (LM35, TMP37, etc.)
    • NTC temperature sensor
    • Control of digital 1-Wire relay block
    • Button or any type of switch
    • Voltage measurement
    • Pulse counting from meters and flow sensors (see How to: Pulse counter)
  • Plug-in screw terminal block: 5-pin on R1.1, 4-pin on R1.0
  • Operating voltage range: 1.65 V to 5.5 V
  • Operating temperature range: -20 to 70 °C
  • Dimensions: 33 x 55 mm

Revisions​

  • R1.1 has a 5-pin terminal block: A, GND, VDD, C, B. The VDD terminal powers the connected sensors, and many 1-Wire sensors can share the bus. From the factory, the C terminal is connected to GND (R20 = 0 Ω, R21 not fitted); to get channel C (P7/A6) on it, move the 0 Ω resistor from R20 to R21.
  • R1.0 has a 4-pin terminal block without the VDD terminal. A 1-Wire device takes its power from channel A through the 56 Ω pull-up, which reliably powers only two sensors.

The SDK detects the revision itself (twr_module_sensor_get_revision()). The 1-Wire wiring for both revisions is in How to: DS18B20 Thermometer.

Voltage divider​

The inputs of the Sensor Module measure up to about 3 V. For a higher voltage, fit a divider on the board of Sensor Module R1.1 (see the schematics):

  • Channel A: replace the 0 Ω resistor R15 with the upper resistor of the divider and fit R4 (not fitted from the factory) as the lower one.
  • Channel B: R16 and R11 in the same way.

How to choose the resistors is described in How to: Analog/digital converter.

References​