This instructive describes step by step how to configure an Arduino Ethernet board to control 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).
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
are required to setup your new account.
b- Then, login into the NearBus website using your new user and password.