Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Getting started with Udoo
Getting started with Udoo

Getting started with Udoo: Become an efficient maker by designing and building amazing prototypes with the UDOO platform and Android

eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Getting started with Udoo

Chapter 2. Know Your Tools

As discussed in the last chapter, real-world applications aren't just software. They are composed of simple or complex circuits that perform actions in the physical world. Before we start to build our first interactive project, we need to know how these physical components work, so that we know what's inside our toolbox.

In this chapter, we will cover the following topics:

  • Uploading the first Arduino program
  • Enabling a connection with Arduino
  • Writing an Android application capable of acting as a controller
  • Building a simple circuit controlled by Android

Introducing Arduino Due capabilities

The physical world is composed of many forms of energy that we perceive in the form of light, heat, sound, or motion. While driving a car when we are near traffic lights and see a red light up ahead, we start to slow down and stop the car. We are just sensing a light form of energy and this led us to change our activity because someone taught us what every traffic light's phase means.

This natural behavior is the same we want to bring to our interactive physical applications. We use hardware devices called sensors that listen to the environment and that cooperate with other hardware components, called actuators, which perform actions in the real world. However, we need a third element called microcontroller that uses connected sensors and actuators to sense and alter the surrounding environment, according to the uploaded program.

The onboard Arduino Due bears the latest part and provides a common way to connect external electronic components. It...

Interacting with the real world

Our first real-world prototype should be an Android application that we can use to control a simple electronic component. We have to choose something that is not too trivial, so we can experiment with it, but also that it is not too complex, so we can dive into all main concepts without too many implementation details. A good starting point is the creation of a controller that we can use to turn on and off a real Light Emitting Diode (LED) component.

However, before we proceed, we have to understand how to create a communication between the Android application and the sketch. During the deployment process, we used to enable the external OTG port to communicate with the i.MX6 processor from our computer. If we disable this option, an internal switch activates a bidirectional communication between the i.MX6 and the SAM3X processors. This is possible because Arduino Due has full support for USB OTG connection and we are using this connection to let Android and...

Fast prototyping a circuit

We have a fully functional communication between Android and Arduino and now it's the time to build a real circuit. Our goal is to turn on and off an LED using the Android system and this problem is little and self-contained. However, at the beginning, we could be a little more ambitious and, instead of turning on an LED, we may want to turn on a light bulb in our bedroom. So why create such a simple project while we can make things a little more interesting? Because we are fast prototyping our project.

Fast prototyping is a group of techniques that we can use to create our working project as soon as possible. This is really helpful because we are removing many implementation details, such as the product design, keeping the focus only on the core of our project. In our case, we are removing all the problems related to turning on a light bulb, like the use of a transistor, a relay, and an external battery, and we're focusing on the creation of a light...

Summary

In this chapter, you have learned some of the UDOO characteristics related to available input and output pins, and how both processors are connected together via the internal serial bus. Moreover, in the first part, we wrote and deployed our first sketch into the board.

Then, we delved the communication mechanism realized through the ADK and wrote a new Arduino sketch capable of establishing a communication with Android using the internal OTG port. Doing the same for Android, we created a simple user interface to provide a visual feedback during the device usage. We also wrote in our Android application some wrappers to easily expose commonly used ADK methods to open and close the connection, and to write into the communication channel.

At the end of the chapter, you learned how to use a breadboard to fast prototype a circuit and you built your first one using an LED and a resistor. Then, we added all the required code to send the turn on and off signal from our Android application...

Left arrow icon Right arrow icon

Description

If you are an Android developer who wants to learn how to use UDOO to build Android applications that are capable of interacting with their surrounding environment, then this book is ideal for you. Learning UDOO is the next great step to start building your first real-world prototypes powered by the Android operating system.

Who is this book for?

If you are an Android developer who wants to learn how to use UDOO to build Android applications that are capable of interacting with their surrounding environment, then this book is ideal for you. Learning UDOO is the next great step to start building your first real-world prototypes powered by the Android operating system.

What you will learn

  • Build working prototype circuits using breadboards
  • Create realworld applications and prototypes using all the features provided by the UDOO board
  • Control external circuits from Android applications with the Accessory Development Kit
  • Listen to the environment and change the application behavior using external sensors
  • Enhance user interaction with native Android APIs for voice recognition and synthesis
  • Use the Android networking API to provide Internet data to UDOOconnected circuits
  • Collect and publish sensor data from Android applications using MQTT libraries

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 20, 2015
Length: 206 pages
Edition : 1st
Language : English
ISBN-13 : 9781784398446
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Feb 20, 2015
Length: 206 pages
Edition : 1st
Language : English
ISBN-13 : 9781784398446
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 86.97
Getting started with Udoo
€24.99
Arduino Essentials
€24.99
Arduino Android Blueprints
€36.99
Total 86.97 Stars icon
Banner background image

Table of Contents

9 Chapters
1. Turn On the Engines Chevron down icon Chevron up icon
2. Know Your Tools Chevron down icon Chevron up icon
3. Testing Your Physical Application Chevron down icon Chevron up icon
4. Using Sensors to Listen to the Environment Chevron down icon Chevron up icon
5. Managing Interactions with Physical Components Chevron down icon Chevron up icon
6. Building a Chronotherm for Home Automation Chevron down icon Chevron up icon
7. Using Android APIs for Human Interaction Chevron down icon Chevron up icon
8. Adding Network Capabilities Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(4 Ratings)
5 star 75%
4 star 25%
3 star 0%
2 star 0%
1 star 0%
Raffaele Montella Jul 14, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great book! Perfect for the beginner and the medium skilled user. An update about UDOO NEO could make the book better.
Amazon Verified review Amazon
Synasius Jun 08, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A "must have" for those taking their first steps with a board Arduino-based UDOO as well as for those who do not know the world of programming Android. The examples and the exercises are clear and well explained, and gradually introduce all the concepts necessary to work on both UDOO and Android.In my opinion is a great reference for those who already had experience with UDOO / Android. Some of the exercises presented may also be of interest to the more experienced developers.Congratulations to the author!
Amazon Verified review Amazon
Luigi Belli Mar 26, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Ottima guida per chi vuole avvicinarsi al mondo arduino piu android. Faccio i complimenti all'autore per la chiarezza degli esempi e per il fatto che tutto funzioni.
Amazon Verified review Amazon
Amazon Customer Apr 27, 2016
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Quite good. Unfortunately, like many tech books, doesn't (yet?) cover the most recent versions of UDOO products, but a thorough start in the Quad and Dual (which as of this writing are still reasonably available.) Look forward to a revision to cover Neo and the x86!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.