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

Modules

 main.c
 Radio Receiver Example Application main file.
 

Detailed Description

The Radio Receiver Example demonstrate how to receive data using the NRF_RADIO peripheral. This project must be used together with the corresponding transmitter project for the PCA10001 board. Button presses on the PCA10001 board are sent to the PCA10000 board, and printed in a COM listener (like PUTTY) using UART.

The receiver is configured to continuously receive packets from the corresponding transmitter project. The on-byte payload contains the button status on the transmitter board. If the byte is 1 Button 1 is pressed, if the byte is 2 Button 1 is pressed and if it's 3 both buttons are pressed.

Setup

Insert the PCA10000 board in a USB slot, and find out which COM port it uses.

Testing

The Radio Receiver Example Application can be tested as follows:

  1. Flash button_radio_example in the PCA10001 board folder to PCA10001 board.
  2. Flash button_radio_example in the PCA10000 board folder to PCA10000 board.
  3. Use a terminal program on your PC to connect to the PCA10000 board. 38400 bps, 8 data bits, 1 stop bit.
  4. Press a button on PCA10001 board, you should see "Button 0/1 pressed" on your terminal.