This article extends the node tree of ProjectDiva to include an Arduino Pro Mini.
This article explains how to connect a Arduino Pro Mini to the nRF24Things application (Android Things). The code allows sending and receiving messages between the nodes. It uses the well-known RF24 libraries to create a sensor mesh, where the node 0 (in this case a Raspberry Pi running the Android Things application) actuates as a "DHCP" server and assigns the node addresses in the mesh.
Take a look at the full release notes for Android Things 1.0, and head over to the Android Things Console to begin validating your devices for production with the 1.0 system image. If you are looking for a Getting Started on Android Things, head over to these posts:
After the Hannover Fair 2018, I have this weekend some time and I decided to update the #ProjectDIVA to the last version of Android Things. Today the actual version is 0.8.1 DP and the Android Things Setup Utility has the version number 1.0.19.
I have two applications running on Android Things:
As the title says, this is a getting started with Android Things. It should be my first post, but, it's better now than never. I'm posting this to summarize the steps to install Android Things on your Raspberry Pi.
Google announced Android Things on December of 2016. It's a modified version of the Android that we all know, but for Internet of Things (IoT) devices. The architecture of the SDK is described in the following figure:
Fig.: Android Things SDK architecture (Source: Google)
As you can see, the core Android framework (the level below the Apps) is extended with additional APIs provided by the 'Things Support Library' (in orange). These APIs enable the integration of the apps with the new IoT devices.
Two posts in one day! Now the SensorTag CC2650 is running on Android Things. The Raspberry Pi 3 can be used as a sensor hub, and the SensorTag can be connected to it using BLE.
I modified the original app and now it is working on Android Things! Minimal changes were required, especially on the files related with the user interface. Moreover, WebView is still not supported on Android Things.
I've recently updated the nRF24Things project. I introduced some changes to the database main table (sensors) and to the handler class DatabaseHandler. Additionally, I added a second table for the payloads (payload). The two tables are related using the foreign key nodeID. I added some search options for the payloads: search by payloadID, nodeID etc.
The main idea of this project is to measure the humidity, temperature, air quality etc. of a room with multiple sensors (may be using the PiCoBo's) inside and outside of it, and the doors and windows status, and with this information create a room data model to estimate and predict the room conditions. It is a big project; I start with the data logging.
I've just uploaded the Java codes for the rf24, rf24Network and rf24Mesh that work with Android Things. This time I didn't write a library because I thought it was better to upload an Android project that can be opened with Android Studio (>2.2.3) and directly started on the Raspberry Pi. I think this can also work with NXP Pico i.MX6UL and Intel® Edison with minor modifications (especially in the BoardDefaults file).
In this post you will find some explanations about Android Things (installing, connecting, debugging, speed, etc.), the wiring of the complete 'thing' , the Java code, the modifications that I added, and so on. Some screenshots and videos are also available.
If you find this article interesting, or if you find mistakes (grammar and spelling count too! ),
I will be also uploading the codes for the node slaves (sensors) that I am using. They are based on Texas Instruments Launchpads. I have some board designs in Eagle too. #ProjectDIVA is big! so, I need some more time to cleanup code!
I thought of rewriting RF24Gateway and RF24Ethernet (both from TMRh20, btw all great developments!), but may be some time in the next weeks!