Example of temperature limit detection for STTS751 in X-NUCLEO-IKS01A3
Dependencies: X_NUCLEO_IKS01A3
Temperature Limit Demo Application with STTS751 based on sensor expansion board X-NUCLEO-IKS01A3
Main function is to show how to detect exceeding of temperature limits using the sensor expansion board and send a notification using UART to a connected PC or Desktop and display it on terminal applications like TeraTerm.
After connection has been established:
- the user can heat up or cool down the board and view the data using an hyper terminal.
Diff: main.cpp
- Revision:
- 3:3c8bce3cdf2f
- Parent:
- 0:1399adb8f248
- Child:
- 5:b747a8948606
--- a/main.cpp Fri Apr 12 13:44:30 2019 +0000 +++ b/main.cpp Fri May 24 14:41:02 2019 +0000 @@ -98,7 +98,7 @@ /* Attach callback to STTS751 INT */ t_sensor->attach_int_irq(&INT_cb); - /* Enable STTS751 accelerometer */ + /* Enable STTS751 temperature sensor */ t_sensor->enable(); /* Set ODR to 4Hz */ t_sensor->set_odr(4.0f);