IOT Long Range Wireless Temperature and Humidity Sensor With Node-Red

Introducing NCD’s long-range wireless temperature-humidity sensor, boasting up to a 28 Mile range using a wireless mesh networking architecture. Incorporating the Honeywell HIH9130 temperature-humidity sensor transmits highly accurate temperature and humidity samples at user-defined intervals.

The onboard temperature sensor is rated for -25°C to 85°C or -13°F to 185°F and the humidity sensor is rated for 0 to 100% RH. It can be powered by just 2 AA batteries and an operational lifetime of 500,000 wireless transmissions. Battery life can be extended up to 10 years depending on environmental conditions and the data transmission interval. Optionally, this sensor may be externally powered.

With an open communication protocol, this IoT wireless temperature humidity product can be integrated with just about any control system or gateway. Data can be transmitted to a PC, a Raspberry Pi, to Microsoft Azure® IoT, or Arduino. Sensor parameters and wireless transmission settings can be changed on the go using the open communication protocol providing maximum configurability depending on the intended application. The long range, price, accuracy, battery life and security features of Long Range Wireless Temperature Humidity Sensor makes it an affordable choice which exceeds the requirements for most of the industrial as well as consumer market applications.

Step 1: Required Hardware and Softwares

Step 2: Steps to Send Data to LabView Utility

  • At first, To visualize the data, we need a Labview utility application.
  • To use this UI, you will need to install following drivers:

1. Install run time engine from here for 64 bit driver and 32 bit driver.

2. Install NI Visa Driver.

3. Install Labview Run time serial driver and LabVIEW Run-Time Engine.

4. Getting started guide for this product.

.

Step 3: Setting Up Node-Red.

Now that you have sensors running, we need a way to do something useful with that data.

  • First of all, you'll have to install Node-Red.
  • Once that’s done, you’ll need to enter your command line, or Power Shell for Windows users, navigate to the directory Node-RED is installed in.
  • Now type “npm i ncd-red-wireless node-red-dashboard“. This will install the nodes required to receive data from your wireless sensors and you can start Node-RED once this is done.
  • To start node server write node-red in the command prompt or terminal and press enter.

Step 4: Steps to Build the Flow:

At this point you’ll be viewing a large blank flow with a long list of nodes on the left-hand side, this sidebar is called the palette.

Step 5: ​Go Ahead and Drag a Wireless Gateway Node Over to Your Flow Canvas to Get Started.

NCD-red-wireless Provides the nodes that manage the serial connection, parse incoming sensor data, filter it by specific parameters, and allow you to configure the wireless sensors.

Step 6: Finding Your Wireless Sensors:

When you’ve delivered the node you’ll be able to view the info tab, which contains records about the node’s capability, this tab is well populated for maximum node-red packages and consists of treasured statistics, often you will now not want to view any other documentation outdoor of the info tab, so hold it in thoughts even as you're building your flows when you have a question approximately how a node works. The next element we want to do is configure the node, when you first add it you’ll note that there is a small triangle at the top right corner next to a blue dot, the triangle indicates that the node wishes extra configuration, the blue dot indicates that the node has no longer but been deployed as part of the flow.

  • Double click on the node to open up the configuration options.
  • Click on the pencil icon next to the Serial Device field to configure your USB router, this will open a second configuration panel that only has a few options.



Step 7: Click on the Magnifying Glass Next to the Serial Port Field and Select the Port That Corresponds With Your Router, Then Click the “Add” Button on Top.

Step 8: the Serial Device Field Will Now Be Populated Based on That Selection, and You Can Click “Done”, You Now Have Direct Access to Your Wireless Sensors! to View the Data Coming In.

Step 9: Now Go Back to Your Palette and Type “debug” Into the Search Field at the Top, Grab One of These Nodes and Drag It to the Right of Your Wireless Gateway

Step 10: Double Click on It and Change “msg.” to “complete Msg Object” Click Done

Step 11: Now Draw a Line Between the Two Nodes, and Click “Deploy” on the Top Right of the Window..

Step 12: Working With the Data:

Now out of your wireless sensors data is gathered and it is output to the “debug” tab, this "debug tab" is placed within the right sidebar subsequent to the information tab. To see the information is available to hit the reset button. In node-red records is surpassed among nodes in a json packet. When the msg object comes into the debug tab you may make bigger it to view the overall list of information that comes with it. This is extraordinarily useful in case you need to quickly see which sensors are checking in. The other issue this node gives is an easy way to interchange your router to the network identity that devices in configuration mode document on, simply hit the button on the left of the node and the tool will switch to the configuration network, hit it once more to return it to listening mode. Once we get the wi-fi tool nodes set up, they may be set to routinely configure a sensor whilst it enters configuration mode, so it’s always available to maintain such gateway nodes present at the flow for speedy configuring a device.

