DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Data
  4. Create Temperature Sensor Data Graphs With Temboo

Create Temperature Sensor Data Graphs With Temboo

Want to learn how to create temperature sensor data graphs with Temboo? Check out this tutorial to learn more about creating a sensor data graph.

Jessica Califano user avatar by
Jessica Califano
·
Sep. 11, 18 · Tutorial
Like (1)
Save
Tweet
Share
7.00K Views

Join the DZone community and get the full member experience.

Join For Free

Image title

In this tutorial, we'll show you how to use Temboo's Data Visualization tools to graph temperature sensor data in your browser. Here's what we'll cover:

  • Setting up the Texas Instruments LMT84 temperature sensor
  • Auto-generating sensor monitoring code
  • Accessing your sensor data graph
  • Triggering email alerts with your temperature sensor

Monitoring Sensor Data

Before You Start

  1. You'll need a free Texas Instruments to account to use their online IDE, CCS Cloud. You can sign up here.
  2. If you haven't already done so, prepare your board for making secure connections by following our Setting up CC3220 for SSL tutorial.
  3. Log in to Temboo. If you don't already have an account, you can sign up for free.

Set Up Your Sensor

  1. Once you're logged in, go to our code generation tool and find the Gmailv2 > Messages > SendMessage Choreo. A Choreo is a cloud-based process that connects your CC3220 to any web-based service, and every Temboo application is associated with at least one Choreo.
  2. Use the drop-down menu at the top of the Choreo page to select a CC3220 board as your device. Image title
  3. The first step in monitoring sensor data is to set up the sensor you wish to monitor. We provide unit converted data for specific sensor models, such as Celsius and Fahrenheit for temperature sensors. We also support unconverted data, which is reported as raw values for analog data and high/low for digital.

    For this tutorial, we're going to read temperature data from a Texas Instruments LMT84P. Our unit conversion formula assumes that your temperature sensor is connected to your CC3320's 5V pin for its voltage in and set up as specified in the sensor's data sheet.

    Using the virtual pinboard on the Choreo page, select pin 60 to set up your sensor. Select the category 'Temperature,' then choose the Texas Instruments LMT84LP. Image title
  4. Now that you've selected your sensor, Temboo will give you a choice of unit conversions — we'll use Fahrenheit.

    Each time you set up a sensor, you'll be asked to specify the safe bounds and the caution bounds. These bounds are used to determine the color coding of the data that appears on your graph. Safe data is colored green and data near the bounds is orange. Data outside the bounds is red.

    Set the safe bounds as 40º and 45º, and the caution bounds as 5º. That's all we need to do to set up our sensor, so press Save.
  5. We will focus on getting sensor data graphs running first. In part two of this tutorial, we will set up the email alert. So, for now, set a condition based on that sensor so that it doesn't trigger the email. Use the conditions interface to set a condition that will always be false so we don't send any emails. Image title

    Generate the Code

  6. Next, we'll generate the code that will send our sensor data to Temboo. Scroll down and find the code box. Click the triangle next to Simple Code to open the code menu and choose Enhanced Code. Image title
  7. Now, you will register your device. To do so, name your device and, optionally, give it a description. Specify the device location — this will allow you to view your devices on a map. For testing purposes, it's good to set a relatively short sensor interval so that you can see sensor data populate your graphs quickly. You can use the custom interval option for this. Press Save when you're done. Image title

     Run Your Code

  8. Click the "Send to CCS Cloud" button to the right of your generated code. Name your application, then click Send. Click the link that appears to visit the CCS Cloud IDE in your browser. Image title
  9. Plug your CC3220 board into your computer via USB. Select its USB connection in CCS Cloud via the Target > Connect COM port... menu.
  10. Now, run the code on your CC3220 from CCS Cloud. Image title

     View Your Sensor Data

  11. Now that the code is running on your CC3220, keep this Choreo page open and save it for later to use with part two of this tutorial. Open a new browser window to head over to your Devices page to see it in action. A virtual representation of your device will be waiting for you. Image title
  12. Select your new device, and you'll see a sensor data graph for the sensor that you set up. Over time, you'll be able to see sensor data graphs for various time periods. Additionally, at any time, you can request the latest value of your sensors. This is a handy feature for when you're between sensor intervals but want to know what's happening on your device. Image titleThat's it! You now know how to monitor sensor data with Temboo. Follow along with part two of this tutorial to add email alerts triggered by sensor values to your new application.
Data visualization

Published at DZone with permission of Jessica Califano. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 11 Observability Tools You Should Know
  • Solving the Kubernetes Security Puzzle
  • Monolithic First
  • Real-Time Analytics for IoT

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: