Make sure that you have the latest demo revision: be sure to run Demo version 4.2 onwards.
Compared to demo shipped with the first batch of Atmel Evaluation Kits, an improved demo is available from this very website: Home Automation Demo: latest revision
For Demo running on a resistive touchscreen, make sure that you use a sharp object such as a pen or stylus. In fact, it is the pressure on the touchscreen film that gives the location information to the SoC ADC controller.
So, remember, a resistive touchscreen is manipulated differently than a capacitive one.
When switching between screens (climate to lighting for instance), transitions might seem a little bit slow. This is actually an effect, a transition animation that is controlled by a timing (new screen is sliding from right to left).
The default setting is 300ms for the transitions, done twice.
If you have the feeling that screen transitions and widgets within the home automation demo are too long, you can modify these timings.
![]() |
![]() |
Temperature widget also comes with user configurable sensitivity. Default setting for this sensitivity is 2.
![]() |
HomeAutomation
application
You can launch the HomeAutomation
application from the command line:
J14
) serial console to your computer
115200, 8bit, no parity, 1 stop bit, no hw flow control
root
without password
The HomeAutomation
command line syntax is:
# /opt/HomeAutomation -transitions=<value> -sensitivity=<value>
To get an instantaneous screen transition you have just to set transition to zero:
# /opt/HomeAutomation -transitions=0 -sensitivity=2
You can also modify the Application Launcher
to start HomeAutomation
with your preferred values:
HomeAutomation
is run by shell script /opt/HomeAutomation/resources/HomeAutomation.sh
To modify default values you have just to edit this file with the vi
editor that is available in the embedded Linux environment:
# vi /opt/HomeAutomation/resources/HomeAutomation.shModify it to add the command line parameters according to your needs:
!/bin/sh cd "$(dirname "$0")/.." ./HomeAutomation -transitions=0 -sensitivity=2
The Home Automation
main menu is managed by the Application Launcher
. You can easily customize this graphical menu by simply editing XML files. Background, number of applications presented, application icons and applications started can be modified using a text editor without re-compiling anything.
The Application Launcher
is located under the /opt/ApplicationLauncher/
folder:
bin qml resources
The bin
directory contains the main QT application which is called ApplicationLauncher
. This application is launched by its associated script ApplicationLauncher.sh
.
When starting the board, This shell script is automatically launched at the system startup by the dedicated init script named /etc/init.d/qtdemo
that follows the classical SystemV init procedure.
Here are some entry points to customize some aspects of the Application Launcher
:
Page.qml
file located under /opt/ApplicationLauncher/qml/ApplicationLauncher
folder. Image {
anchors.fill: parent
smooth: false
source: "../../resources/background.jpg"
clip: true
}
applications_list.xml
file located under /opt/ApplicationLauncher/resources
folder.<entry>
in the .xml file adds a new application button.
applications_list.xml
file located under /opt/ApplicationLauncher/resources
folder can be modified to change <title>
, <link>
and <path>
properties. These modifications allow you to run the desired application, by clicking a different button image.
Do not forget to restart the
ApplicationLauncher
after any change:
# /etc/init.d/qtdemo stop # /etc/init.d/qtdemo start
Here is an <entry>
of the applications_list.xml
file:
<entry> <title>Home Automation</title> <link rel="alternate" type="text/html" href="../../resources/applications/resources/home-automation.png"/> <id>tag:atmel.com,2005:/app/8144940683</id> <published>2012-11-01T15:45:05Z</published> <updated>2012-11-01T15:45:05Z</updated> <author>Unknown</author> <path exec="/opt/HomeAutomation/resources/HomeAutomation.sh" /> <arg></arg> <description>Test Description</description> <link rel="enclosure" type="image/png" href="../../resources/applications/resources/home-automation.png" /> </entry>
|
||||||||||||||||||||||||||||||||||||
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip® and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.