Skip to content

fhnw-iot-5ibb1/fhnw-iot-project-corrado-elias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT Engineering

Project Access Barrier

Installation

  1. sudo apt install fish
  2. chsch
  3. sudo apt install python3-paho-mqtt python3-flask python3-pip python-pip python3-grove-py
  4. curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s -
  5. connect headers (pins) as specified
  6. move service files sudo cp run*.service /lib/systemd/system/

Configuration for Pi 1

The Raspi1 is connected to 2 GroveUltrasonicRanger, a buzzer and a led.

  1. Connect the GroveUltrasonicRanger to D5 & D16
  2. Connect the buzzer to digital port 6
  3. Connect led to digital port 17
  4. ssh pi@raspi1
  5. run sudo systemctl enable run1.service && sudo systemctl start run1.service

You can change this default values underneath in run1.py trigger_distance = 120 (trigger distance in centimeters) time_a = datetime.time(22, 0) time_b = datetime.time(5, 00) delay = 0.1

Raspi1

Code for Raspi1 under Code Raspi1 Raspi1 service file: Raspi1 Service file

Configuration for Pi 2

The Raspi2 is connected to a buzzer and a led.

  1. Connect the button to D5
  2. Connect the buzzer to digital port 6
  3. Connect led to D16
  4. ssh pi@raspi2
  5. run sudo systemctl enable run2.service && sudo systemctl start run2.service

Raspi2

Code for Raspi2 under Code Raspi2 Raspi2 service file: Raspi2 Service file

WiFi

Configure both Raspis to be connected to the same network. For low latency communication it is recommended to connect to the same access point. Use for instance wpa_supplicant.conf on both Raspis.

ThingSpeak

Presentation

Presentation can be found under Presentation

Reference model

Reference model

Interface documentation

Interface documentation

About

fhnw-iot-project-corrado-elias created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages