Nordic Semi nRF5340 DK
The Nordic Semiconductor nRF5340 DK is a development board with dual Cortex-M33 microcontrollers, 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 nRF5340 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 nRF5340 DK is available for around 50 USD from a variety of distributors.
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.
Nordic Semiconductors nRF5340 DK development board
To set this device up in Edge Impulse, you will need to install the following software:
- 2.On Linux:
- GNU Screen: install for example via
sudo apt install screen.
With all the software in place it's time to connect the development board to Edge Impulse.
Remove the pin header protectors on the nRF5340 DK and plug the X-NUCLEO-IKS02A1 shield into the development board.
X-NUCLEO-IKS02A1 shield plugged in to the nRF5340 DK
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.
Make sure the shield does not touch any of the pins in the middle of the development board.
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'.
Connect a micro USB cable to the short USB port on the short side of the board (red). Make sure the power switch is toggled on.
The development board does not come with the right firmware yet. To update the firmware:
- 1.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.
- 3.Drag the
nrf5340-dk.binfile to the
- 4.Wait 20 seconds and press the BOOT/RESET button.
From a command prompt or terminal, run:
This starts a wizard which asks you to log in and choose an Edge Impulse project. If you want to switch projects run the command with
The nRF5340 DK exposes multiple UARTs. If prompted, choose the bottom one:
? Which device do you want to connect to? (Use arrow keys)
❯ /dev/tty.usbmodem0009601707955 (SEGGER)
Alternatively, recent versions of Google Chrome and Microsoft Edge can collect data directly from your development board, without the need for the Edge Impulse CLI. See this blog post for more information.
Device connected to Edge Impulse.
With everything set up you can now build your first machine learning model with these tutorials:
If your board fails to flash new firmware (a
FAIL.txtfile might appear on the
JLINKdrive) you can also flash using
- 2.Flash new firmware via:
nrfjprog --program path-to-your.bin -f NRF53 --sectoranduicrerase