XN01 - Digital Inputs

X-NODE digital inputs is a SoM (System on module) with a built-in surface mount 8 position DIP switch, 8 inputs and GND pin. The DIP switch has a lifespan of 2000 cycles, an insulation resistance of 100 MΩ and operation temperature range from -10 °C to 80 °C. This general-purpose X-NODE can be used to process digital signals.

TABLE OF CONTENTS

I. How does it work?

The X-NODE Digital Inputs is a SoM (System on Module) that possess all the necessary hardware components to read digital signals 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 Digital Inputs 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 the Sparkfun’s Qwiic connection system to expand its compatibility even further in a fast and easy way.

II. Layout

  1. External digital input port.

  2. DIP 8 position switch.

  3. 4-pin JST Qwiic connect connector.

  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

IV. Pinout

This table shows how the pinout on X-NODE Digital Inputs corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

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 “XN01” 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 and character 10 respectively on the ACII table. Configure your serial port/MCU to send these characters at the end of every command.

I2C protocol.

To communicate with the X-NODE 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).

I2C settings:

  • Max communication speed: 100 kHz

  • Address: 7 bits

Note: make sure there isn’t other device with the same address connected, if needed, change the X-NODE I2C address using ASCII commands (see UART protocol section).

Reading:

VI. Downloads

Last updated