XN02 - Digital Outputs
Last updated
Last updated
X-NODE digital outputs is a SoM (System on module) with 8 surface mount indicator LEDS built-in, 8 digital output pins and GND pin.
It possesses wide-angle LED’s, heat dissipation of 40mW, a current draw of 20mA each and an operating temperature range from 0 °C hasta 80 °C. This X-NODE is ideal for general purpose indicator, to display device states or to send digital signals to different components like actuators.
The X-NODE Digital Outputs is a SoM (System on Module) that possess all the necessary hardware components to generate 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 Outputs 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.
External digital output port.
Indicator LED´s.
4-pin JST Qwiic connect connector.
Hardware controller unit.
UART<>I2C serial ports.
X-NODE model.
X-NODE type.
mikroBUS™ connector.
Hardware revision.
Core component name of the X-NODE device
Type
Digital Outputs
Applications
IoT projects and general-purpose signal generation, useful for actuator controllers or state indicators. Any device that requires LED to display states.
Key features
8 surface mount indicator wide-angle LED’s built-in, heat dissipation of 40mW, a current draw of 20mA each and operating temperature range from 0 °C hasta 80 °C. 8 digital output pins and GND pin, 8 digital outputs through holes and 1 GND through hole.
Compatibility
Interfaces
UART, I2C
Dimensions
65 x 26 x 21 mm
Voltage
3.3 V
This table shows how the pinout on X-NODE Digital Outputs corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
The X-NODE device can operate using ASCII commands through the UART serial port or through I2C protocol for advanced users.
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 “XN02” 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.
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.
XN02A?<CR+LF>
Test if serial communication is successful.
Response: OK<CR+LF>
XN02A+V<CR+LF>
Gets the firmware version of the X-NODE
Response: XN02A=Version<CR+LF>
i.e.: XN02A=0.1<CR+LF>
XN02A+ID=(A-Z)<CR+LF>
Changes the device Index, only A-Z uppercase values are allowed, after receiving an “OK” response all subsequent commands should use the new device ID, even after powering off the device.
Response: OK<CR+LF>
i.e.: XN02C+ID=H<CR+LF>
XN02A+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.: XN02A+TW=28<CR+LF>
XN02A+S =(Out1)(Out2)(Out3)(Out4)(Out5)(Out6)(Out7)(Out8)<CR+LF>
Changes the current state of the 8 outputs, the state is displayed through the LED’s, it allows two values: 1 (HIGH) or 0 (LOW), written from left to right, where the first value on the left is Output 1.
Response: XN02A=OK<CR+LF>
i.e.: XN02A+S=11001100<CR+LF>
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:
&
Schematic
Dimensions
Buy