This instructive describes step by step how to configure an Arduino Ethernet board tocontrol a LED from the Cloud, (the "Hello World" example in the microcontroller's world). This trivial example is intended to introduce you the way how the NearBus connector  works.

NearBus is a Cloud Connector that allows you to fully integrate in the cloud different MCU platforms (like Arduino, OpenPicus, etc.) in a very easy and transparent way. Installing a light agent (the NearAgent) in your MCU hardware the NearBus system will allow you to see the MCU as a real extension of the cloud, controlling it via the NearAPI (a very simple set of Web Services API functions).

There is no PC or gateway involved in this implementation. The Arduino will connect directly to the NearHub server through the internet access router and you will be able to control it from your web browser.

The NearBus Concept
The NearBus system proposes a different paradigm to support a large deployment of simple controlled devices. Instead of the traditional concept of "connect" a remote device to the cloud (to control it), the NearBus system "maps" the device into the cloud, doing a mirroring (or replication) of small part of the microcontroller's memory into the cloud memory. Under this paradigm, reading or writing on the Cloud's memory will have the same effect as if you were reading or writing directly into the microcontroller's memory, simplifying the way in which the device is controlled.

This mirroring process between the Microcontroller's memory and the Cloud memory is called the MemoryMap process, so under the NearBus paradigm we say that the remote device more than "connected" to the Cloud will be "Mapped" into the Cloud.

Although this instructive only show how to control a LED, the NearBus system offers all the MCU's  features (like ADC, PWM, etc).

Required Components

To implement this App Note you will need:
- 1 Arduino Ethernet Board
- 1 LED
- 1 Current limiter Resistor ( 330 Ohms or similar value)
- 1 Ethernet Internet connection (with a RJ45 cable)
- Implementation time: 20 min
- Difficulty Level: Low

Step 1: Sing Up a New User

a- Go to the SIGN UP screen ( www.nearbus.net ) and set up a new user. Only the username, email and password are required to setup your new account.

b- Then, login into the NearBus website using your new user and password.
<p>If i run this code the error message like this pop out C:\Users\Admin\Desktop\NearBusEther_v16\examples\Hello_World_Ether\Hello_World_Ether.ino:47:52: fatal error: NearbusEther_v16.h: No such file or directory</p><p>Can u tell me the resaon y is this not running?</p>
<p>You must upload the NearbusEther library</p>
<p>Hello , can this be done with ethernet module instead of ethernet shield ?</p><p>Thanks ..</p>
<p>Is this applicable to Y&ugrave;n?</p><p>Thx</p>
<p>Anyway I can do this without the Ethernet Shield? If I keep the Arduino plugged into my laptop maybe?</p>
<p>HI, I would like to develop my own web interface to control my Arduino. Would it be possible to automatically pass the necessary values from my webpage(s) to yours, and then yours will be passed onto my connected board please? Thank you.</p>
<p>Nevermind my question... I should've read the Wiki/Help section on Nearbus website before posting :-)</p>
lovely! but will this work with GSM sim 900 module and arduino uno?
<p>works like butter many thanks...</p>
<p>will this work with wifi shield? thanks!</p>
thanks you so much

About This Instructable




More by nearbus:Internet Graphical Interface for Arduino Internet  Presence Simulator (for Home) An easy way to control your Arduino from Internet :) 
Add instructable to: