Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting started with Udoo

You're reading from   Getting started with Udoo Become an efficient maker by designing and building amazing prototypes with the UDOO platform and Android

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784391942
Length 206 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Emanuele Palazzetti Emanuele Palazzetti
Author Profile Icon Emanuele Palazzetti
Emanuele Palazzetti
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Building a web radio with physical interaction

Microcontrollers aren't designed for complicated work, so we need to be careful to partition the needs of our project to the right environments. For a web radio, we can use the microcontroller to read the knobs and switches, and let the Android APIs and UDOO's powerful CPU do the rest. This will keep Android from getting distracted while reading the hardware, and will prevent the microcontroller from getting overloaded with the complications of network streaming and playback.

The first part of our prototype is to build a circuit and write a sketch that collects values from two potentiometers and a push button:

  • We use the first potentiometer to change the active radio station and to increase or decrease the audio volume
  • We use the physical button to control the radio playback

In this way, we're removing all interactions done through the Android user interface.

As the first step, grab two potentiometers and connect them to the board...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image