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

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:

  • LED 0-7 is used to show the measured temperature.

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.