Chapter 2. Tigase IoT One Cloud Hub Documentation

Table of Contents

Welcome!
What is it?
XMPP?
Who is this for?
What makes up the software
Requirements
Beta
Basics of Circuit Building
Safety
What is a circuit?
Units
Components
Series wiring vs Parallel wiring
Calculating circuit values
Calculations in a Series Circuit
Calculations in a Parallel Circuit
Breadboards & Prototyping
Raspberry Pi Pinouts
Setting Up the Raspberry Pi
Preparing the SD card
Interfacing with your Pi
Logging in
Enabling & configuring Wi-fi
SSH
Enabling Interfaces
Required Libraries
Getting Started
Installation of IoT-hub
Starting up
Devices
S2C
1wire Devices
DHTXX Devices
BH1750 Ambient Light Sensor
Details
A Note about connections
Specifications
Lux reference
DHT22 & DHT11 Devices
Add DHT22 to hub
DHT11 and DHT22
Temperature and Humidity
BMP180 & BMP280 Ambient Pressure Sensors
Connecting the Sensor - BMP280
Connecting the Sensor - BMP180
Detecting and working with your device
Adding the Sensor
A Note about connections
BMP180 and BMP280
Pressure and Temperature
Hectopascals and other units
DS1820 Temperature Sensor
Testing 1-wire devices
Adding the Device
HC-SR501 Motion Detector
Controls:
Adding the device
LED Matrix

Welcome!

Welcome to the documentation for IoT One Cloud from Tigase!

What is it?

Tigase IoT One is a system designed to bring the Internet of Things into your home securely, quickly, and to devices you may never have thought possible! It is based of of Tigase’s open source software, and provides an open easy-to-program interface for adding your own devices to the IoT one Cloud network. Devices can be added and removed with a few taps, with one password for anything you add. The software allows for unlimited use on a local network, and provides multiple methods for you to do it on a remote network. To find out more, read on!

XMPP?

Tigase IoT One Cloud uses XMPP for transmission of data between client and the IoT hub. XMPP stands for eXtensible Messaging and Presence Protocol, an evolution of the Jabber platform. It is an Open source standard recognized by the IETF under publications RFC 3920 and 3921. XMPP is an excellent real-time communication platform with a proven track record in a wide variety of industries. As a natural extension of the way XMPP works, communication to your IoT devices connected with this system are improved thanks to a level of abstraction. Unlike most IoT solutions where a client connects to a host program on a device directly, IoT One Cloud uses a modified XMPP server to stand in between and deliver only properly formatted commands and packets to and from the devices, ensuring security from rogue program injections.

Who is this for?

We have designed IoT One Cloud for the maker, the tinkerer, for somebody who does not want to spend hours programming and would rather just add devices by plugging them in and using a few taps on the client. Of course this doesn’t mean that you can’t program your own devices - far from it. We’ve even included methods to write your own drivers and some examples if you wanted too. However our focus is to make IoT easy and simple for you.

What makes up the software

The IoT One Cloud Product is made up of a few components; the Hub, the Framework, and a Client. The Hub is a modified XMPP server that handles the traffic between the framework and the client. It also serves as the point of access if you are outside a local network. The Framework connects data from the Raspberry Pi GPIO pins to the XMPP network, allowing the flow of data to and from the GPIO pins to the Hub. The Client is how you will see data, add and remove devices, and generally control the devices connected to the Framework.

Optionally, there is the IoT One Cloud Server, which allows a client to connect to the Hub from outside a local network, truly making the product accessible from any internet connection.

Requirements

To get started you will need the following: - A Raspberry Pi, model 2, 3+, or 0W. We recommend the model 3+ for the best experience. - A power source capable of running the Pi and devices, we highly recommend at least a 2.0A AC adapter. - A MicroSD card to store operating system and software on it. - A method of setting up the Raspberry Pi, like SSH, or directly with a keyboard. - A few devices you want to control. - About 30 minutes of time for initial setup.

Beta

Note that this software package is currently in Beta. We highly recommend you sign up at tigase.tech and subscribe to our redmine page to share bug reports, suggestions, and help make this product better. Please keep in mind that some errors might occur, and everything may not work as planned. You are operating this software at your own risk and we cannot take guarantee the absence of crashes, and issues. We offer no guarantee of stability, functionality, or safety of the programming. Please understand that this is being worked on currently, and although we only support a small number of devices, more will grow as we work with the software.

We appreciate your participation in the beta program by sharing bug reports, or other helpful information through our redmine.