Comment on page
Arduino Nano 33 BLE Sense
The Arduino Nano 33 BLE Sense is a tiny development board with a Cortex-M4 microcontroller, motion sensors, a microphone and BLE - 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. It's available for around 30 USD from Arduino and a wide range of distributors.
Arduino Nano 33 BLE Sense
You can also use the Arduino Tiny Machine Learning Kit to run image classification models on the edge with the Arduino Nano and attached OV7675 camera module (or connect the hardware together via jumper wire and a breadboard if purchased separately).
Arduino Tiny ML kit
Different Arduino Nano 33 BLE Sense Versions
Arduino has two different versions (known as "revisions") of the Arduino Nano 33 BLE Sense. Both use the nRF52840 as the processor, but the sensors are different. While the Edge Impulse firmware works with both versions, you need to be careful about choosing the correct version when working with the Arduino IDE.
You can tell which version of the Arduino Nano 33 BLE Sense you have by looking at the underside of the board. The first version will simply have NANO 33 BLE SENSE written in the silkscreen. The second version will have NANO 33 BLE SENSE REV2.
Arduino Nano 33 BLE Sense Rev2
To set this device up in Edge Impulse, you will need to install the following software:
With all the software in place it's time to connect the development board to Edge Impulse.
Use a micro-USB cable to connect the development board to your computer. Then press RESET twice to launch into the bootloader. The on-board LED should start pulsating to indicate this.
Press RESET twice quickly to launch the bootloader on the Arduino Nano 33 BLE Sense.
The development board does not come with the right firmware yet. To update the firmware:
- 2.Open the flash script for your operating system (
flash_linux.sh) to flash the firmware.
- 3.Wait until flashing is complete, and press the RESET button once to launch the new firmware.
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
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:
One option to deploy your model is to use the Arduino library option on the Deployment page in your Edge Impulse Studio project. This will combine your model with your chosen processing block and automatically download an Arduino in a .zip file. In the Arduino IDE, select Sketch > Include Library > Add .ZIP Library... and select your downloaded .zip file.
Once the library finishes installing, you can select File > Examples > <name_of_your_project>_inferencing to see a list of available Arduino examples for the various supported boards. Notice that you have both Nano 33 Sense and Nano 33 Sense Rev2 options available.
The examples for camera, microphone, and microphone_fusion under nano_ble33_sense will work for both boards. You must choose the correct board revision (nano_ble33_sense or nano_ble33_sense_rev2) for the accelerometer, accelerometer_continuous, or fusion examples, as the accelerometer and environmental sensors are different between the board revisions.
Edge Impulse inferencing examples in the Arduino IDE
These examples should give you a good starting place for developing your own edge ML applications on the Arduino. For example, if you train a keyword spotting model to identify the words "yes" and "no," you would deploy the model as an Arduino library and upload the nano_ble3_sense_microphone_continuous example to your Nano 33 BLE. Once uploaded, open the Serial Monitor to see the inference results printed out.
Inference results in Arduino IDE from Edge Impulse model
It probably means you don't have Rosetta 2 installed yet (which allows Intel-based apps to run on M1 chips).
The error looks like the following:
Failed uploading: cannot execute upload tool: fork/exec /Users/brianmcfadden/Library/Arduino15/packages/arduino/tools/bossac/1.9.1-arduino2/bossac: bad CPU type in executable
...copying shared history...
...saving history...truncating history files...
To install Rosetta 2 you can run this command:
softwareupdate --install-rosetta --agree-to-license
You will need the following hardware:
- Arduino Nano 33 BLE Sense board with headers.
- OV7675 camera module.
- Micro-USB cable.
- Solderless breadboard and female-to-male jumper wires.
First, slot the Arduino Nano 33 BLE Sense board into a solderless breadboard:
Arduino Nano 33 BLE Sense board with headers inserted into a solderless breadboard.
With female-to-male jumper wire, use the following wiring diagram, pinout diagrams, and connection table to link the OV7675 camera module to the microcontroller board via the solderless breadboard:
OV7675 camera module with female headers connected.
Wiring diagram showing the OV7675 connections to Arduino Nano 33 BLE Sense.
Table with connections between the OV7675 camera module pins and the Arduino Nano 33 BLE Sense.
Finally, use a micro-USB cable to connect the Arduino Nano 33 BLE Sense development board to your computer.
Showing all connections between the OV7675 camera module and the Arduino Nano 33 BLE Sense.