Book Image

Internet of Things with Arduino Blueprints

By : Pradeeka Seneviratne
Book Image

Internet of Things with Arduino Blueprints

By: Pradeeka Seneviratne

Overview of this book

Table of Contents (15 chapters)
Internet of Things with Arduino Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring the NearBus connected device for Xively


Perform the following steps to configure the NearBus connected device for Xively:

  1. Log in to your NearBus account.

  2. Click on the DEVICE LIST menu. The DEVICE LIST page will appear:

  3. From the drop-down menu, select COSM CONFIG.

  4. Click on the Setup button. The COSM CONNECTOR (xively.com) page will appear:

  5. In this page, you have to enter some configuration settings in order to work your Arduino with NearBus and Xively. Here, we are using the NearBus channel 0 to communicate with our device. So, configure the following entries for the channel 0 entry using the CMOS CONNECTOR (xively.com) page:

    • STREAM ID: 1.

    • IN[A]: Click to enable.

    • Const[K]: 0.004887 (Arduino analog input can accept values from 0-1023, so we need to map the input voltage (in this case 5v) with it). Divide 5V by 1024, then you will get 0.0048828125. Copy and paste it to the Const[K] textbox.

    • Offset: 0.

    • ON: Click on the checkbox to check.

    • COSM FEED: Type the Feed ID generated by the Xively...