Skip to content

This example demo describes how to configure the accurate temperature sensor P3T1085UK for temperature measurement. This sensor can be used in many industrial and medical applications.

License

Notifications You must be signed in to change notification settings

nxp-appcodehub/dm-p3t1085uk-temperature-sensor-driver-with-demo-app

Repository files navigation

NXP Application Code Hub

P3T1085UK: ±0.5 °C accurate temperature-to-digital converter with a -40 °C to +125 °C range.

  • This example demo describes how to configure the accurate temperature sensor P3T1085UK for temperature measurement. This sensor can be used in many industrial and medical applications.

  • NXP’s next-generation sensors feature a strong balance of intelligent integration, logic and customizable platform software to enable smarter, more differentiated applications.

  • Easy enablement is of utmost importance to reduce evaluation, development & time to market. NXP’s Sensor development ecosystem is making it easier for customers to accelerate their sensor product development.

  • The image below shows Sensors Development Ecosystem Offering:

Boards: FRDM-MCXN947 , FRDM-MXCA153

Accessories: nxp_p3t1085uk_ard

Categories: Sensor

Peripherals: I2C

Toolchains: MCUXpresso IDE

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Run Example Projects
  5. Run P3T1085UK Demo Example
  6. FAQs
  7. Support
  8. Release Notes

1. Software

2. Hardware

  • FRDM-MCXN947 MCU board
  • FRDM-MCXA153 MCU board
  • [P3T1085UK-ARD]
  • Personal Computer
  • Mini/micro C USB cable

3. Setup

3.1 Step 1: Download and Install required Software(s)

3.2 Step 2: Clone the APP-CODE-HUB/dm-p3t1085uk-temperature-sensor-driver-with-demo-app

  • Clone this repository to get the example projects:
  • Change directory to cloned project folder:
    cd dm-p3t1085uk-temperature-sensor-driver-with-demo-app

Note: If you are using Windows to clone the project, then please configure filename length limit using below command

git config --system core.longpaths true

3.3 Step 3: Build example projects

  • Open MCUXpresso IDE and select a directory to create your workspace.
  • Install MCXUpresso SDK 2.14.0 for FRDM-MCX947 (drag and drop SDK zip into "Installed SDK" view) into MCUXpresso IDE.
  • Go to "Quickstart Panel" and click on "Import Project(s) from file system",
  • Select "Project directory (unpacked)" and browse to the cloned project folder.
  • Select example projects that you want to open and run.
  • Right click on project and select build to start building the project.

4. Run Example Projects

  • Connect the chosen example project HW: FRDM-MCXN947 with P3T1085UK-ARD.

  • Right click on project and select "Debug As". Select MCUXpresso IDE LinkServer (inc. CMSIS DAP) probes.

  • Connect a USB cable between the host PC and the MCU-Link USB port on the target board.

  • Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

  • Note : Refer internal readme for detailed information based upon prefered base board(MCXN947/MCXA153).

    Example path : "dm-p3t1085uk-temperature-sensor-driver-with-demo-app\p3t1085uk_demo_app\frdmmcxn947\frdmmcxn947_p3t1085uk_example\doc>"
    

5. Run P3T1085UK Demo Example

  • User need to check COM port after connecting USB cable between Host PC and Target Board via device manager.

  • Open PUTTY/Teraterm application installed on your Windows PC with Baudrate 115200 and assigned COM port as mentioned in above step.

Note 1: By default I2C controller operates in Interrupt mode. For I2C controller to operate in EDMA mode, Define RTE_I2C2_DMA_EN 1 in RTE_Device.h file under the board directory.

  • After right click on project and select "Debug As", Demo application will run in interactive mode. When the demo runs successfully, you can see the logs printed on the terminal.

Main menu will look like:

  1. Press #1 to read the temperature and print on the console.

    -Temperature will be printed in format:

  1. Use option 2 to 5, to change the low threshold and high threshold temperature value.

    -Steps to set T-High value:

    a) Press #2 on main menu, below option will appear:

   b) Enter value and press enter set T-High.

  1. User can choose option from 6 to 15, to change the device configuration settings.

For example : Use Option #10 (Set Functional Mode)

-Steps to set Functional Mode :

  a) Press #10 on main menu, below option will appear: 

  b) Press option (0,1,2) to set required functional mode.

-Steps to Clear ALERT Signal

   a) Enable ALERT using #2 or #4 options.

   b) To Check that Alert Status use option #17

   c) Press #16 to clear ALERT Signal. 
   d) Set valid value and Press enter. 

   e) Again check #17 to confirm Alert status. 

Note 2: This test application will monitor the temperature continuously. Different options are available to change the configuration settings of sensor device and device to operate in different mode. In case of under-temperature and overtemperature condition an ALERT LED D2 Glow on Arduino Board.

Note 3: P3T1085_I2C_Initialize() API should be called first in order to use other APIs for different device features. User can refer p3t1085uk_drv.h header file for more information.

6. FAQs

No FAQs have been identified for this project.

7. Support

Provide URLs for help here.

Project Metadata

Board badge Board badge

Category badge

Peripheral badge

Toolchain badge

Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.

Warning: For more general technical questions regarding NXP Microcontrollers and the difference in expected funcionality, enter your questions on the NXP Community Forum

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

8. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub March 28th 2024
2.0 Additional features added for P3T1085UK on FRDM-MCXN947 and Complete features added for P3T1085UK on FRDM-MCXA153 April 30th 2024

About

This example demo describes how to configure the accurate temperature sensor P3T1085UK for temperature measurement. This sensor can be used in many industrial and medical applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages