Skip to content

Latest commit

 

History

History
85 lines (70 loc) · 1.93 KB

README.md

File metadata and controls

85 lines (70 loc) · 1.93 KB

Capstone Company 10 Embedded

Raspberry Pi Setup:

I2C:

sudo raspi-config # enable i2c
sudo apt install i2c-tools
sudo apt install libi2c-dev

GPIO:

sudo apt install gpiod
sudo apt install libgpiod2
sudo apt install libgpiod-dev

Compile applications with -lgpiod

SQLite:

sudo apt install libsqlite3-dev

Compile applications with -lsqlite3

GoPro:

sudo apt install libcurl4-openssl-dev
sudo apt install libjsoncpp-dev
sudo apt install ffmpeg
sudo apt install dhcpcd5

Compile applications with -lcurl -ljsoncpp

  1. Edit the wpa_supplicant.conf file to connect to the GoPro's Wi-Fi:

    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

    Add the following lines:

    network={
        ssid="GoPro-SSID"       # Replace with your GoPro's Wi-Fi SSID
        psk="GoProPassword"     # Replace with your GoPro's Wi-Fi password
        key_mgmt=WPA-PSK
        priority=1
    }
    

    Replace GoPro-SSID and GoProPassword with your actual GoPro credentials.

  2. Restart networking services to apply the changes:

    sudo systemctl restart networking
    sudo systemctl restart dhcpcd
  3. Verify the connection to the GoPro:

    ifconfig wlan0

    or

    iwconfig

HaarCascade (CV) AND/OR MobileNetSSD:

sudo apt install python3-opencv
sudo apt install libopencv-dev
sudo apt install python3-picamera2

mkdir /home/pi/Desktop/Object_Detection_Files

Copy the files in the zip file in this tutorial (https://core-electronics.com.au/guides/object-identify-raspberry-pi/#Set) into the above newly created directory

NPITS systemd service

To install the service,run the following commands

sudo cp npits_service.service /etc/systemd/system/npits_service.service
sudo chmod 644 /etc/systemd/system/npits_service.service
sudo systemctl enable npits_service