Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
/ IoT Public archive

IoT sample using Raspberry Pi and various sensors

License

Notifications You must be signed in to change notification settings

psiborg/IoT

Repository files navigation

IoT

This is a repo for exploring IoT (Internet of Things) using Single Board Computers (SBC).

Pi-based IoT Architecture

1. Requirements

  • Raspberry Pi 3 Model B+ –or– Pi Zero WH
  • Enviro+ pHAT –or– Sense HAT
  • U-blox7 GPS/GLONASS — (optional)
  • Sabre Water Leak Alarm — (optional)
  • Raspian (Buster)
  • Python 3.7

2. Setup

2a. Local

  • cd IoT
  • mkdir data
  • mkdir logs
  • chmod 755 *.py

2b. Base (for Raspian Lite)

  • sudo apt-get install git

  • pip install spidev

  • pip3 install spidev

  • pip install RPi.GPIO

  • pip3 install RPi.GPIO

2c. Azure IoT Central

  • pip install iotc
  • pip3 install iotc

2d. Enviro+ pHAT

2e. Sense HAT

  • pip install sense_hat

2f. U-blox7

  • sudo apt-get install gpsd gpsd-clients python-gps

  • pip install gps

  • pip3 install gps

    Testing:

    • cgps -s
    • gpsmon

3. Configuring

  • cd IoT
  • nano config.py

4. Running

  • cd IoT
  • ./enviro.py –or– ./sensehat.py — (required)
  • ./ublox7.py — (optional)
  • ./msiotcd.py — (required)

5. Monitoring

  • cd IoT/data/logs
  • tail -f msiotc.log

6. Reference

About

IoT sample using Raspberry Pi and various sensors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published