XN04 - Temp-Hum Prox-Lum

X-NODE Temp-Hum Prox-Lum is a SoM (System on module) with two built-in sensors.

SHT40 Sensirion® temperature and humidity sensor, it provides typical accuracy of +/-0.2°C on temperature readings and +/- 1.8% on relative humidity readings, at operating temperature range from 0 °C hasta 85 °C, max current draw of 0.5mA.

SDF7779 OSRAM® ambient light and proximity sensor with a typical current draw of 90µA, ambient light detention ranges from 0.0022 – 73000 lx, proximity detection range of 160mm.

This X-NODE is Ideal for IoT ambient monitoring systems, like air conditioners, ambient quality measurement in greenhouses, weather stations, frigorific chambers, ambient light monitoring and control systems.

TABLE OF CONTENTS

I. How does it work?

The X-NODE Temp-Hum/Prox-Lum is a SoM (System on Module) that possess all the necessary hardware components to read from temperature, humidity, ambient light and relative proximity sensors built-in, therefore technical knowledge of hardware is not needed in order to use it, it communicates with MCU’s using a 2 Wire I2C serial interface or through ASCII commands using a UART serial interface, the latter allows this X-NODE to be compatible with virtually any system that uses a microcontroller, microprocessor, or even industrial equipment.

The X-NODE Temp-Hum/Prox-Lum is compatible with the mikroBUS™ standard, that enables its use with Mikroe® development ecosystem with 1000+ click boards and development boards including X-NODE devices. It also comes with two 4-pin JST connectors compatible with Sparkfun’s Qwiic connection system to expand its compatibility even further in a fast and easy way.

II. Layout

  1. SHT40 Sensirion® sensor.

  2. 4-pin JST Qwiic connect connector.

  3. SFH7779 OSRAM® sensor

  4. Hardware controller unit.

  5. UART<>I2C serial ports.

  6. X-NODE model.

  7. X-NODE type.

  8. mikroBUS™ connector.

  9. Hardware revision.

  10. Core component name of the X-NODE device

III. Specification

Type

Temperature, humidity, proximity, and ambient light sensors

Applications

IoT projects focused on ambient quality monitoring, like air conditioners, ambient quality measurement in greenhouses, weather stations, frigorific chambers, ambient light monitoring and control systems.

On-board modules

SHT40 by Sensirion®, SFH7779 by OSRAM®

Key features

Temperature and humidity sensor, at operating temperature range from 0 °C hasta 85 °C, with typical accuracy of +/-0.2°C on temperature readings and +/- 1.8% on relative humidity readings, auto calibration, max current draw of 0.5mA. Ambient light and proximity sensor with a typical current draw of 90µA, ambient light detention ranges from 0.0022 – 73000 lx, proximity detection range of 160mm, programmable current pulse up to 200mA.

Compatibility

Interfaces

UART, I2C

Dimensions

41 x 26 x 21 mm

Voltage

3.3 V

IV. Pinout

To communicate with the X-NODE Tem - Hum Prox - Lum the I2C address must be known, by default this address are the digits on the X-NODE model which can be found on the device itself (see Layout section).

V. Device operation

The X-NODE device can operate using ASCII commands through the UART serial port or through I2C protocol for advanced users.

UART Protocol

To communicate to the device the X-NODE’s ID must be known, this ID is composed of the device model, which is written on the device itself (see Layout section), and a user defined index made up of a single uppercase letter of the alphabet , i.e., this X-NODE id starts with “XN03” and ends with a character, by default this character is the letter “A”, there can be up to 10 devices of the same type connected simultaneously, remember to set up their INDEX before connecting them in the same circuit.

UART settings

Configure the serial port/MCU UART generator to the following settings.

  • Baud rate: 115200 bps.

  • Parity: No parity.

  • Data bits: 8.

  • Stop bits: 1.

List of commands

Once the device is connected send any of the following commands, every command must finish with <CR+LF>, which means followed by , is the carriage return character, is the line feed character, which corresponds to character 13 & character 10 respectively on the ACII table. Configure your serial port/MCU to send these characters at the end of every command.

XN04A?<CR+LF>

Test if serial communication is successful.

Response: OK<CR+LF>

XN04A+V<CR+LF>

Gets the firmware version of the X-NODE

Response: XN04A=Version<CR+LF>

i.e., response: XN04A=0.1<CR+LF>

XN04A+ID=(A-Z)<CR+LF>

Changes the device Index, only A-Z uppercase values are allowed, after receiving an “OK” all subsequent commands should use the new device ID, even after powering off the device.

Response: OK<CR+LF>

i.e., command: XN04C+ID=H<CR+LF>

XN04A+TW=(1-126)<CR+LF>

Changes the device I2C address, the new address must be in decimal and must be a value from 1 to 126.

Response: OK<CR+LF>

i.e., command: XN04A+TW=28<CR+LF>

XN04A+GT<CR+LF>

Gets the temperature value from the sensor. Returns the value in °C with two decimals.

Response: XN04A=VAL<CR+LF>

i.e., response: XN04A=27.81<CR+LF>

XN04A+GH<CR+LF>

Gets the Humidity value from the sensor. Returns the relative humidity value (%).

Response: XN04A=VAL<CR+LF>

i.e., response: XN04A=80<CR+LF>

XN04A+GL<CR+LF>

Gets the ambient light value from the sensor. Returns the luminosity value in lux.

Response: XN04A=VAL<CR+LF>

i.e., response: XN04A=316<CR+LF>

XN04A+GP<CR+LF>

Gets the proximity value from the sensor. Returns the relative proximity value.

Response: XN04A=VAL<CR+LF>

i.e., response: XN04A=198<CR+LF>

I2C protocol.

Communication with the X-NODE through I2C requires the use of both sensors native I2C implementation, you can read the datasheet and application notes of both sensors in their official website, provided in the following links: SH T40, SFH7779.

VI. Downloads

Last updated