- Your local Node-RED simulation connected to ThingsBoard Cloud over MQTT.
- A compact motor dashboard built with the Configure with AI feature in ThingsBoard, including electrical readings and vibration trends.
- Alarm conditions for motor faults, high vibration and high temperature.
Five steps, from your first prompt to alarms
Step 1: Create your account
Step 2: Prompt a simple gauge
Step 3: Connect live simulation
Step 4: Expand with AI
Step 5: Add and check alarms
Before you start
Use these Code & Compile resources if you need the basics:- ThingsBoard: The introduction explains the platform; Cloud Setup covers registration and credentials.
- Node-RED: Browse the learning resources. Install it using the official Windows guide or other installation options.
- Edge demo: This guide reuses its MQTT example and motor simulation as an importable flow. Here, ThingsBoard Cloud EU and AI replace the local ThingsBoard setup. No PLC project or Python/HTTP example is needed.
Hardware & Software Used
Hardware- Development PC / laptop with an internet connection. No physical motor is needed.
- ThingsBoard Cloud EU with Tenant Administrator access. The EU Free plan includes 2.5 million monthly AI credits; Prototype includes 4 million. Free can complete this guide with sufficient remaining credits and device, telemetry, storage and alarm allowances. Check API usage before Step 2; repeated AI changes consume more credits.
- Node-RED running on your PC.
- The example Node-RED project attached in Step 3.
Step 1 – Create your Cloud account
Open ThingsBoard Cloud EU. Sign in or select Sign up, complete registration, and verify your email.
ThingsBoard Cloud EU sign-in page.
Step 2 – Create a simple RPM dashboard
Enter the simple prompt

The simple prompt in AI Solution Creator.
Review and create the solution
Step 3 – Connect the example Node-RED simulation
The attached flow packages the Edge demo’s motor simulation with a secure MQTT connection. Install Node-RED first using the links under Before you start.Import the project
industrial-motor-cloud-flow.json

Inject → motor simulation → JSON → ThingsBoard MQTT, with Debug samples.
Industrial motor simulator Function. The plain-text source under Resources is optional; do not add another simulator.The Inject node starts each sample. The Function calculates the motor readings, JSON serialization prepares the message, and the MQTT node sends it to ThingsBoard. Debug lets you inspect the same readings locally.Link the motor device

The motor device's credential controls.

MQTT uses port 8883 with TLS and certificate verification.
Check the data in ThingsBoard
- Open Devices & assets in ThingsBoard.
- Click Devices.
- Open Industrial Motor 01.
- Click Latest telemetry.
- Find speedRpm, the simulated motor speed.
- Watch its value and Last update time for at least 15 seconds. Timestamps should advance every 5 seconds.
- Open Dashboards.
- Open Motor RPM to see the gauge follow the speed.

Latest speedRpm and its update time.

The Motor RPM gauge follows the simulated speed.
Step 4 – Build the bigger dashboard with AI

Configure with AI opens beside the dashboard.
- Open Dashboards.
- Open Motor Overview.
- Watch the electrical values, RPM gauge and vibration chart change as the simulation runs.
- Click Details to see the secondary measurements.
- Click Back to return to the overview.
Step 5 – Add alarm conditions with AI
An Alarms Table displays alarms; the rules below create them.Open the alarm assistant

The three motor alarm rules.
Give the alarm prompt
Check the result
Where AI still needs a human
- Unrequested resources: Review proposals and remove extras before approving.
- Needle gauge: AI cannot select the analogue Speed gauge. Use the optional manual instructions below, or see the ISO-banded Speed gauge built by hand in the Vibration Monitoring guide.
- Font size and scaling: These controls are not exposed in this AI workflow; use Edit mode when available.
- Alarm history: AI cannot set a separate Alarms Table time window here. Select a longer global dashboard window for older alarms.
- Rule scope: AI may attach rules to a device profile, affecting every device using it. Confirm the intended scope.
Your result – a bigger dashboard using AI-supported widgets
You now have electrical readings, motor status, speed, vibration, Details navigation and alarms that activate and clear. This completes the AI workflow.
Motor Overview with electrical readings, status cards, RPM, vibration and alarm history.
Optional manual editing
Optional manual editing
speedRpm; set RPM, min 0, max 1600, and 0 decimal digits, then enable the digital value. For the pictured style, use Motor speed as the Units title, #048AD3 for Arrow and scale default color, and white for Plate color. Replace the old RPM widget and Save. See the Speed gauge guide.
The optional needle gauge in the manual widget preview.
Resources
Node-RED Motor Simulation Flow
The complete flow: five-second Inject, motor simulator Function, JSON serialization, secure MQTT output and Debug. Add only your device access token after import.industrial-motor-cloud-flow.json
Simulator Source Code (optional)
The same Function code as plain text, for reading or building a flow manually. It is already included in the flow above; do not add it again.industrial-motor-simulator.txt
ThingsBoard Dashboard and Alarm Rules
The Node-RED flow, the AI-generated Motor Overview dashboard export, all three alarm definitions and a README with import notes. No tokens or telemetry history are included.motor-ai-example-project.zip
Further reading
- Next step with real hardware: Real-Time Vibration Monitoring with ThingsBoard and Calculated Fields uses a physical Balluff sensor, a virtual PLC and ThingsBoard Calculated Fields.
- Official ThingsBoard guides: AI Solution Creator, dashboard AI and alarm-rule AI.
- Simulation limits: values and faults are synthetic, and in-memory counters reset when Node-RED restarts.
availabilityindicates running time, not OEE.