Skip to content

Instantly share code, notes, and snippets.

@sam210723
Last active May 30, 2021 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam210723/b121df234ada594772b55f77ee023d05 to your computer and use it in GitHub Desktop.
Save sam210723/b121df234ada594772b55f77ee023d05 to your computer and use it in GitHub Desktop.
Setup GPIO tools and nRF24L01 on Raspberry Pi Zero W (Raspbian Buster)
#!/bin/bash
# Install dependencies
sudo apt update
sudo apt install -y build-essential cmake git make libtclap-dev
# Install pigpio
git clone https://github.com/joan2937/pigpio
cd pigpio
make
sudo make install
cd ..
# Install Python packages
pip3 install pigpio nrf24
# Install RF24 library
mkdir RF24
cd RF24
wget http://tmrh20.github.io/RF24Installer/RPi/install.sh
chmod +x install.sh
./install.sh
cd ..
# Install nerfnet
git clone https://github.com/aarossig/nerfnet
cd nerfnet
mkdir build
cd build
cmake ..
make
sudo cp nerfnet/net/nerfnet /usr/local/bin/
cd ../..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment