nRF52840-DK

The nRF52840-DK is a development board from Nordic Semiconductor based on the nRF52840 SoC, and features a variety of built-in connectivity options in Bluetooth Low Energy, Bluetooth mesh, Thread, ZigBee, 802.15.4, proprietary 2.4 GHz, and an NFC antenna for NFC-A tag reading. The board is also Arduino Uno V3 compatible, which enables it to be used in collaboration with a wide variety of shields and other add-on boards to expand its functionality.

Project Specifics

There are no imported sensors or specialized elements or tools native to nRF52840-DK projects.

BLE Connection Element Limitations

The BLE connection element doesn’t support pairing configuration with the nRF52840-DK. The element may be used for connect/disconnect events, but passkey features and pairing abilities aren’t able to be used.

Hardware Specifics

Some devices may have limitations or design restrictions that cause unexpected behavior when used with Atmosphere. Specific information and details pertaining to the nRF52840-DK and its performance on Atmosphere is noted below.

There are no known issues, unexpected behaviors, or hardware limitations while using the nRF52840-DK with Atmosphere.

Powering the Board

Powering the nRF52840-DK involves having the proper settings for the various switches on the board. For reference material, see the Nordic nRF52840-DK User Guide for information on all aspects of the board.

  1. To power the board on, ensure the following switch states are set:
    • nRF Only Switch: set to Default (section 8.4.2 of guide)
    • Power Source Switch: set to VDD (section 8.3.4 of guide)
    • Power Switch: set to ON
  2. When powering the board, connect it using the USB port located on the short side of the board (near the battery).

Prior to using the nRF52840-DK, ensure it has the latest Arm Mbed DAPLink interface firmware installed. In order to have its firmware updated, the nRF52840-DK must be powered on as detailed by the steps above.

Visit the Arm Mbed nRF52840-DK Resources page for the latest DAPLink firmware download and installation instructions.

Default Pin Mapping

Atmosphere configures each peripheral to a default pin for every supported device, based on ideal pairing of pins and their usage. The default pin configuration is set for convenience and enables each peripheral to work naturally without needing to be modified.

The nRF52840-DK runs using mbed-os, and all pin mappings come from mbed-os.

nRF52840-DK projects start with the following pin configuration:

Pin Description Notes
D0 Arduino Header D0 Maps to P1_1
D1 Arduino Header D1 Maps to P1_2
D2 Arduino Header D2 Maps to P1_3
D3 Arduino Header D3 Maps to P1_4
D4 Arduino Header D4 Maps to P1_5
D5 Arduino Header D5 Maps to P1_6
D6 Arduino Header D6 Maps to P1_7
D7 Arduino Header D7 Maps to P1_8
D8 Arduino Header D8 Maps to P1_10
D9 Arduino Header D9 Maps to P1_11
D10 Arduino Header D10 Maps to P1_12
D11 Arduino Header D11 Maps to P1_13
D12 Arduino Header D12 Maps to P1_14
D13 Arduino Header D13 Maps to P1_15
D14 Arduino Header D14 Maps to P0_26
D15 Arduino Header D15 Maps to P0_27
A0 Arduino Header A0 Maps to P0_3
A1 Arduino Header A1 Maps to P0_4
A2 Arduino Header A2 Maps to P0_28
A3 Arduino Header A3 Maps to P0_29
A4 Arduino Header A4 Maps to P0_30
A5 Arduino Header A5 Maps to P0_31

The default pin for any peripheral can be changed within an element's properties, from an element that references that particular peripheral.

Peripherals

Below is information regarding the nRF52840-DK’s exposed peripherals.

I2C

I2C is exposed via the SCL and SDA pins on the Arduino headers.

SPI

SPI is exposed via the dedicated SPI header.

PWM

PWM is available on all digital pins.

ADC

ADC is available on all analog pins.

UART

UART is available through the USB serial port.

Programming Method

Programming the nRF52840-DK involves downloading its project firmware from Atmosphere Studio and directly transferring it to the device over USB.

Setup Configuration

Prior to programming a nRF52840-DK, ensure you have the following setup configuration:

  • The nRF52840-DK is connected to the computer via USB to an available communication port. When connected, the nRF52840-DK will expose itself as a drive labeled “DAPLink.”
  • The project to be programmed has been compiled.

Programming Instructions

With setup complete, you can program the nRF52840-DK:

  1. From Atmosphere Studio’s Embedded tab, click the Program Firmware button from the tab’s toolbar. This downloads a .hex file containing the project’s compiled firmware.
  2. Locate the downloaded file on your computer, and move it into the DAPLink drive. This initiates programming of the nRF52840-DK.
  3. Once programming is finished, the DAPLink drive will unmount and then mount again indicating programming is complete. Then press the board’s reset button to start your application.

When complete, the nRF52840-DK is programmed with the project’s embedded firmware.

Guides and Tutorials

Get started using the nRF52840-DK with Atmosphere by walking through the following guides:

nRF52840-DK Guides
Getting Started with nRF52840-DK

Demo Projects

Atmosphere includes a variety of nRF52840-DK demo projects for users of all levels. Check them out by clicking the demo’s name to open the project in Atmosphere.

Name Description
Control LED Over BLE A demo that adjusts the LED brightness using a slider via PWM.
Sensirion Shield Demo A basic demo that uses the nRF52840-DK alongside the SGP30 sensor shield that reads an air quality sensor and sends the data to the cloud.
ST Sensor Shield Demo A demo that uses the nRF52840-DK and the ST X-NUCLEO-IKS01A3 sensor shield that reads the sensor data and sends the data to the cloud.
TE Weather Shield Demo A basic demo that uses the nRF52840-DK alongside the TE Connectivity Weather Shield that reads the MS8607 sensor and sends data to the cloud.
PWM Pin nRF Demo The PWM pin element is used within this demo project by increasing the brightness of two LEDs on the nRF52840-DK.
ADC Pin nRF Demo The ADC pin element is used within this demo project by reading the voltage from the analog pin and printing it on the debug console.

Videos

The Atmosphere video library contains the following videos on the nRF52840-DK:

Videos for the nRF52840-DK coming soon!

Resources

The following additional resources and downloadable files are available for the nRF52840-DK: