- ESP-32:The ESP32 makes it easy to use the Arduino IDE and the Arduino Wire Language for IoT applications. This ESp32 IoT Module combines Wi-Fi, Bluetooth, and Bluetooth BLE for a variety of diverse applications. This module comes fully-equipped with 2 CPU cores that can be controlled and powered individually, and with an adjustable clock frequency of 80 MHz to 240 MHz. This ESP32 IoT WiFi BLE Module with Integrated USB is designed to fit in all ncd.io IoT products.
- IoT Long Range Wireless Vibration And Temperature Sensor: IoT Long Range Wireless Vibration And Temperature Sensor is battery operated and wireless, meaning that current or communication wires need not be pulled to get it up and operating. It tracks the vibration information of your machine constantly and captures and operate hours at full resolution together with other temperature parameters.In this we are using NCD’s Long Range IoT Industrial wireless vibration and temperature sensor, boasting up to a 2 Mile range using a wireless mesh networking architecture.
- Long Range Wireless Mesh Modem with USB Interface
- Arduino IDE
- PubSubClient Library
Steps to send data to labview vibration and temperature platform using IoT Long Range Wireless Vibration And Temperature Sensor and Long Range Wireless Mesh Modem with USB Interface-
- First, we need a Labview utility application which is ncd.ioWireless Vibration and Temperature Sensor.exefile on which data can be viewed.
- This Labview software will work with ncd.io wireless Vibration Temperature sesnor only
- To use this UI, you will need to install following drivers Install run time engine from here64bit
- 32 bit
- InstallNI Visa Driver
- Install LabVIEW Run-Time Engine and NI-Serial Runtime.
- Getting started guide for this product.
Uploading the code to ESP32 using Arduino IDE:
- Download and include the PubSubClient Library and Wire.h Library.
- You must assign your unique Ubidots TOKEN, MQTTCLIENTNAME, SSID (WiFi Name) and Password of the available network.
- Compile and upload the Ncd__vibration_and_temperature.ino code.
- To verify the connectivity of the device and the data sent, open the serial monitor.If no response is seen, try unplugging your ESP32 and then plugging it again. Make sure the baud rate of the Serial monitor is set to the same one specified in your code 115200.
Serial monitor output.
Making the Ubidot work:
- Create the account on Ubidot.
- Go to my profile and note down the token key which is a unique key for every account and paste it to your ESP32 code before uploading.
- Add a new device to your ubidot dashboard name esp32.
Click on devices and select devices in ubidot.
Now you should see the published data in your Ubidots account, inside the device called "ESP32".
- Inside device create new variable name sensor in which your temperature reading will be shown.
Create New variable
Now you are able to view the Temperature and other sensors data which was previously viewed in serial monitor.This happened because the value of different sensor readings is passed as a string and store in variable and publish to variable inside device esp32 .
- Create dashboard in ubidots.
Go to data select dashboard and inside dashboard create different widgets and add new widget to your dashboard screen.