This script will automatically:
- apply patch for Raspberry PI 5,
- install dependencies,
- create desktop and menu entry and start the application
pi@raspberrypi:~ $ git clone --depth=1 https://github.com/mstumberger/raspi5_honey_dispenser.git honey_dispenser
pi@raspberrypi:~ $ cd honey_dispenser
pi@raspberrypi:~/honey_dispenser $ chmod +x install_and_start.sh
pi@raspberrypi:~/honey_dispenser $ ./install_and_start.sh
- Set rpi to performance mode:
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
- lgpio-dev is required to be installed. It may be available to you via apt:
sudo apt-get install -y liblgpio-dev
If it is not available, manually build and install it by following the instructions here.
- Install C++ dependency for python library
pi@raspberrypi:~ $ git clone --depth=1 https://github.com/endail/hx711
pi@raspberrypi:~ $ cd hx711
For RPi 5 the expansion header GPIO pins are now on /dev/gpiochip4 instead of /dev/gpiochip0. endail/hx711/issues/85
pi@raspberrypi:~/hx711 $ cd src
pi@raspberrypi:~/hx711/src $ sed -i 's/Utility::openGpioHandle(0)/Utility::openGpioHandle(4)/g' HX711.cpp
pi@raspberrypi:~/hx711/src $ cd ..
pi@raspberrypi:~/hx711 $ make && sudo make install
Source: Raspberry Pi HX711 C++ Library Readme
- clone application create virtual environment and install python dependencies
pi@raspberrypi:~ $ git clone --depth=1 https://github.com/mstumberger/raspi5_honey_dispenser.git honey_dispenser
pi@raspberrypi:~ $ cd honey_dispenser
pi@raspberrypi:~/honey_dispenser $ python3 -m venv venv
pi@raspberrypi:~/honey_dispenser $ source venv/bin/activate
(venv) pi@raspberrypi:~/honey_dispenser $ pip3 install .
(venv) pi@raspberrypi:~/honey_dispenser $ deactivate
pi@raspberrypi:~ $ honey_dispenser/venv/bin/dispenser