ThingsBoard (Edge Setup)
This guide shows how to build a complete end-to-end IIoT system using ThingsBoard running on an edge device and simulated telemetry data.
Unlike fragmented solutions that require multiple tools glued together, ThingsBoard provides the full system operators actually use, from device connectivity to role-based dashboards, out of the box.
By the end of this guide, you will have:
ThingsBoard running on a reComputer R2100
A device connected via MQTT
Simulated telemetry generated from Node-RED. In our guide, we will be using Node-RED to emulate device data for this setup. Learn more about Node-RED here
A live industrial dashboard (motor, energy, vibration, etc.)
Optional RPC control from the dashboard to the device
Want to get started with ThingsBoard? Sign up here.
Hardware & Software Used
Hardware
reComputer R2100 (Edge device) from Seeed Studio
Development PC / Laptop
Software
ThingsBoard Community Edition (CE)
Node-RED (for sending simulated telemetry data)
MQTT Broker (built into ThingsBoard)
Step 1 – Install ThingsBoard on the reComputer R2100
Install ThingsBoard
You can follow the instructions given on thingsBoard documentation here: https://thingsboard.io/docs/user-guide/install/rpi/?utm_source=inf&utm_medium=rjvr&utm_campaign=edgesetup
Once you have finished installing ThingsBoard, come back here.
Step 2- Start ThingsBoard and open the WebUI
Open WebUI
Open this on your browser: http://192.168.0.195:8080 where 192.168.0.195 is the IP address of the edge device.
Log in as Admin
Log in using the following credentials:
Username: sysadmin@thingsboard.org
Password: sysadmin


Create a new Tenant
Multitenancy in ThingsBoard enables you to manage multiple organizations within a single system. Each tenant works like an independent environment with its own users, devices, and dashboards.

The steps to create the tenant are given here: https://thingsboard.io/docs/user-guide/ui/tenants/?utm_source=inf&utm_medium=rjvr&utm_campaign=edgesetup
Step 3- Add a new device and send a test value
Let's add a device that sends telemetry data to ThingsBoard.
Add a device
The detailed steps of instructions on adding a device are given here: https://thingsboard.io/docs/getting-started-guides/helloworld/?utm_source=inf&utm_medium=rjvr&utm_campaign=edgesetup

Get ThingsBoard MQTT connection details
The ThingsBoard has an internal MQTT Broker running on port 1883. You will find more details for the connection in the wizard.
In the above lines of code, we can extract the following information needed to send telemetry data to ThingsBoard via MQTT:
Broker URL: 192.168.0.195 (IP Address of the edge device)
MQTT Port: 1883
MQTT Topic: v1/devices/me/telemetry
Username: IPOJzEMJHs0wWhzz2K3R
Password: — leave blank --
Send a test value to ThingsBoard via MQTT
Take the inject node as 'Timestamp' with an interval of 1 second.

Add a function node to simulate temperature value
Take the MQTT out node and set up the ThingsBoard's MQTT broker parameters as shown in the image:

Enter the username:

Define the MQTT topic:

Once the connection is established, send a test value as 'temperature':

Open the telemetry log to view the temperature value. Navigate to Entities > Devices > IoT1 > Latest Telemetry

Step 4- Update telemetry data in the Node-RED
To visualize multiple parameters on the ThingsBoard dashboard, we need additional telemetry data. Use the following code in the function node of Node-RED.
This updated code will give you multiple simulated values as shown below:

Step 5- Create Dashboard
We will now create a dashboard to visualize telemetry data. The step-by-step information on creating the dashboard is given here: https://thingsboard.io/docs/user-guide/dashboards/?utm_source=inf&utm_medium=rjvr&utm_campaign=edgesetup


Step 6- Import dashboard
ThingsBoard makes it really easy to share a dashboard. Follow these steps to duplicate my ThingsBoard dashboard.
🔁 About Entity Alias & Reusability (Important)
This dashboard is exported using an entity alias instead of a fixed device.
What this means:
The dashboard is not hard-coded to a specific device
It can be reused across different ThingsBoard instances
All widgets dynamically resolve the device from the dashboard state
During import, ThingsBoard will automatically use the default state entity defined in the dashboard. You can change this at any time to point the dashboard to your own device.
Importing Dashboard
Drag and drop the file into the wizard, then click 'Import.' You will find the imported dashboard in the list.
After importing the dashboard
If your device name is different from IoT1, follow these steps:
Open the imported dashboard
Click Edit → Aliases
Select the alias (for example:
IoT1)Choose your own Device
Save the dashboard
All widgets will update automatically. Click it to view all sample telemetry data on your screen.



Enjoy exploring the dashboard elements.
Why Entity Alias is recommended
Using Entity Alias instead of selecting a device directly:
Makes dashboards portable and shareable
Prevents broken widgets after import
Allows the same dashboard to work with multiple devices
Follows ThingsBoard's best practices for production dashboards
♥️ Work With Me
I regularly test industrial automation and IIoT devices. If you’d like me to review your product or showcase it in my courses and YouTube channel:
📧 Email: rajvir@codeandcompile.com or drop me a message on LinkedIn
Last updated









