I continue improving the NearBus open platform with a new API support for Java Script. This new feature allows you to take full control of your Arduino (ethernet or Wi-Fi) through internet and controlling it from a simple Java Scrip code running on the Browser. This new Java Script API simplify the task to deploy sensors and controllers, and allows you to get all the graphical power of Java Script to deploy graphical dashboards. The following example shows a basic remote control, that allows to turn on and to turn off up to 4 power relays (note that the smartphone is connected through the 3G Mobile Network).
I leave a new contribution from the NearBus project, this App Note describes how to implement a web temperature dashboard for Arduino Ethernet. It is intended to show you how the Memory-Map concept works in the practice and the way in which it can help you to improve your Arduino projects with some few simple modifications.
The system shown consists in an Arduino with a temperature sensor (eg. a LM134 lineal temperature sensor IC) connected to the NearBus Connector through internet and displaying the temperature value on a graphical way using the Google Spreadsheet Web App (as shown below).
How does it work?
As detailed in the overview section (www.nearbus.net) the NearBus system has two working modes, the VMCU (virtual microcontroller unit) mode and the TRNSP (transparent) mode. In this example we are going to use the TRNSP mode.
Under the TRNSP mode the NearBus system works replicating two groups of 8 registers (Reg_A and Reg_B) in a periodic way :
Reg_A: Data sent from Microcontroller to the Cloud. Reg_B: Data received in the Microcontroller from the Cloud.
In others words, the TRNSP mode can be understood as a RPC (Remote Procedure Call) or function call, that your make in your Arduino code to execute it in the cloud (as a spreadsheet formula or script), obtaining a result, and then using it in your Arduino code.
The most powerful feature of NearBus is the extremely easy way in which this complex process can be achieved. Including a single line in your code (a function call) you will be able to synchronize the registers block (8+8) with the Google Cloud and then access them from a spreadsheet table (2 rows 8 cells) as shown bellow.
A detailed description about how to configure this example (it takes about 20 min) in your Arduino Ethernet board is shown in the following link:
I leave a new App Note that describes how to implement a presence simulator controlled from the Cloud (using an Arduino Ethernet and the NearBus connector). The system consists in a combination of different internet free services as Twitter and IFTTT (www.ifttt.com).
An Arduino Ethernet board is used to control a power switch to turn on and turn off a light. This design is intended to show you how the NearBus Connector simplifies the way in which these kind of Internet-based projects can be implemented.
As showed in the picture the system consists of an Internet configurable clock (from IFTTT) that sends ON / OFF messages through Twitter to the NearBus connector. The NearBus connector forwards these messages to the Arduino Ethernet board (through Internet) who Turns On and Turns Off a power switch allowing in this way to control the light sequence form any place with a simple browser.
I leave the link to the project (step by step) if anyone is interested in implementing it.
I’m working in a project to connect microcontrollers to internet in an easy way. I leave a short description about how the system works. If someone (with an Arduino Ethernet board) is interested in testing it, go to the following link that shows how to control a simple LED form a web browser:
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).
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 memory, simplifying the way in which the device is controlled.
This mirroring process between the microcontroller 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.
The Main Components
The NearBus system has two main components, the remote device controller or NearAgent and the Cloud Hub manager or NearHub. These components communicate in a periodic way through the NearBus protocol. The main feature of NearBus system is to allow you to control the remote agent form the cloud via a simple set of web API functions known as the NearAPI. Additionally the Agent implements a NearBIOS code, a set of basic MCU functions (ADC, Digital I/O, etc.) that allows you to control the agent from the web in the same way as a traditional Microcontroller Unit.
Although the NearBus system has an extensive set of features, this video only shows two basic features of the NearBus system. For more detailed information about the NearBus System please refer to Overview section.
Hi, everybody, I’m looking for people from different countries to test this cool "Internet Sequencer" project. The system (it works on Arduino Ethernet with internet connection) allows to define a lights sequence with an accuracy about 100ms even when the Arduinos are in different countries (it implements a pseudo NTP to synchronize the microcontrollers). I leave the link to the project site:
Hi, I'm working in an open project to control microcontrollers (like Arduino Ethernet) from the Cloud. I leave the link to the project if anyone is interested in controlling an Arduino from Internet (it allows to build cloud control systems and send feeds to Cosm in an easy way):