Step 13: Adding the Wireless Sensors:

we need to separate wireless sensor records domestically in order that we are able to display it, we could use a switch node to split out the messages from the gateway based totally on the mac address with or sensor type, but as I referred to, the wireless nodes truly incorporate extra functionality for configuring the sensors, so we’ll start with them to give you an extra entire image of how those structures can work. In case you haven’t already seen packets coming in from both of your sensors, cross in advance and hit the reset button on the only that hasn’t started. While a sensor assessment in through any serial device configuration node, the mac address and kind of sensor is cached in a pool so we are able to quickly find it for the duration of this next step.

  • Grab a Wireless Node from the palette and drag it onto the flow, double click on it to get it configured.

Step 14: Select the Serial Device From the Drop Down That You Used for the Wireless Gateway, Now Click the Magnifying Glass Next to “Mac Address” and Select One of the Available Options.

Step 15:

You’ll notice this automatically sets the sensor type for you, you can also give it a name to make it easier to identify. As noted in the info tab, the Serial Device for Config field is optional, and we won’t worry about it right now. The node you have just added effectively works as a filter on incoming sensor data, only passing through data for the mac address, or sensor type if no mac address is present.

Step 16: Displaying Up the Temperature/Humidity:

These nodes for the wireless sensors output a msg object with all of the same information as the Wireless Gateway node, just in a slightly different format, the Sensor Data itself is sent in the msg.payload, which is what most nodes use to interact with the msg itself.

  • Grab a “split” node from the palette, and place it to the right of the Temp/Hum node.

Step 17: Double Click and Check the Box Under Object That Says “Copy Key To”, This Will Split the Msg Into Multiple Objects, One for Each Property in the Payload, and Set the Topics for Those New Msgs to the Property Names.

Step 18: Now Add a “switch” Node, This Will Allow Us to Send Each Msg to a Specific Part of the Flow, One to Handle Temperature, and One Humidity. in the First Field Change “payload” to “topic”, Next to the “==”, Type “temperature”.

Step 19: Then Click the “+add” Button at the Bottom Left, in the New Field Type “humidity”. As You Can See Each of These Has a Unique Number to the Right, This Number Indicates Which Output the Msg Will Be Sent to When It Matches the Condition.

Step 20: Next Let’s Add a “gauge” From the Palette.

Step 21: Set the Label to “Temperature”, and the Value Format to “{{value | Number:2}}”, and the Units to “Celsius” You Can Alter the Range to the Minimum and Maximum Expected Temperature, I’m Using 0 and 50.

Step 22:

  • Another really cool feature of the flow builder is copy+paste, click on the gauge you just added and click ctrl+c (cmd+c on mac), then cntl+v, now you have a second gauge, double click on it to change the Label to Humidity, the Units to RH, and the range to 20 and 80.

Step 23:

  • Now draw wires from the Temperature/Humidity node to the split node, from the split node to the switch node, and from the switch node’s first (top) output to the temperature gauge node, and from the switch node’s second output to the humidity gauge.
  • Once that’s done click deploy.

Step 24: NODE-RED DASHBOARD:

Provides the ability to create a UI using the flow builder, provides charts, graphs, and a number of other visual elements we can use to display data, along with nodes to trigger a flow using user input. We will use some of these nodes to display the telemetry from your wireless sensors.

  • let’s check it out! There is a tab on the top right that says “Dashboard”.

Step 25: On the Top Right of That Tab Is the Little “new Window” Icon, Click on It to View Your UI.​

It is likely that the gauges aren’t displaying any information, because no sensor data has been reported since you deployed the flow, click the reset button on your temperature/humidity sensor to force it to check in and your gauges should jump up. You should now have real time data displaying!

Step 26: NODE-RED DASHBOARD OUTPUT:

Now as the temperature and humidity increases and decreases new data available inside the various variable.

Step 27: Below Is an Export of the Complete Dashboard Setup I Built for These Wireless Sensors.

Share

    Recommendations

    • Stone Concrete and Cement Contest

      Stone Concrete and Cement Contest
    • Classroom Science Contest

      Classroom Science Contest
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    2 Discussions