Go Down

Topic: Internet Graphical Interface for Arduino (Read 2119 times) previous topic - next topic


May 06, 2013, 10:21 pm Last Edit: May 07, 2013, 08:51 am by nearbus Reason: 1
Hello forum

             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:



Go Up