Compiling Qt 4.8.5 for Arietta G25

Arietta G25

On my way building an automated wireless home automation system I have been finally been drawn to Embedded Linux. It just makes sense. Driving Internet of Things devices based on Arduino or other directly programmed MCUs is not very efficient. You will have so much work with just building up a network stack for example based around a CC3000 (Available as a nice breakout board from Adafruit). And you will just redevelop what is available for linux for decades. But: Embedded Linux is a beast of a monster. It’s just a whole different universe.

There are so many devices to choose from, the most prominent example being the Raspberry Pi of course. But I wanted a solution that I can use for a final product. For my work I need a very small device and I don’t need all these connectors (Ethernet, HDMI, etc) so I have been searching the large catalog of SoMs (System on Module) and found “Arietta G25” by Acmesystems. I really love this little device and Acmesystems provides a lot of tutorials and help documents to get started quickly.

Find more infos about their great product line-up here: acmesystems.it.

After I had attached a 3.5 TFT (acmesystems has a well written tutorial on how to do that) I wanted to use it for a great User Interface. As you don’t want to build your own UI-System you will most likely find Qt. Qt is more than just a UI frameworks. It’s awesome as it features more or less the same as the whole Apple iOS system. It features it’s own (great) IDE, Interface-Builder for doing design work the WYSIWYG way and features an almost complete Framework with hundreds of C++ classes for all kinds of stuff. They even have a well written network stack helping a lot in doing IoT stuff.

But: Getting Qt to run on an embedded linux device is not that easy. It’s hard work. Requires hours of hours of your time building stuff. Of course there are systems like Yocto and Buildroot – I just got started with them and so far I don’t see it’s easier. As acme systems provides a few images to get started, I wanted Qt installed based on the acme systems solution.

(more…)

Read More

A DIY cloud centered, iOS controlled, Arduino based Home Automation System – Part 1

Wireless Node Prototype

There is a lot of buzz around things like “Internet of Things”, “Home Automation”, and “Smart Homes”. One reason for buying into commercial home automation systems is energy savings. At least that is often the main marketing message for commercial products. That is not true, as recent studies found out, and it is not my main motivation to build such a system.

A lot of commercial systems use Bluetooth (Low Energy) Systems zu drive their home automation solutions. You have a device, and an App that is connected to this device to control it. Sometimes, you have an array of devices, that are connected to a hub often with Zigbee based Mesh networks (so your Smartphones App only needs one connection). One example for that is Philips Hue Light System. Apple realized this is a problem as no one wants 10 Apps to control different aspects of their home and introduced HomeKit. While this really sounds interesting on iOS-Controller side, it remains to be seen how this works out on devices and compatibility (and price of course).

When I first got my Philips Hue System I have been impressed and loved it from day one and do so till today. But we have not installed it in every room. And controlling it with your phone is great, but it’s also tedious to pick up your phone to turn on light in a room you are just entering and turning it of when leaving the room. We often end up using the light switches on the wall, which kills that whole Home Automation thing as lights switched off on the wall cannot be turned on again wirelessly.

IFTTT  and Philips Hue: just magic

Things got really interesting when I tested IFTTT.com. What a great service. With “If This Then That” it’s possible to interconnect different web services and trigger actions based on data or triggers of other services. I created a very small receipt turning on my Philips Hue lights at sundown and turns them off at 1 o’clock in the night as a fallback if I just forget to turn lights off when I go to bed.

And it really works well most of the time. And that is really magic. If you have Philips Hue installed. Give it a try. It’s magic. Yesterday I have cooked and thought that it’s about time to turn the lights on, a few seconds later they turned on. Without pressing a key. Without picking my phone. On cloudy days, you sometimes have to turn lights on before sundown, because it’s just kind of dark. This is where large scaled systems like IFTTT have not enough details.

That’s been the moment where I decided to make my own DIY cloud centered, iOS controlled, Arduino based wireless Home Automation System.

(more…)

Read More