Skip to content

Raspberry Pi Firmware for our SFU Engineering Capstone Project, NPITS, the Near Pass Incident Tracking System

Notifications You must be signed in to change notification settings

IanC910/npits-firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Raspberry Pi Firmware for our SFU Engineering Capstone Project, NPITS, the Near Pass Incident Tracking System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •