Skip to main content

Nordic nRF52840-Tutorial 1 hardware control

Hi, here it's Brian; I've got my Nordic semiconductor Bluetooth Low energy development kit  nRF52840-DK board on hand. It is a good-looking board in blue with an orange NFC antenna. I would like to share three articles with you including hardware control, Bluetooth communication, and security of Bluetooth packets. This article will focus on the GPIO, LED, and button!

Nordic nRF52840-DK board

What is nRF52840-DK?

The nRF52840 is a very compact board for Bluetooth Low Energy, Bluetooth mesh, NFC, Thread, and Zigbee. There are four User-programmable LEDs and buttons. The nRF52840-DK is Arduino Uno R3 compatible, which means that third-party applications are also supported! The built-in debugger is onboard. No extra cable or wire is required. The onboard SoC's GPIOs are all edge connectors with an NFC-A tag for even further application support! There are pins for measuring power consumption, and it can be powered up by a Li-Po battery or even a CR2032 coin cell battery included.

Let's install all the things we need before we move forward. This video will show you how to install the nRF desktop for the DK board running on Windows. The seggar embedded studio and the segger J-LINK will automatically install the nRF-desktop and the toolchain manager.

There are four LEDs and four buttons on the nRF52840-DK board; how could we control each LED and button?

This video will show you how to launch the application example and build on top with another LED and button for a blinky application. There are four LEDs and buttons onboard, which is very convenient for developers to trigger events or functions. This video will explain the code in detail, sharing important notes for beginners, such as an object's concept of defining tasks in included .h file. At the end of this video, you will find a challenge on how to control all onboard LEDs.

The nRF52840-DK is an excellent board for hardware developers who wants to try Bluetooth on an SoC for IoT application! The two coming articles are related to Bluetooth and security basics; see you soon!

Please feel free to see the PDF version of this tutorial attached in detail!

Downloads

Brian0925 has not written a bio yet…