Controlling a Lamp from the Internet with Device Cloud

Print Friendly, PDF & Email

Table of Contents

  1. Introduction
  2. Assemble the Parts
  3. Configure the Radios
  4. Wire up the Circuit
  5. Install the XBee Internet Gateway
  6. Setup Device Cloud
  7. Upload PHP Scripts
  8. Use it!

1) Introduction

In this example, we’ll walk you through the steps for setting up the XBee Internet Gateway and Device Cloud to control a lamp over the internet! Of course, you don’t have to use a lamp for this; you can use XIG and Device Cloud to control many kinds of devices and even read wireless sensors. Let’s take a look at how this will work:

Device Cloud

When you want to turn the lamp on or off, you’ll click a bookmark on your bookmarks bar that will connect you to your own PHP-enabled web server. The server will send an XML-formatted request to Device Cloud, which will pass the request along to the XBee Internet Gateway. The XIG will wirelessly set the command on the XBee to set a pin high, which is connected to a PowerSwitch Tail. The lamp connected to the PowerSwitch Tail will light up when the XBee’s pin is high.

Comments are closed.