Prepare
Scenario, outcomes, and setup
You are building a cloud-connected distance-monitoring node. The Arduino Mega and LabVIEW measure distance locally, publish JSON telemetry to ThingsBoard Cloud, and receive a persistent shared-attribute command that controls a local LED. This is the first full monitoring-and-control IoT loop in the course.
Cloud workflow
The ThingsBoard stage will create the cloud account and device. This stage only introduces how local sensing, telemetry, and remote control fit together.
Device model
Create one device named Lab7-Ultrasonic-StudentName. One physical project normally equals one ThingsBoard device, not one device per sensor or actuator.
Data model
Publish distance_cm and actual led_state as telemetry. Receive desired led_switch as a shared attribute.
Course software environment
Use Windows 10 or 11, Arduino Mega 2560, LabVIEW 2026 Q1, NI-VISA 2026 Q1, and the LabVIEW Hobbyist Toolkit/LINX 2026 Q1. Prefer 64-bit LabVIEW unless the installed MQTT library specifically requires another bitness.
















