The Nordic Semiconductor nRF52840 DK is a development board with a Cortex-M4 microcontroller, QSPI flash, and an integrated BLE radio - and it's fully supported by Edge Impulse. You'll be able to sample raw data, build models, and deploy trained machine learning models directly from the studio. As the nRF52840 DK does not have any built-in sensors we recommend you to pair this development board with the X-NUCLEO-IKS02A1 shield (with a MEMS accelerometer and a MEMS microphone). The nRF52840 DK is available for around 50 USD from a variety of distributors including Digikey and Mouser.
If you don't have the X-NUCLEO-IKS02A1 shield you can use the Data forwarder to capture data from any other sensor, and then follow the Running your impulse locally: On your Zephyr-based Nordic Semiconductor development board tutorial to run your impulse. Or, you can modify the example firmware (based on nRF Connect) to interact with other accelerometers or PDM microphones that are supported by Zephyr. See the firmware repository for more information.
The Edge Impulse firmware for this development board is open source and hosted on GitHub: edgeimpulse/firmware-nrf52840-5340.
To set this device up in Edge Impulse, you will need to install the following software:
- Edge Impulse CLI.
- On Linux:
- GNU Screen: install for example via
sudo apt install screen.
- GNU Screen: install for example via
Problems installing the CLI
See the Installation and troubleshooting guide.
With all the software in place it's time to connect the development board to Edge Impulse.
Remove the pin header protectors on the nRF52840 DK and plug the X-NUCLEO-IKS02A1 shield into the development board.
Note: Make sure that the shield does not touch any of the pins in the middle of the development board. This might cause issues when flashing the board or running applications.
Use a micro-USB cable to connect the development board to your computer. There are two USB ports on the development board, use the one on the short side of the board. Then, set the power switch to 'on'.
The development board does not come with the right firmware yet. To update the firmware:
- The development board is mounted as a USB mass-storage device (like a USB flash drive), with the name
JLINK. Make sure you can see this drive.
- If this is not the case, see No JLINK drive at the bottom of this page.
- Download the latest Edge Impulse firmware.
- Drag the
nrf52840-dk.binfile to the
- Wait 20 seconds and press the BOOT/RESET button.
From a command prompt or terminal, run:
This will start a wizard which will ask you to log in and choose an Edge Impulse project. If you want to switch projects run the command with
That's all! Your device is now connected to Edge Impulse. To verify this, go to your Edge Impulse project, and click Devices. The device will be listed here.
With everything set up you can now build your first machine learning model with these tutorials:
- Building a continuous motion recognition system.
- Recognizing sounds from audio.
- Responding to your voice.
Looking to connect different sensors? The Data forwarder lets you easily send data from any sensor into Edge Impulse.
If you don't see the
JLINK drive show up when you connect your nRF52840 DK you'll have to update the interface firmware.
- Set the power switch to 'off'.
- Hold BOOT/RESET while you set the power switch to 'on'.
- Your development board should be mounted as
- Download the latest Interface MCU firmware and drag the
.binfile onto the
- After 20 seconds disconnect the USB cable, and plug the cable back in.
- The development board should now be mounted as
If your board fails to flash new firmware (a
FAIL.txt file might appear on the
JLINK drive) you can also flash using
- Install the nRF Command Line Tools.
- Flash new firmware via:
nrfjprog --program path-to-your.bin -f NRF52 --sectoranduicrerase
Updated 12 days ago