Skip to content

nobusog/Gast_Iot_Sensor_Development_junair

 
 

Repository files navigation

Gast_Iot_Sensor_Development_junair

Getting Started With The Raspberry Pi

First install the SD card with Raspbian pre-installed and follow prompts to install onto the raspberry pi. Credentials are below

 username: pi
 password: raspberry

Enable I2C and SSH

Click the pi logo, then preferences, then configurations, On the Interfaces tab, set I2C and SSH to Enable and then click OK

Download Putty onto Windows from https://www.putty.org computer to access raspberry pi "headless" (with no monitor connected to raspberry pi)

Install Node.js on the pi

 curl -sL http://deb.nodesource.com/setup_4.x | sudo -E bash
 sudo apt-get -y install nodejs

Installing Git

To install the Git, run the following commands in the raspberry pi terminal

 sudo apt install git-all

Download files from the Gast_Iot_Sensor_Development_junair Git Repository

 git clone https://github.com/emmanuel-okeke/Gast_Iot_Sensor_Development_junair.git
 cd Gast_Iot_Sensor_Development_junair
 sudo npm install

Compile the C libraries to use the Azure IoT SDKs for Python

To compile these libraries, run the following commands in the raspberry pi terminal (This may take up to 10 minutes). do this in the 'Gast......Junair/' folder

 sudo chmod u+x setup.sh
 sudo ./setup.sh

Ensure that Raspberry pi GPIO library is installed

To validate the RPI.GPIO library installation, run the following commmand in the raspberry pi terminal

 sudo pip install RPi.GPIO

Installing Dependencies and Libraries for MAX 31855 Thermocouple Amplifier

To install the dependencies and libraries, run the following commands in the raspberry pi terminal

 sudo apt-get update
 sudo apt-get upgrade
 cd ~
 cd Gast_Iot_Sensor_Development_junair
 cd Library/Adafruit_Python_MAX31855
 sudo python setup.py install

Installing Dependencies and Libraries for Adafruit MCP3008 Anolog to Digital Converter

To install the dependencies and libraries from source (recommended), run the following commands in the raspberry pi terminal

cd ~
cd Gast_Iot_Sensor_Development_junair
cd Library/Adafruit_Python_MCP3008
sudo python setup.py install

Installing Dependencies and Libraries for Adafruit AM2302 Temp and Humidity Sensor

To install the dependencies and libraries from source (recommended), run the following commands in the raspberry pi terminal

cd ~
cd Gast_Iot_Sensor_Development_junair
cd Library/Adafruit_Python_DHT
sudo python setup.py install

Installing Dependencies and Libraries for the Hologram Nova Cellular Modem

 curl -L hologram.io/python-install | bash
 curl -L hologram.io/python-update | bash

Installing dependencies for sht20 sensor

sudo apt-get install build-essential libi2c-dev i2c-tools python-dev libffi-dev
pip install cffi
git clone https://github.com/bivab/smbus-cffi.git #(skip if already installed)
python setup.py install
https://github.com/ControlEverythingCommunity/SHT25.git #(skip if already installed)

command to run program

sudo python JunairApp.py & python error_status.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.8%
  • C++ 7.1%
  • Python 2.1%
  • CMake 1.5%
  • C# 1.3%
  • Batchfile 0.6%
  • Other 0.6%