nRF51 SDK: Radio Transmitter Example for PCA10001 Board

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Radio Transmitter Example for PCA10001 Board

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

This example continuously sends one-byte payload radio packets. The payload contains the button status of the PCA10001 board. If Button 0 is pushed the payload is 1, if Button 1 is pushed the payload is 2 and if both are pushed the payload is 3. When no button is pushed the payload is set to zero and only when a button's state goes from not pushed to pushed the corresponding bit in the payload is set.

# Setup

Button assignments:

- Button 0-1 is used to send data to the PCA10000 board.

# Testing

The Radio Transmitter 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.