Getting Started with UDOO
eBook - ePub

Getting Started with UDOO

Emanuele Palazzetti

Share book
  1. 206 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Getting Started with UDOO

Emanuele Palazzetti

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Getting Started with UDOO an online PDF/ePUB?
Yes, you can access Getting Started with UDOO by Emanuele Palazzetti in PDF and/or ePUB format, as well as other popular books in Informatik & Hardware. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781784391942
Subtopic
Hardware

Getting Started with UDOO


Table of Contents

Getting Started with UDOO
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Turn On the Engines
Introducing the UDOO platform
Downloading and installing Android
Installing from Windows
Installing from Mac OS X
Installing from Linux
Our first run
Setting up the development environment
Installing and using Arduino IDE
Installing in Windows
Installing in Mac OS X
Installing in Linux
First launch
Installing and using Android Studio
Running your first Android application
Summary
2. Know Your Tools
Introducing Arduino Due capabilities
Uploading the first program
Interacting with the real world
Communicating with Arduino
Writing an Android application controller
Android Accessory Development Kit
Fast prototyping a circuit
Using a breadboard
Interacting with external circuits
Sending commands from Android
Summary
3. Testing Your Physical Application
Building a testable circuit
Developing a diagnostic mode
Writing the first test
Summary
4. Using Sensors to Listen to the Environment
Working with environment sensors
Building a heartbeat monitor
Creating a circuit with a light sensor
Collecting data from the sketch
Android for data visualization
Setting up the ADKToolkit
Continuous data readings from Android
Enhancing the prototype
Summary
5. Managing Interactions with Physical Components
Managing user interactions
Building a web radio with physical interaction
Normalizing collected data before sending
Sending multiple data with Arduino
Streaming audio from Android applications
Designing the Android user interface
Setting up the ADK Toolkit
Changing web radio stations
Reading input from physical devices
Managing audio volume
Improving the prototype
Summary
6. Building a Chronotherm for Home Automation
Home automation
Building a chronotherm circuit
Sending data and receiving commands
Managing the chronotherm through Android
Setting up the ADK Toolkit
Designing the Android user interface
Writing the Overview activity
Creating a custom UI component
Finishing the Overview activity
Writing the Settings activity
Managing user's setpoints
Reading setpoints from the Overview activity
Writing setpoints from the Settings activity
Interacting with Arduino
Improving the prototype
Summary
7. Using Android APIs for Human Interaction
Extending prototypes with Android APIs
Improving user settings
Storing preset configurations
Using presets among activities
Implementing voice recognition
Using voice recognition to add or edit presets
Using voice recognition to change active presets
Improving user interaction with voice synthesis
Providing feedback to users
Summary
8. Adding Network Capabilities
Extending Chronotherm with network capabilities
Connecting to REST APIs
Extending the Android user interface
Collecting weather forecast data
Improving the boiler with an antifreeze check
Summary
Index

Getting Started with UDOO

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2015
Production reference: 1170215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-194-2
www.packtpub.com

Credits

Author
Emanuele Palazzetti
Reviewers
Maurizio Caporali
Bill Gatliff
Christian Gil GonzĂĄlez
Edward Jahn Sayadian
Primiano Tucci
Commissioning Editor
Amit Ghodke
Acquisition Editor
Reshma Raman
Content Development Editor
Ruchita Bhansali
Technical Editor
Abhishek R. Kotian
Copy Editor
Laxmi Subramanian
Project Coordinator
Krani Berde
Proofreaders
Ameesha Green
Stephen Copestake
Cathy Cumberlidge
Indexer
Mariammal Chettiyar
Graphics
Valentina D'silva
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

Foreword

This book addresses two very important topics: "Programming" and "Programming with Android".
Programming nowadays is indeed more and more tied to interactions with physical space—you can no longer think about programming only pixels of a screen. Thanks to the evolution of mobile devices, application design and development has encountered a vision change. Today, accelerations and physical rotations of devices are managed by software; information changes depending on the geographic location and on common activities such as walking, driving, travelling, and so on. The next step is programming physical objects connected to the Internet, making our houses, cars, and clothes interactive. This book has the merit to introduce this new vision, showing how simple it is to program real objects, creating new smart ones this way. And it fulfils this goal with an UDOO board, Arduino and Android, starting with a simple Android application that lets you control sensor lights, temperature range, LED lights, and lots more.
UDOO, in fact, allows rapid prototyping of projects based on Arduino: the advantage is a tiny computer that is integrated to the Arduino microcontroller, running Android and Linux. The first few chapters highlight how to realize the connection between Android and Arduino, a very simple task due to the Android Accessory Development Kit (ADK) communication protocol, which is UDOO-compatible. The author, to further simplify the implementation of the protocol, introduces an external library, which allows you, with few lines of code, to connect Android to the real world.
After this first introductory part, you are pushed into the DIY philosophy: start getting your hands dirty, which is the most interesting part. There are several examples and no need for great tools. With just a wooden peg and a light sensor, you can build a heartbeat monitor with the added possibility of visualizing and managing data.
Going forward, in the book, you will see more complex projects, but you will also discover how simple it is to realize the interaction between software and...

Table of contents