Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Basic-Led-Application.py
Basic-Led-Device.py
README.md
config.json
requirements.txt

README.md

IoT JumpWay Intel® Galileo Gen 1 Basic LED Example

IoT JumpWay Intel® Galileo Gen 1 Basic LED Example Docs

Introduction

Want to take your first steps into the magical world of the Internet of Things, or want to find out how easy it is to use the IoT JumpWay as your secure IoT communication platform? This tutorial is for you and will hold your hand through setting up your first Intel® Galileo project powered by the IoT JumpWay.

Here you will find sample device scripts for connecting Intel® Galileo Gen 1 to the IoT JumpWay using the Python MQTT Library. The codes allow you to set up a basic device that allows control of an LED, and an application to communicate with the device and make the LED flash on and off. Once you understand how it works you are free to add as many actuators and sensors to your device and modify your code accordingly.

Python Versions

  • 2.7
  • 3.4 or above

Software requirements

  1. TechBubbleIoTJumpWayMQTT
  2. JSon

Hardware requirements

IoT JumpWay Intel® Galileo Gen 1 Basic LED Example Docs

  1. Intel® Galileo Gen 1.
  2. 1 x LED.
  3. 1 x 220 ohm Resistor
  4. 2 x Jumper Wires
  5. 1 x Breadboard

Before You Begin

If this is the first time you have used the IoT JumpWay in your IoT projects, you will require a developer account and some basics to be set up before you can start creating your IoT devices. Visit the following link and check out the guides that take you through registration and setting up your Location Space, Zones, Devices and Applications.

IoT JumpWay Developer Program (BETA) Docs

Preparing Your Intel® Galileo Gen 1

To help secure your Intel® Galileo Gen 1, follow the Intel® Galileo Security guide.

Cloning The Repo

You will need to clone this repository to a location on your Intel® Galileo Gen 1. Navigate to the directory you would like to download it to and issue the following commands.

$ git clone https://github.com/iotJumpway/IoT-JumpWay-Intel-Examples.git

Install Requirements

$ cd IoT-JumpWay-Intel-Examples/Intel-Galileo/Basic-LED/Python
$ pip install --upgrade pip
$ pip install -r requirements.txt

Setting Up Your Galileo Gen 1

IoT JumpWay Intel® Galileo Gen 1 Basic LED Example Docs

First of all you need to connect up an LED to your Intel® Galileo Gen 1. To connect the LED you will need a breadboard, a 220 ohm resistor, and two jumper wires.

  1. Place the LED on your breadboard.
  2. Connect the short leg of the LED to pin 5 of your Intel® Galileo Gen 1 using a jumper wire.
  3. Connect one end of the resistor to the long leg of your LED.
  4. Connect the other end of the resistor to the 3v output of the Intel® Galileo Gen 1.

Device / Application Connection Credentials & Sensor Settings

IoT JumpWay Intel® Galileo Gen 1 Basic LED Example Docs

  • Retrieve your connection credentials and update the config.json file with your new connection credentials and actuator (LED) setting.
	"Actuators": {
		"LED": {
			"ID": 0,
			"PIN": 5
		}
	}
	"IoTJumpWaySettings": {
        "SystemLocation": 0,
        "SystemZone": 0,
        "SystemDeviceID": 0,
        "SystemDeviceName" : "Your Device Name",
        "SystemApplicationID": 0,
        "SystemApplicationName" : "Your Application Name"
	}
	"IoTJumpWayMQTTSettings": {
        "host": "https://iot.techbubbletechnologies.com",
        "port": "8883",
        "username": "Your Device MQTT Username",
        "password": "Your Device MQTT Password",
        "applicationUsername": "Your Application MQTT Username",
        "applicationPassword": "Your Application MQTT Password"
	}

Execute The Programs

$ sudo python/python3 Basic-Led-Device.py
$ sudo python/python3 Basic-Led-Application.py

Viewing Your Data

Each time your device detects a person or an intruder, it will send data to the IoT JumpWay. You will be able to access the data in the IoT JumpWay Developers Area. Once you have logged into the Developers Area, visit the IoT JumpWay Location Devices Page, find your device and then visit the Sensor/Actuator page and the Warnings page to view the data sent from your device.

IoT JumpWay Intel® Galileo Gen 1 Basic LED Example Docs

IoT JumpWay Intel® Galileo Gen 1 Basic LED Example Docs

IoT JumpWay Intel® Galileo Examples Bugs/Issues

Please feel free to create issues for bugs and general issues you come accross whilst using the IoT JumpWay Intel® Galileo Examples. You may also use the issues area to ask for general help whilst using the IoT JumpWay Intel® Galileo Examples in your IoT projects.

IoT JumpWay Intel® Galileo Examples Contributors

Adam Milton-Barker,  Intel Software Innovator