Categories
Raspberry Pi

How To Install Edge Impulse On a Raspberry Pi Zero W

Edge Impulse does not officially support the Raspberry Pi Zero W hardware, and if you attempt to follow the official documentation meant for installing it on an a Raspberry Pi 4, on a Pi Zero W, the installation will fail.

Since the only hardware I had on hand was the Pi Zero W, I experimented for a while and managed to get it working. If you would like to try this for yourself see the instructions below.

Install Pi OS Legacy (buster) on the Pi Zero W board using the Raspberry Pi Imager application. Do NOT install Bullseye.

These commands replace those from the official documentation in the section 2. Installing dependencies . At the time of writing this, the version was: Edge Impulse Linux client v1.3.1

sudo apt update
sudo apt upgrade
wget https://unofficial-builds.nodejs.org/download/release/v12.13.0/node-v12.13.0-linux-armv6l.tar.xz
tar xvf node-v12.13.0-linux-armv6l.tar.xz
cd node-v12.13.0-linux-armv6l
sudo cp -R bin/* /usr/bin/
sudo cp -R lib/* /usr/lib/

sudo apt install -y gcc g++ make build-essential sox gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps

npm config set user root && sudo npm install edge-impulse-linux -g --unsafe-perm

References:

https://docs.edgeimpulse.com/docs/raspberry-pi-4

https://bloggerbrothers.com/2017/03/04/installing-nodejs-on-a-raspberry-pi/

Leave a Reply

Your email address will not be published. Required fields are marked *