2. Drivers setup - Zeren-Zhao/parcel_sorting_car GitHub Wiki

Required packages:

Installing Raspberry Pi OS:

  1. Download package.
  2. Install Raspberry Pi OS on your PC.
  3. Insert SD card into your PC.
  4. Open Raspberry Pi Imager.
  5. In Operating system select: Raspberry Pi OS (32-bit)
  6. In Storage select your SD card.
  7. Select setting and add your WIFI name (SSID) and password.
  8. Finally, click on Write.

Installing CMake:

  1. Open terminal
  2. Installation
sudo apt-get install cmake

Installing Opencv

  1. Open terminal
  2. Download OpenCV from Official website
  3. Extract all
  4. Open terminal and use cd go to the opencv directory
  5. Create a new build folder for building
mkdir build
cd build
  1. Compilation
cmake ..
sudo make
sudo make install

sudo make is very time consuming, about five to six hours depending on the internet speed.

Installing zbar

  1. Open terminal
  2. Installation
sudo apt-get install libzbar-dev

Installing wiringPi

  1. Open terminal
  2. Installation
cd /tmp
wget https://unicorn.drogon.net/wiringpi-2.46-1.deb
sudo dpkg -i wiringpi-2.46-1.deb
  1. To test if you have already installed wiringPi, you can open terminal
gpio readall

if there is the map of gpio, you have installed the wiringPi successfully