The Raspberry Pi 4 is a versatile Linux development board with a quad-core processor running at 1.5GHz, a GPIO header to connect sensors, and the ability to easily add an external microphone or camera - 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.In addition to the Raspberry Pi 4 we recommend that you also add a camera and / or a microphone. Most popular USB webcams and the Camera Module work fine on the development board out of the box.
You can set up your Raspberry Pi without a screen. To do so:
Flash the Raspberry Pi OS image to an SD card using the Raspberry Pi Imager.
You must use 64-bit OS with _aarch64 and 32-bit OS with armv7l_*
During the flashing process, access the advanced options menu in the Raspberry Pi Imager to preconfigure your WiFi and enable SSH.
wpa_supplicant.conf cannot be used from Bookworm onward. You must use the Pi Imager or the advanced menuraspi-config tool to set up WiFi.
Insert the SD card into your Raspberry Pi 4, and let the device boot up.
Find the IP address of your Raspberry Pi. You can either do this through the DHCP logs in your router or by scanning your network. E.g., on macOS and Linux via:
Copy
$ arp -na | grep -i dc:a6:32? (192.168.1.19) at dc:a6:32:f5:b6:7e on en0 ifscope [ethernet]
Here 192.168.1.19 is your IP address.
Connect to the Raspberry Pi over SSH. Open a terminal window and run:
Copy
ssh <username>@192.168.1.19
Log in with the default username pi and password raspberry.
Important: Edge Impulse requires Node.js version 20.x or later. Using older versions may lead to installation issues or runtime errors. Please ensure you have the correct version installed before proceeding with the setup.
If you have a Raspberry Pi Camera Module, you also need to activate it first. Run the following command:
Copy
sudo raspi-config
Use the cursor keys to select and open Interfacing Options, and then select Camera and follow the prompt to enable the camera. Then reboot the Raspberry.
You should now be able to run Edge Impulse CLI tools from the container running on your Raspberry.Note that this will only work using an external USB camera.
With all software set up, connect your camera or microphone to your Raspberry Pi (see ‘Next steps’ further on this page if you want to connect a different sensor), and run:
Copy
edge-impulse-linux
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 --clean.
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.
Looking to connect different sensors? Our Linux SDK lets you easily send data from any sensor and any programming language (with examples in Node.js, Python, Go and C++) into Edge Impulse.
To run your impulse locally, just connect to your Raspberry Pi again, and run:
Copy
edge-impulse-linux-runner
This will automatically compile your model with full hardware acceleration, download the model to your Raspberry Pi, and then start classifying. Our Linux SDK has examples on how to integrate the model with your favourite programming language.
If you have an image model then you can get a peek of what your device sees by being on the same network as your device, and finding the ‘Want to see a feed of the camera and live classification in your browser’ message in the console. Open the URL in a browser and both the camera feed and the classification are shown:
If you see the following error when trying to deploy a .eim model to your Raspberry Pi:
Copy
Failed to run impulse Error: Unsupported architecture “aarch64”
It likely means you are attempting to deploy a .eim Edge Impulse model file to a 32-bit operating system running on a 64-bit CPU. To check your hardware architecture and OS in Linux, please run the following commands:
It means that you are running a 32-bit OS on a 64-bit CPU. To run .eim models on aarch64 CPUs, you must use a 64-bit operating system. Please download and install the 64-bit version of Raspberry Pi OS if you see aarch64 when you run uname -m.