element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Safe and Sound
  • Challenges & Projects
  • Design Challenges
  • Safe and Sound
  • More
  • Cancel
Safe and Sound
Blog Safe&Sound: Wearable Tracking Device for Miners - 11: Interfacing TMP007 Temperature Sensor
  • Blog
  • Forum
  • Documents
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: sunnyiut
  • Date Created: 6 Jul 2017 3:33 PM Date Created
  • Views 156 views
  • Likes 3 likes
  • Comments 4 comments
  • msp432_launchpad
  • boostxl-sensors
  • safe and sound design challenge
  • msp432p401r
  • tft
  • mikroplot
  • tmp007
Related
Recommended

Safe&Sound: Wearable Tracking Device for Miners - 11: Interfacing TMP007 Temperature Sensor

sunnyiut
sunnyiut
6 Jul 2017

Title: Wearable Tracking Device for Miners

By: sunnyiut             

Previous Blogs
01: Introduction02: The Kit
03: Review_MSP432P401R04: Review_430BOOST-SHARP96
05: Review_BOOSTXL-SENSORS06: Review_DLP7970ABP
07: Project proposal update08: TFT interfacing
09: Light sensor interfacing10: Environmental sensor interfacing

 

Design Challenge: Safe and Sound Wearables

Blog number: 11

 

 

 

 

Intro:

This blog is based on MSP432P401r and TMP007 Temperature Sensor interface.

 

 

Objective:

 

The TMP007 Temperature Sensor will provide contact-less temperature measurement of an object.

 

According to my project proposal I have to design a wearable device mounted on the wrist of the Miners.

This wearable device consists of several sensors to collect environmental information.

 

In this blog post, I'll focus on

     - the interfacing of the TMP007 and the MSP432P401r MCU

     - display the temperature on TFT

     - send data to PC UART for graphical representation

 

Components:

  • Sensors Boosterpack
  • MSP432 Launchpad
  • TFT Proto
  • mikroplot [UART PC GUI]

 

Compiler:

MikroC pro for ARM - from MikroElektronika

 

Firmware:

Full source code and circuit diagram can be found in LIBSTOCK.

 

TMP007 [BOOSTXL-SENSORS]:

 

BOOSTXL-SENSORS board carries this TMP007 Infrared Thermopile  Sensor. It has integrated MATH engine to combine the corresponding change in voltage across the thermopile with the internal cold-junction reference temperature sensor to calculate the target object temperature.

 

Features -

  • Contact-less temperature measurement
  • nonvolatile memory for storing calibration coefficients
  • 14 bit resolution
  • -40'C to 125'C operation
  • communicates through I2C
  • HW interrupt

 

ADD0 and ADD1 pins are connected to ground in BOOSTXL-SENSORS boosterpack which gives -

TMP007  I2C address = 0x40

 

Interfacing:

 

// TMP007 I2C address (ADD0 and ADD1 pins are connected to ground)
#define TMP007_I2C_ADDR   0x40
char tmp_data[2];
/*******************************************************************************
 reading temperature data from TMP007 sensor
*******************************************************************************/
float Get_TMP007_Data() {
  int TemperatureSum;
  float Temperature;

  tmp_data[0] = 0x03;                                                           // Object Temperature Result register address

  I2C1_Write(TMP007_I2C_ADDR,tmp_data,1,END_MODE_RESTART);                      // Send byte (tmp_data[0])
  I2C1_Read(TMP007_I2C_ADDR,tmp_data,2,END_MODE_STOP);                          // Read temperature data and store it in tmp_data

  TemperatureSum = ((tmp_data[0] << 8) | tmp_data[1]) >> 2;                     // Justify temperature values

  if(TemperatureSum & (1 << 13))                                                // Test negative bit
    TemperatureSum |= 0xE000;                                                   // Set bits 13 to 15 to logic 1 to get this reading into real two complement

  Temperature = (float)TemperatureSum * 0.03125;                                // Multiply temperature value with 0.03125 (value per bit)

  return Temperature;                                                           // Return temperature data
}

 

Circuit Diagram:

 

     MSP432P401r with TMP007                                                            TFT display connection

 

Output:

The sensor gives ~32'C at room temperature. When I put my finger about 3cm above the sensor it detects a temperature ~36.3'C.

 

At room temperature, when no object is placed above the sensor, the reading varies from 31.9'C to 32.4'C. On the other hand when I placed my finger 3cm above the sensor it took more than 3 seconds to rise upto the max temperature [36.3'C].

 

To check the response of the sensor on a hot object, I placed the Soldering Iron 3cm above. The max operational limit specified in the datasheet is 125'C. But it rises upto 209'C in this case.

It's also written in the product page that

"It is possible to measure object temperature beyond the device operating range as long as the device itself does not exceed the operating temperature range (–40°C to +125°C)."

 

However, it takes time and gradually reaches the highest reading. Stays there for a few seconds and then decreases as the Iron gets cool.

 

 

** I have added a visual notification on detecting hot object. If the temperature reading is below a threshold point the "FIRE" icon is dimmed. When the temperature rises above the threshold, the "FIRE" icon becomes bright.

 

Anonymous

Top Comments

  • DAB
    DAB over 5 years ago +2

    Nice update.

     

    It will be interesting to see some actual data from a working mine.

     

    I have heard about the increase in temperature, moisture and air pressure, but I am very interested to see what the actual…

  • Jan Cumps
    Jan Cumps over 5 years ago in reply to DAB +1

    Slightly off-topic, but the largest Iguanadon find was in the Belgian mine of Bernissart.

  • DAB
    DAB over 5 years ago in reply to Jan Cumps +1

    Yes, I would love to know about all of the treasures hidden beneath the surface.

     

    We think we know history, but we have literally just touched the surface.  Pun intended.

     

    I find objects found in mines and…

Parents
  • DAB
    DAB over 5 years ago

    Nice update.

     

    It will be interesting to see some actual data from a working mine.

     

    I have heard about the increase in temperature, moisture and air pressure, but I am very interested to see what the actual conditions are from a real measurement perspective.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to DAB

    Slightly off-topic, but the largest Iguanadon find was in the Belgian mine of Bernissart.

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • More
    • Cancel
  • DAB
    DAB over 5 years ago in reply to Jan Cumps

    Yes, I would love to know about all of the treasures hidden beneath the surface.

     

    We think we know history, but we have literally just touched the surface.  Pun intended.

     

    I find objects found in mines and excavations fascinating.  So much to learn, so little time.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • More
    • Cancel
  • sunnyiut
    sunnyiut over 5 years ago in reply to Jan Cumps

    thanks Jan for sharing the link.....

    very interesting indeed

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • More
    • Cancel
Comment
  • sunnyiut
    sunnyiut over 5 years ago in reply to Jan Cumps

    thanks Jan for sharing the link.....

    very interesting indeed

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube