nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Temperature Example

Modules

 TEMP (temperature) abstraction
 Temperature module init and read functions.
 
 main.c
 Temperature Example Application main file.
 

Detailed Description

The Temperature Example project uses a temperature sensor, displaying the measurement on Port 1 GPIO (LEDs). It uses the hardware delivered in the nRF51822 Development Kit.

Note
Port 1 only has 8 bits, so only positive temperatures are displayed.

The application starts with configuring the temperature module and the GPIO. The main loop reads the temperature sensor and updates the LEDs every 500ms.

Setup

Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).

LED assignments:

Testing

The Temperature Example Application can be tested as follows:

  1. Compile and program the application.
  2. The LEDs should show a binary value that is close to the real temperature.