How to create your first Android App

eclipse-logoIn this brief Android development tutorial, you’ll be able to create your first Android Hello World application. The Android app that you’ll create can be installed in every Android smartphones, tables and especially in the newest development boards that are used in home and industrial applications.

First, you need to download Eclipse IDE. Since in the Download page many version are available, the one called “Eclipse IDE for Java Developers” should be fine.
Another important package to download is the Android SDK.

Continue reading

Android Project for Smart Home Automation

Android project smart home automationThe project I’m working on is about making a home automation system using an ARM Cortex A8 1Ghz Android based development board and some Arduino slaves that communicates using rs485 and modbus.
In the previous article, I wrote about how to create Arduino slaves that wait and answer for modbus requests. Indeed, I also made some performance tests in case of rs485 communication failure. Please take a look at the end of the article.

It is now time to present how to write an Android project that acts as a master and communicates with slave devices.

The nice thing of this design is that the logic that controls the smart home system is not constrained to be on the masters’ node. Instead, it can be distributed across all the Arduino devices. Indeed, since rs485 and modbus protocol were designed for industrial environments, this project could be easily used in industrial automation.
Continue reading

Android touch

Ltouch touch screen boardWe designed and developed a control system that uses our new board with Android operating system and a 7″ capacitive touch screen (figure on the right). It is connected to a pool of Arduino’s slaves over rs485 channel. Our tests suggest that the most efficient and lightweight communication protocol is the modbus. It works greatly also on Arduino devices. Indeed, we used Maxim’s max485 chip in order to convert Arduino TTL serial signal to rs485. Terminator resistor (120 Ohm) is connected accross the two wires to limit data corruption. Continue reading