---
title: "NORVI XN-MAIN – USER GUIDE"
description: "## Overview The NORVI XN-MAIN is a modular industrial controller built around the ESP32-S3-WROOM-1U-N16R2. It combines Ethernet, RS-485, Wi-Fi/Bluetooth and 4G LTE Cat 1 cellular connectivity with a 2.0″ touch display, a real-time clock and microSD storage. A 50-pin expansion…"
url: "https://norvi.io/docs/norvi-xn-main-user-guide/"
updated: "2026-11-27"
category: NORVI X / NORVI XN MAIN
---

# NORVI XN-MAIN – USER GUIDE

## Overview

The NORVI XN-MAIN is a modular industrial controller built around the ESP32-S3-WROOM-1U-N16R2. It combines Ethernet, RS-485, Wi-Fi/Bluetooth and 4G LTE Cat 1 cellular connectivity with a 2.0″ touch display, a real-time clock and microSD storage. A 50-pin expansion port lets you add NORVI X expansion modules for digital and analog I/O, relays, temperature sensing and more, scaling up to 200 I/O points.

What sets the XN-MAIN apart from the NORVI X CPU range is its two-processor design. Your application runs on the main ESP32-S3, while a separate OTA & Communication Manager handles the cellular connection, remote firmware updates, rollback and remote serial logs. You never write modem or network code, and the device stays reachable even if your application crashes.

This guide covers hardware, power, I/O and expansion, cellular connectivity, claiming your device, over-the-air (OTA) updates, monitoring, the display and indicators, troubleshooting and full specifications.

## Key Features

- ESP32-S3-WROOM-1U-N16R2 main controller
- Independent OTA & Communication Manager (4G LTE Cat 1, remote updates, rollback, remote serial logs)
- 2.0″ TFT SPI touchscreen (240 × 320, ST7789)
- Built-in Ethernet (W5500)
- Built-in RS-485, half-duplex with automatic direction control
- Wi-Fi 2.4 GHz and Bluetooth
- DS3231 hardware real-time clock
- microSD card slot
- USB programming and debugging
- DIN-rail mountable enclosure with pluggable terminals
- Scales up to 200 I/O points via NORVI X expansion modules
- CE / EMC compliant (EN 61131-2:2007, EN 61010-1:2010+A1:2019, EN IEC 61010-2-201:2018, 2014/30/EU)

## Safety Information

**Warning:**Disconnect all power sources before installing, wiring, or servicing the NORVI XN-MAIN. Failure to do so may result in electric shock or damage to the equipment

- Install and wire this device only if you are a qualified electrician or trained technician familiar with industrial control equipment.
- Disconnect the 24 V DC supply before wiring, mounting or removing the unit or any expansion module.
- Use a 24 V DC supply rated for at least 1 A. Never exceed 28 V DC.
- Mount the unit on a DIN rail inside a suitably rated enclosure (the module has an IP20 protection rating and is not designed for direct outdoor or wash-down exposure).
- Keep the operating environment within –40°C to +85°C and avoid condensing humidity.
- Ensure adequate spacing around the unit and expansion modules for ventilation and wiring access.
- Do not connect or disconnect expansion modules or communication wiring while the system is powered.
- Do not open the enclosure. There are no user-serviceable parts inside.
- Follow all local and national electrical codes applicable to industrial control panel wiring.

## Hardware Overview

The XN-MAIN is housed in the NORVI X enclosure (81 × 104 × 37.5 mm) with push-in terminals at the bottom and DIN-rail (TH35) mounting. The front carries the 2.0″ touch display, two buttons and the RUN and ERROR indicators. The USB programming port, microSD slot and expansion connector are on the unit as described below.

#### Wireless and Wired Communication

- **Ethernet**:**W5500 on the shared SPI bus (CS IO1, reset IO2, interrupt IO4).**
- **RS-485**:**half-duplex, TX on IO15 and RX on IO16. Direction control is automatic, so no direction GPIO is needed in your code.**
- **Wi-Fi and Bluetooth**:**provided by the ESP32-S3 (2.4 GHz).**
- **Cellular**:**4G LTE Cat 1, managed entirely by the OTA & Communication Manager (see section 6)****.**

#### Memory

## The Two Processors

The XN-MAIN uses two controllers with distinct roles. This separation keeps remote connectivity and maintenance out of your application.

- Your sketch runs only on the ESP32-S3. You program it through Arduino IDE or Neural Studio.
- The OTA & Communication Manager is not user-programmable and is not accessed from your code.
- Cellular connectivity is managed by the OTA and Communication Manager. No modem or network code is required in your firmware.
- Rollback to the previous firmware is supported, but it is not performed automatically if an update fails.
- The device remains reachable for remote management even if your application stops responding.

