Code Monkey home page Code Monkey logo

fhnw-iot-project-corrado-elias's Introduction

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

fhnw-iot-project-corrado-elias's People

Contributors

cintoros avatar tamberg avatar corradoparisi avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.