Raspberry Pi Zero 2 W

Can the Raspberry Pi Zero 2 W be used with Edge Impulse? It seems like it should be compatible with the Raspberry Pi Zero 4 other than it will be slower.

Thanks!

1 Like

Hi @hamslabs,

Haven’t tried it but as it’s the same Cortex A chip as Rasp Pi 3 it should work.

Aurelien

I tried it on Raspberry Pi 3B+ and its working fine, now trying on RPi Zero W but getting error while installing install edge-impulse-linux.
pi@raspberrypi:~ $ npm config set user root && sudo npm install edge-impulse-linux -g --unsafe-perm
.
.
.
sharp: Installation error: Expected Node.js version >=12.13.0 but found 11.15.0
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies

The error is because node version >12 is required, RPi Zero is armv6, and NodeJS do not have it for armv6. version below 12 are available for armv6.
https://nodejs.org/dist/v12.13.1/

What is the OS that is installed on your raspberry pi?

OS installed on RPi Zero is buster

any solutions yet?

I have a pi zero 2 W running 64bit raspberry pi OS bookworm.

I was able to install it on my pi zero 2 W running 64bit raspberry pi OS bookworm by adding allocated swap memory:

sudo apt update
sudo apt upgrade


#increase swap file memory
free -h
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
free -h


# install NVM (node version management)
sudo apt update
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm —version
# install node
nvm install --lts
source ~/.bashrc
node --version
# install npm
npm install -g [email protected]
source ~/.bashrc

# https://forum.edgeimpulse.com/t/install-on-raspberry-pi-zero-solved/3722
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

sudo npm install edge-impulse-linux -g --unsafe-perm

# change permisions on file
sudo chmod +x /usr/local/bin/edge-impulse-linux
sudo chmod +x /usr/local/bin/edge-impulse-linux-runner

# Run edge impulse
edge-impulse-linux

Hello guys,
I tried your solution, @nicosandller, and it worked thank you!
However, I’m not getting the best image classification results.
I’m still new to this, so I’d really appreciate your help with the settings in Edge Impulse to achieve better image classification performance.