Giter VIP home page Giter VIP logo

rapidresponse's Introduction

RapidResponse

To ensure that Rapid Reponse work there are two main hardware components that you must have:

  • Raspberry Pi 3B+ or higher (for this project we used a Raspberry Pi 4)
  • Luxonis usb Camera that can be found here (the camera that we used for the project is the Oak-D pro)

Since we are using the Luxonis api there are software dependancy installations that is needed: Raspberry Pi OS The package can also be installed through PyPI here

Connection to the Trigger

For the trigger we made the Rasberry Pi a Access Point (AP) the steps that we followed are documented here

To further troubleshoot these were the commands that we ran to ensure that each steps and configurations were properly ran:

  • sudo apt install hostapd dnsmasq iptables
  • sudo systemctl stop hostapd
  • sudo systemctl stop dnsmasq
  • sudo nano /etc/dhcpcd.conf
  • sudo systemctl restart dhcpcd
  • systemctl daemon-reload
  • sudo nano /etc/hostapd/hostapd.conf
  • sudo nano /etc/default/hostapd
  • sudo nano /etc/init.d/hostapd
  • sudo nano /etc/dnsmasq.conf
  • sudo nano /etc/sysctl.conf
  • sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
  • sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  • sudo systemctl unmask hostapd
  • sudo systemctl enable hostapd
  • sudo systemctl start hostapd
  • sudo service dnsmasq start
  • systemctl daemon-reload
  • sudo reboot

Script for the Trigger

For the Arduino script ensure that the proper library is installed which can be found here

Startup Script for the Raspberry Pi

The full documentation steps on how to do the startup can be found here

vi /etc/systemd/system

[Unit] Description=Rapid Response Startup Serivce

[Service] After=network-online.target Wants=network-online.target Type=idle User=pi # change to the user for your raspberry pi ExecStart=/usr/bin/python3 /home/pi/Desktop/rrl_startup_script.py # change to where the startup script is located Restart=always RestartSec=5s

[Install] WantedBy=multi-user.target

rapidresponse's People

Contributors

chuanisawesome avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.