## Power

Power the XN-MAIN from a regulated 24 V DC supply.

The supply current must also cover any expansion modules you attach. The 24 V and 5 V rails are available on the expansion port (see section 6).

**First power-up**

- Mount the unit on the DIN rail.
- Attach the antennas and insert the SIM card before applying power.
- Connect the 24 V DC supply to the power terminals.
- On power-up the display starts and shows the device start-up screen.

## GPIO Map

The XN-MAIN has no on-board field I/O. Add NORVI X expansion modules through the 50-pin expansion port. Modules connect over a shared bus, and you add only what your application needs.

| GPIO | Utilisation | Utilisation |
| --- | --- | --- |
| GPIO | CPU | Expansion Port |
| 0 | BOOT Button | NC |
| 1 | SCSN - Ethernet | IO1 |
| 2 | RSTN - Ethernet | IO2 |
| 3 | - | - |
| 4 | INTN - Ethernet | IO4 |
| 5 |  | IO5 |
| 6 |  | IO6 |
| 7 |  | IO7 |
| 8 | SDA | SDA |
| 9 | SCL | SCL |
| 10 |  | IO10 |
| 11 | MOSI | MOSI |
| 12 | SCLK | SCLK |
| 13 | MISO | MISO |
| 14 |  | IO14 |
| 15 | RS485 - TX | IO15 |
| 16 | RS485 - RX | IO16 |
| 17 |  | TX1 |
| 18 |  | RX1 |
| 19 | USB - DN | D_N |
| 20 | USB - DP | D_P |
| 21 |  | IO21 |
| 35 |  | IO11 |
| 36 |  | IO36 |
| 37 |  | IO13 |
| 38 | PCA9536 - RESET | RST_PCA |
| 39 |  | IO39 |
| 40 |  | IO40 |
| 41 |  | IO12 |
| 42 | SD CARD - CS | NC |
| 45 | CS - TFT DISPLAY | NC |
| 46 | DC - TFT DISPLAY | NC |
| 47 | RESET - TFT DISPLAY | NC |
| 48 | INTERRUPT - TOUCH PANEL | NC |

## Cellular and SIM

The XN-MAIN includes built-in 4G LTE Cat 1 connectivity. The connection is fully managed by the OTA & Communication Manager, so there is nothing to configure or program in your sketch.

**What you need to do**

- Attach the antennas to the antenna connectors.
- Insert an active SIM card with a data plan into the SIM slot, with the power off.
- Power the device and claim it in Neural Deploy (section 8).

The cellular link is used for OTA firmware updates, rollback, remote serial logs and diagnostics. Your application can still use Ethernet or Wi-Fi for its own data traffic.

**Check these first if the device shows Offline**

- Both antennas are attached.
- The SIM is active and has data service.
- The 24 V supply is connected.

## Claiming Your Device

The XN-MAIN is managed through Neural Deploy, a web-based device management platform that requires no software installation. Once you claim your device, you can update its firmware and watch live serial output over the air, without being next to it or connecting a USB cable.

#### Create an Account

- Open Neural Deploy at [https://deploy.norvi.io/](https://deploy.norvi.io/) in a web browser.
- Select Sign In or Register on the welcome page.
- Enter the required account details and complete sign-up.
- Sign in and enter your Organization name on the dashboard.

#### Claim the Device

Claim the device to your organization by entering the **Serial Number** and **Claim PIN** provided with it.

- Enter the Serial Number exactly as printed.
- The Claim PIN is on the device label or the provisioning card.
- After claiming, the **Last Seen** field shows when the device was last online.

Note: For more information, see[Getting Started with NORVI XN-MAIN](https://norvi.io/docs/getting-started-with-norvi-xn-main/).

## Programming and OTA Updates

You can load firmware or flash firmware in two ways: through the USB port, or over the air through Neural Deploy. You can write your code in Arduino IDE or in Neural Studio, the web based programming ide at [https://ide.norvi.io/](https://ide.norvi.io/) dashboard.

#### Arduino IDE Settings

Install the esp32 by Espressif Systems board package and any libraries your code needs, then set the following under Tools:

A sample test sketch (NORVI_XN-MAIN_Test_Code) and the NORVI libraries are available in the NORVI Controllers GitHub repository: https://github.com/NORVIControllers/NORVI-X-Version-02/tree/main

### NORVI XN-MAIN GitHub Resources

Source code and libraries for the NORVI XN-MAIN.

 [View on GitHub ↗](https://github.com/NORVIControllers/NORVI-X-Version-02/tree/main)

#### Export the Compiled Binary

In Arduino IDE, compile your sketch and export the compiled binary. You will upload this file to Neural Deploy.

#### Create a Firmware Library

- In Neural Deploy, open the Firmware section.
- Enter a name for the firmware library and select Create.
- Open the new library (for example, NORVI XN-MAIN Project).
- Enter the firmware Version and Label.
- Upload the exported binary file, then select Upload Release.

#### Assign the Firmware

- Assign the firmware library to your device.
- Update the firmware

#### Monitor the Update

Once assigned, the device downloads the firmware package, verifies its integrity and then flashes it. Progress is shown with these statuses:

When the status shows **Complete – health confirmed**, the new firmware is running correctly.

## Remote Monitoring: Live Serial and Pulse

Live Serial provides real-time access to the device's serial communication through Neural Deploy. It displays the messages generated by the application firmware, including status updates, execution logs and debugging information, so you can monitor execution and troubleshoot firmware issues remotely.

Live Serial is useful for:

- **Real-time monitoring:** view serial messages while the device is running.
- **Debugging:** identify errors and unexpected behaviour during execution.
- **Application diagnostics:** track program execution and the device's operational status.
- **Remote troubleshooting:** inspect serial logs without physical access to the device.

### Live Serial

Live Serial lets you view your device's serial output directly in Neural Deploy, with no USB cable. It shows the messages your firmware prints, such as status updates, logs and debug information.

![](https://norvi.io/wp-content/uploads/2026/11/Live-Serial.png)

### Pulse

Neural Pulse is a separate monitoring platform for checking your device remotely. You open it from Neural Deploy by clicking Pulse. There you can watch live serial output and review the history of past serial data.

![](https://norvi.io/wp-content/uploads/2026/11/Pulse.png)

**Live Serial**

Live Serial shows the messages your device prints in real time, such as status updates, logs and debug information.

**Serial history**

Turn on **Log serial data (background)** to record serial output while you are not watching. You can then open the history and review what the device printed earlier.

![](https://norvi.io/wp-content/uploads/2026/11/Serial-history.png)

![](https://norvi.io/wp-content/uploads/2026/11/Serial-history-2.png)

**Optional: view device logs**

In Neural Deploy, click Neural Pulse to open the Pulse platform, where you can view the logs of your devices.

![](https://norvi.io/wp-content/uploads/2026/11/view-device-logs.png)

![](https://norvi.io/wp-content/uploads/2026/11/view-device-logs-2.png)

## LEDs and Display

#### TFT Touch Display

## Troubleshooting

**If the problem continues, contact**[support@norvi.io](mailto:support@norvi.io)

## Support and Resources

Datasheet: [https://norvi.io/docs/norvi-xn-main-datasheet/](https://norvi.io/docs/norvi-xn-main-datasheet/)

Getting Started: [https://norvi.io/docs/getting-started-with-norvi-xn-main/](https://norvi.io/docs/getting-started-with-norvi-xn-main/)

Product page: [https://norvi.io/products/norvi-xn/](https://norvi.io/products/norvi-xn/)

Neural Deploy: [https://deploy.norvi.io/](https://deploy.norvi.io/)

Neural Studio: [https://ide.norvi.io/](https://ide.norvi.io/dashboard)

Source code and libraries: https://github.com/NORVIControllers/NORVI-X-Version-02

### NORVI XN-MAIN GitHub Resources

Source code and libraries for the NORVI XN-MAIN.

 [View on GitHub ↗](https://github.com/NORVIControllers/NORVI-X-Version-02)

Email: [support@norvi.io](mailto:support@norvi.io)

     Arduino IDE Board Package

## NORVI XN-MAIN

Add NORVI boards to the Arduino IDE and pick **NORVI XN-MAIN** from the **Tools → Board** menu. Flash size, PSRAM, USB CDC and pin names are already set for you.

**Requirements:** Arduino IDE 2.x and "esp32 by Espressif Systems".

     Board Package URL   JSON       `https://raw.githubusercontent.com/NORVIControllers/NORVI-X-Version-02/main/cpu/Boards/arduino/package/package_norvi_index.json`             [For More Details](https://github.com/NORVIControllers/NORVI-X-Version-02/tree/main/cpu/Boards/arduino)

Copy the URL and paste it into Arduino IDE → Preferences → Additional Boards Manager URLs.
