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!
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!
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 npm@10.4.0
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